Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParallelValidators = []SpinnakerValidator{
&versionValidator{},
}
Validators registered here should be stateless
Functions ¶
This section is empty.
Types ¶
type ParallelValidator ¶
type ParallelValidator struct {
// contains filtered or unexported fields
}
func (*ParallelValidator) Validate ¶
func (p *ParallelValidator) Validate(spinSvc interfaces.SpinnakerService, options Options) ValidationResult
type SpinnakerValidator ¶
type SpinnakerValidator interface {
Validate(spinSvc interfaces.SpinnakerService, options Options) ValidationResult
}
func GetAccountValidationsFor ¶
func GetAccountValidationsFor(spinSvc interfaces.SpinnakerService, options Options) ([]SpinnakerValidator, error)
GetAccountValidationsFor inspects all known providers, retrieves their accounts, and generate validators
type ValidationResult ¶
func NewResultFromError ¶
func NewResultFromError(e error, fatal bool) ValidationResult
func ValidateAll ¶
func ValidateAll(spinSvc interfaces.SpinnakerService, options Options) ValidationResult
func (*ValidationResult) GetErrorMessage ¶
func (r *ValidationResult) GetErrorMessage() string
func (*ValidationResult) HasErrors ¶
func (r *ValidationResult) HasErrors() bool
func (*ValidationResult) HasFatalErrors ¶
func (r *ValidationResult) HasFatalErrors() bool
func (*ValidationResult) Merge ¶
func (r *ValidationResult) Merge(other ValidationResult)
Click to show internal directories.
Click to hide internal directories.