radixvalidators

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const (

	// MaxReplica Max number of replicas a deployment is allowed to have
	MaxReplica = 64
)

Variables

This section is empty.

Functions

func AppNameCannotBeEmptyError

func AppNameCannotBeEmptyError() error

AppNameCannotBeEmptyError App name cannot be empty

func CPUResourceRequirementFormatError

func CPUResourceRequirementFormatError(value string) error

CPUResourceRequirementFormatError Invalid CPU resource requirement

func CanRadixApplicationBeInserted

func CanRadixApplicationBeInserted(client radixclient.Interface, app *radixv1.RadixApplication) (bool, error)

CanRadixApplicationBeInserted Checks if application config is valid. Returns a single error, if this is the case

func CanRadixApplicationBeInsertedErrors

func CanRadixApplicationBeInsertedErrors(client radixclient.Interface, app *radixv1.RadixApplication) (bool, []error)

CanRadixApplicationBeInsertedErrors Checks if application config is valid. Returns list of errors, if present

func CanRadixDeploymentBeInserted

func CanRadixDeploymentBeInserted(client radixclient.Interface, deploy *radixv1.RadixDeployment) (bool, error)

CanRadixDeploymentBeInserted Checks if RD is valid

func CanRadixRegistrationBeInserted

func CanRadixRegistrationBeInserted(client radixclient.Interface, radixRegistration *v1.RadixRegistration) (bool, error)

CanRadixRegistrationBeInserted Validates RR

func CanRadixRegistrationBeUpdated

func CanRadixRegistrationBeUpdated(client radixclient.Interface, radixRegistration *v1.RadixRegistration) (bool, error)

CanRadixRegistrationBeUpdated Validates update of RR

func ComponentForDNSAppAliasNotDefinedError

func ComponentForDNSAppAliasNotDefinedError(component string) error

ComponentForDNSAppAliasNotDefinedError Error when env not defined

func ComponentForDNSExternalAliasIsNotMarkedAsPublicError

func ComponentForDNSExternalAliasIsNotMarkedAsPublicError(component string) error

ComponentForDNSExternalAliasIsNotMarkedAsPublicError Component is not marked as public

func ComponentForDNSExternalAliasNotDefinedError

func ComponentForDNSExternalAliasNotDefinedError(component string) error

ComponentForDNSExternalAliasNotDefinedError Error when env not defined

func DuplicateExternalAliasError

func DuplicateExternalAliasError() error

DuplicateExternalAliasError Cannot have duplicate external alias

func EnvForDNSAppAliasNotDefinedError

func EnvForDNSAppAliasNotDefinedError(env string) error

EnvForDNSAppAliasNotDefinedError Error when env not defined

func EnvForDNSExternalAliasNotDefinedError

func EnvForDNSExternalAliasNotDefinedError(env string) error

EnvForDNSExternalAliasNotDefinedError Error when env not defined

func EnvironmentReferencedByComponentDoesNotExistError

func EnvironmentReferencedByComponentDoesNotExistError(environment, component string) error

EnvironmentReferencedByComponentDoesNotExistError Environment does not exists

func ExternalAliasCannotBeEmptyError

func ExternalAliasCannotBeEmptyError() error

ExternalAliasCannotBeEmptyError Structure cannot be left empty

func InvalidAppNameError

func InvalidAppNameError(value string) error

InvalidAppNameError Invalid app name

func InvalidAppNameLengthError

func InvalidAppNameLengthError(value string) error

InvalidAppNameLengthError Invalid app length

func InvalidBranchNameError

func InvalidBranchNameError(branch string) error

InvalidBranchNameError Indicates that branch name is invalid

func InvalidNumberOfReplicaError

func InvalidNumberOfReplicaError(replica int) error

InvalidNumberOfReplicaError Invalid number of replica

func InvalidPortNameLengthError

func InvalidPortNameLengthError(value string) error

InvalidPortNameLengthError Invalid resource length

func InvalidResourceError

func InvalidResourceError(name string) error

InvalidResourceError Invalid resource type

func InvalidResourceNameError

func InvalidResourceNameError(resourceName, value string) error

InvalidResourceNameError Invalid resource name

func InvalidResourceNameLengthError

func InvalidResourceNameLengthError(resourceName, value string) error

InvalidResourceNameLengthError Invalid resource length

func MemoryResourceRequirementFormatError

func MemoryResourceRequirementFormatError(value string) error

MemoryResourceRequirementFormatError Invalid memory resource requirement error

func MultipleMatchingPortNamesError

func MultipleMatchingPortNamesError(matchingPortName int, publicPortName, component string) error

MultipleMatchingPortNamesError Multiple matching port names

func NoRegistrationExistsForApplicationError

func NoRegistrationExistsForApplicationError(appName string) error

NoRegistrationExistsForApplicationError No registration exists

func PortNameIsRequiredForPublicComponentError

func PortNameIsRequiredForPublicComponentError(publicPortName, component string) error

PortNameIsRequiredForPublicComponentError Port name cannot be empty

func PortSpecificationCannotBeEmptyForComponentError

func PortSpecificationCannotBeEmptyForComponentError(component string) error

PortSpecificationCannotBeEmptyForComponentError Port cannot be empty for component

func PublicImageComponentCannotHaveSourceOrDockerfileSet

func PublicImageComponentCannotHaveSourceOrDockerfileSet(componentName string) error

PublicImageComponentCannotHaveSourceOrDockerfileSet Error if image is set and radix config contains src or dockerfile

func RAContainsOldPublic

func RAContainsOldPublic(app *radixv1.RadixApplication) bool

RAContainsOldPublic Checks to see if the radix config is using the deprecated config for public port

func ResourceNameCannotBeEmptyError

func ResourceNameCannotBeEmptyError(resourceName string) error

ResourceNameCannotBeEmptyError Resource name cannot be left empty

Types

This section is empty.

Jump to

Keyboard shortcuts

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