validator

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretValidator

type SecretValidator struct {
	// contains filtered or unexported fields
}

func NewSecretValidator

func NewSecretValidator(jfs juicefs.Interface) *SecretValidator

func (*SecretValidator) Validate

func (s *SecretValidator) Validate(ctx context.Context, secret corev1.Secret) error

func (*SecretValidator) ValidateConfigs

func (s *SecretValidator) ValidateConfigs(configs string) error

func (*SecretValidator) ValidateEnvs

func (s *SecretValidator) ValidateEnvs(envs string) error

type Validator

type Validator[T any] interface {
	Validate(ctx context.Context, obj T) (err error)
}

Jump to

Keyboard shortcuts

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