dependency

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const K8sDoguOperatorClientDependencyName = "k8s-dogu-operator"

Variables

This section is empty.

Functions

func NewDoguDependencyValidator

func NewDoguDependencyValidator(localDoguRegistry registry.DoguRegistry) *doguDependencyValidator

NewDoguDependencyValidator creates a new dogu dependencies checker

func NewOperatorDependencyValidator

func NewOperatorDependencyValidator(version *core.Version) *operatorDependencyValidator

NewOperatorDependencyValidator creates a new operator dependency validator

Types

type CompositeDependencyValidator

type CompositeDependencyValidator struct {
	Validators []DependencyValidator `json:"validators"`
}

CompositeDependencyValidator is a composite validator responsible to validate the dogu and client dependencies of dogus.

func NewCompositeDependencyValidator

func NewCompositeDependencyValidator(version *core.Version, doguRegistry registry.DoguRegistry) *CompositeDependencyValidator

NewCompositeDependencyValidator create a new composite validator checking the dogu and client dependencies

func (*CompositeDependencyValidator) ValidateDependencies

func (dv *CompositeDependencyValidator) ValidateDependencies(ctx context.Context, dogu *core.Dogu) error

ValidateDependencies validates all kinds of dependencies for dogus. An error is returned when any invalid dependencies were detected.

type DependencyValidator

type DependencyValidator interface {
	ValidateAllDependencies(ctx context.Context, dogu *core.Dogu) error
}

DependencyValidator is responsible to validate the dependencies of a dogu

Jump to

Keyboard shortcuts

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