validation

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretData

type SecretData struct {
	Path         string
	Reference    string
	Owner        string
	Group        string
	Mode         string
	Symlinks     []string
	Variables    map[string]string
	Services     interface{} // Can be []string or map[string]ServiceConfig
	PathTemplate string
	Defaults     map[string]string
}

Secret represents a secret for validation

type Validator

type Validator struct{}

Validator provides comprehensive validation with helpful error messages

func NewValidator

func NewValidator() *Validator

NewValidator creates a new validator instance

func (*Validator) ValidateConfigStruct

func (v *Validator) ValidateConfigStruct(secrets []SecretData) error

ValidateConfigStruct validates a config with slice of SecretData

func (*Validator) ValidateTokenFile

func (v *Validator) ValidateTokenFile(tokenPath string) error

ValidateTokenFile validates the token file exists and has correct permissions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL