Documentation ¶
Index ¶
- type ConfigValidationError
- type InvalidAdapterFieldValueError
- func NewInvalidAdapterFieldValueError(key string, adapterId string, message string) InvalidAdapterFieldValueError
- func ValidateConsumerFields(bac *model.ConsumerConfig, serviceName string) []InvalidAdapterFieldValueError
- func ValidateInternalAdapterConfigFields(iac model.StressorConfig) []InvalidAdapterFieldValueError
- func ValidateInvocationFields(sac model.InvocationConfig) []InvalidAdapterFieldValueError
- func ValidateProducerFields(bac model.ProducerConfig) []InvalidAdapterFieldValueError
- func ValidateRepositoryClientFields(sac model.RepositoryClientConfig) []InvalidAdapterFieldValueError
- func ValidateRepositoryFields(sac *model.RepositoryConfig, serviceName string) []InvalidAdapterFieldValueError
- func ValidateServerFields(sac *model.ServerConfig, serviceName string) []InvalidAdapterFieldValueError
- type InvalidAdapterMappingError
- type InvalidServiceUnitFieldValueError
- type InvalidStepFieldValueError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigValidationError ¶
type ConfigValidationError struct { ServiceUnitFieldErrors []InvalidServiceUnitFieldValueError AdapterFieldErrors []InvalidAdapterFieldValueError MappingErrors []InvalidAdapterMappingError StepFieldErrors []InvalidStepFieldValueError }
An object to hold all the errors of different types
func ValidateFields ¶
func ValidateFields(serviceUnitConfig *model.ServiceUnitConfig) ConfigValidationError
validate fields for a single service config
func ValidateServiceUnitConfigFields ¶
func ValidateServiceUnitConfigFields(serviceUnitConfig *model.ServiceUnitConfig) ConfigValidationError
func ValidateServiceUnitConfigs ¶
func ValidateServiceUnitConfigs(serviceUnitConfigs []*model.ServiceUnitConfig) ConfigValidationError
Validate multiple service unit configs serviceUnitConfigs: an array of service unit configs returns validation error
func (ConfigValidationError) Exist ¶
func (cve ConfigValidationError) Exist() bool
func (*ConfigValidationError) Extend ¶
func (cve *ConfigValidationError) Extend(other ConfigValidationError)
func (ConfigValidationError) Print ¶
func (cve ConfigValidationError) Print()
type InvalidAdapterFieldValueError ¶
type InvalidAdapterFieldValueError struct {
// contains filtered or unexported fields
}
func NewInvalidAdapterFieldValueError ¶
func NewInvalidAdapterFieldValueError(key string, adapterId string, message string) InvalidAdapterFieldValueError
func ValidateConsumerFields ¶
func ValidateConsumerFields(bac *model.ConsumerConfig, serviceName string) []InvalidAdapterFieldValueError
func ValidateInternalAdapterConfigFields ¶
func ValidateInternalAdapterConfigFields(iac model.StressorConfig) []InvalidAdapterFieldValueError
func ValidateInvocationFields ¶
func ValidateInvocationFields(sac model.InvocationConfig) []InvalidAdapterFieldValueError
func ValidateProducerFields ¶
func ValidateProducerFields(bac model.ProducerConfig) []InvalidAdapterFieldValueError
func ValidateRepositoryClientFields ¶
func ValidateRepositoryClientFields(sac model.RepositoryClientConfig) []InvalidAdapterFieldValueError
func ValidateRepositoryFields ¶
func ValidateRepositoryFields(sac *model.RepositoryConfig, serviceName string) []InvalidAdapterFieldValueError
func ValidateServerFields ¶
func ValidateServerFields(sac *model.ServerConfig, serviceName string) []InvalidAdapterFieldValueError
func (*InvalidAdapterFieldValueError) Error ¶
func (e *InvalidAdapterFieldValueError) Error() string
type InvalidAdapterMappingError ¶
type InvalidAdapterMappingError struct {
// contains filtered or unexported fields
}
func NewInvalidSecondaryAdapterError ¶
func NewInvalidSecondaryAdapterError(id string) InvalidAdapterMappingError
func (*InvalidAdapterMappingError) Error ¶
func (e *InvalidAdapterMappingError) Error() string
type InvalidServiceUnitFieldValueError ¶
type InvalidServiceUnitFieldValueError struct {
// contains filtered or unexported fields
}
func NewInvalidServiceUnitFieldValueError ¶
func NewInvalidServiceUnitFieldValueError(key string, serviceUnitConfig model.ServiceUnitConfig, message string) InvalidServiceUnitFieldValueError
func (*InvalidServiceUnitFieldValueError) Error ¶
func (e *InvalidServiceUnitFieldValueError) Error() string
type InvalidStepFieldValueError ¶
type InvalidStepFieldValueError struct {
// contains filtered or unexported fields
}
func NewInvalidStepFieldValueError ¶
func NewInvalidStepFieldValueError(id string) InvalidStepFieldValueError
func ValidateStepFields ¶
func ValidateStepFields(task model.TaskSpec, adapterConfig *model.PrimaryAdapterSpec, serviceName string) []InvalidStepFieldValueError
func (*InvalidStepFieldValueError) Error ¶
func (e *InvalidStepFieldValueError) Error() string
Click to show internal directories.
Click to hide internal directories.