validation

package
v3.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAppConfigMapNotFound added in v3.5.0

func IsAppConfigMapNotFound(err error) bool

IsAppConfigMapNotFound asserts appConfigMapNotFoundError.

func IsAppDependencyNotReady added in v3.7.0

func IsAppDependencyNotReady(err error) bool

IsAppDependencyNotReady asserts appDependencyNotReadyError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsKubeConfigNotFound added in v3.5.0

func IsKubeConfigNotFound(err error) bool

IsKubeConfigNotFound asserts kubeConfigNotFoundError.

func IsNotAllowed

func IsNotAllowed(err error) bool

IsNotAllowed asserts notAllowedError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsParsingFailed

func IsParsingFailed(err error) bool

IsParsingFailed asserts parsingFailedError.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError asserts validationError.

Types

type Config

type Config struct {
	G8sClient versioned.Interface
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger
}

type Validator

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

func NewValidator

func NewValidator(config Config) (*Validator, error)

func (*Validator) ValidateApp

func (v *Validator) ValidateApp(ctx context.Context, app v1alpha1.App) (bool, error)

Jump to

Keyboard shortcuts

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