validation

package
v5.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAppConfigMapNotFound

func IsAppConfigMapNotFound(err error) bool

IsAppConfigMapNotFound asserts appConfigMapNotFoundError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsKubeConfigNotFound

func IsKubeConfigNotFound(err error) bool

IsKubeConfigNotFound asserts kubeConfigNotFoundError.

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

	Provider string
}

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