Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetOuterLoopInterval() *durationpb.Duration
- func (x *Config) GetPerConfigTypeConfiguration() map[string]*Config_PerConfigTypeConfig
- func (x *Config) GetPerExperimentCheckInterval() *durationpb.Duration
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Config_PerConfigTypeConfig
- func (*Config_PerConfigTypeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Config_PerConfigTypeConfig) GetTerminationCriteria() []*anypb.Any
- func (*Config_PerConfigTypeConfig) ProtoMessage()
- func (x *Config_PerConfigTypeConfig) ProtoReflect() protoreflect.Message
- func (x *Config_PerConfigTypeConfig) Reset()
- func (x *Config_PerConfigTypeConfig) String() string
- func (m *Config_PerConfigTypeConfig) Validate() error
- func (m *Config_PerConfigTypeConfig) ValidateAll() error
- type Config_PerConfigTypeConfigMultiError
- type Config_PerConfigTypeConfigValidationError
- func (e Config_PerConfigTypeConfigValidationError) Cause() error
- func (e Config_PerConfigTypeConfigValidationError) Error() string
- func (e Config_PerConfigTypeConfigValidationError) ErrorName() string
- func (e Config_PerConfigTypeConfigValidationError) Field() string
- func (e Config_PerConfigTypeConfigValidationError) Key() bool
- func (e Config_PerConfigTypeConfigValidationError) Reason() string
- type MaxTimeTerminationCriterion
- func (*MaxTimeTerminationCriterion) Descriptor() ([]byte, []int)deprecated
- func (x *MaxTimeTerminationCriterion) GetMaxDuration() *durationpb.Duration
- func (*MaxTimeTerminationCriterion) ProtoMessage()
- func (x *MaxTimeTerminationCriterion) ProtoReflect() protoreflect.Message
- func (x *MaxTimeTerminationCriterion) Reset()
- func (x *MaxTimeTerminationCriterion) String() string
- func (m *MaxTimeTerminationCriterion) Validate() error
- func (m *MaxTimeTerminationCriterion) ValidateAll() error
- type MaxTimeTerminationCriterionMultiError
- type MaxTimeTerminationCriterionValidationError
- func (e MaxTimeTerminationCriterionValidationError) Cause() error
- func (e MaxTimeTerminationCriterionValidationError) Error() string
- func (e MaxTimeTerminationCriterionValidationError) ErrorName() string
- func (e MaxTimeTerminationCriterionValidationError) Field() string
- func (e MaxTimeTerminationCriterionValidationError) Key() bool
- func (e MaxTimeTerminationCriterionValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_config_service_chaos_experimentation_terminator_v1_termination_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Mapping from typeUrl of registered experiment type to its termination configuration. PerConfigTypeConfiguration map[string]*Config_PerConfigTypeConfig `` /* 231-byte string literal not displayed */ // The interval at which the outer loop should poll for active experiments. OuterLoopInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=outer_loop_interval,json=outerLoopInterval,proto3" json:"outer_loop_interval,omitempty"` // The interval at which the inner loop should evaluate the termination criteria for each monitored experiment. // This should likely be less than outer_loop_interval as the checks should be relatively cheap. PerExperimentCheckInterval *durationpb.Duration `` /* 143-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetOuterLoopInterval ¶
func (x *Config) GetOuterLoopInterval() *durationpb.Duration
func (*Config) GetPerConfigTypeConfiguration ¶
func (x *Config) GetPerConfigTypeConfiguration() map[string]*Config_PerConfigTypeConfig
func (*Config) GetPerExperimentCheckInterval ¶
func (x *Config) GetPerExperimentCheckInterval() *durationpb.Duration
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Config_PerConfigTypeConfig ¶
type Config_PerConfigTypeConfig struct { // List of termination criteria to evaluate for each config type. TerminationCriteria []*anypb.Any `protobuf:"bytes,2,rep,name=termination_criteria,json=terminationCriteria,proto3" json:"termination_criteria,omitempty"` // contains filtered or unexported fields }
func (*Config_PerConfigTypeConfig) Descriptor
deprecated
func (*Config_PerConfigTypeConfig) Descriptor() ([]byte, []int)
Deprecated: Use Config_PerConfigTypeConfig.ProtoReflect.Descriptor instead.
func (*Config_PerConfigTypeConfig) GetTerminationCriteria ¶
func (x *Config_PerConfigTypeConfig) GetTerminationCriteria() []*anypb.Any
func (*Config_PerConfigTypeConfig) ProtoMessage ¶
func (*Config_PerConfigTypeConfig) ProtoMessage()
func (*Config_PerConfigTypeConfig) ProtoReflect ¶
func (x *Config_PerConfigTypeConfig) ProtoReflect() protoreflect.Message
func (*Config_PerConfigTypeConfig) Reset ¶
func (x *Config_PerConfigTypeConfig) Reset()
func (*Config_PerConfigTypeConfig) String ¶
func (x *Config_PerConfigTypeConfig) String() string
func (*Config_PerConfigTypeConfig) Validate ¶
func (m *Config_PerConfigTypeConfig) Validate() error
Validate checks the field values on Config_PerConfigTypeConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config_PerConfigTypeConfig) ValidateAll ¶
func (m *Config_PerConfigTypeConfig) ValidateAll() error
ValidateAll checks the field values on Config_PerConfigTypeConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Config_PerConfigTypeConfigMultiError, or nil if none found.
type Config_PerConfigTypeConfigMultiError ¶
type Config_PerConfigTypeConfigMultiError []error
Config_PerConfigTypeConfigMultiError is an error wrapping multiple validation errors returned by Config_PerConfigTypeConfig.ValidateAll() if the designated constraints aren't met.
func (Config_PerConfigTypeConfigMultiError) AllErrors ¶
func (m Config_PerConfigTypeConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Config_PerConfigTypeConfigMultiError) Error ¶
func (m Config_PerConfigTypeConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Config_PerConfigTypeConfigValidationError ¶
type Config_PerConfigTypeConfigValidationError struct {
// contains filtered or unexported fields
}
Config_PerConfigTypeConfigValidationError is the validation error returned by Config_PerConfigTypeConfig.Validate if the designated constraints aren't met.
func (Config_PerConfigTypeConfigValidationError) Cause ¶
func (e Config_PerConfigTypeConfigValidationError) Cause() error
Cause function returns cause value.
func (Config_PerConfigTypeConfigValidationError) Error ¶
func (e Config_PerConfigTypeConfigValidationError) Error() string
Error satisfies the builtin error interface
func (Config_PerConfigTypeConfigValidationError) ErrorName ¶
func (e Config_PerConfigTypeConfigValidationError) ErrorName() string
ErrorName returns error name.
func (Config_PerConfigTypeConfigValidationError) Field ¶
func (e Config_PerConfigTypeConfigValidationError) Field() string
Field function returns field value.
func (Config_PerConfigTypeConfigValidationError) Key ¶
func (e Config_PerConfigTypeConfigValidationError) Key() bool
Key function returns key value.
func (Config_PerConfigTypeConfigValidationError) Reason ¶
func (e Config_PerConfigTypeConfigValidationError) Reason() string
Reason function returns reason value.
type MaxTimeTerminationCriterion ¶
type MaxTimeTerminationCriterion struct { // The maximum duration experiments can run for before being terminated. MaxDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=max_duration,json=maxDuration,proto3" json:"max_duration,omitempty"` // contains filtered or unexported fields }
Termination criterion that will terminate an experiment after a configured max duration. This is helpful in ensuring that there is an upper limit to how long experiments will run for.
func (*MaxTimeTerminationCriterion) Descriptor
deprecated
func (*MaxTimeTerminationCriterion) Descriptor() ([]byte, []int)
Deprecated: Use MaxTimeTerminationCriterion.ProtoReflect.Descriptor instead.
func (*MaxTimeTerminationCriterion) GetMaxDuration ¶
func (x *MaxTimeTerminationCriterion) GetMaxDuration() *durationpb.Duration
func (*MaxTimeTerminationCriterion) ProtoMessage ¶
func (*MaxTimeTerminationCriterion) ProtoMessage()
func (*MaxTimeTerminationCriterion) ProtoReflect ¶
func (x *MaxTimeTerminationCriterion) ProtoReflect() protoreflect.Message
func (*MaxTimeTerminationCriterion) Reset ¶
func (x *MaxTimeTerminationCriterion) Reset()
func (*MaxTimeTerminationCriterion) String ¶
func (x *MaxTimeTerminationCriterion) String() string
func (*MaxTimeTerminationCriterion) Validate ¶
func (m *MaxTimeTerminationCriterion) Validate() error
Validate checks the field values on MaxTimeTerminationCriterion with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MaxTimeTerminationCriterion) ValidateAll ¶
func (m *MaxTimeTerminationCriterion) ValidateAll() error
ValidateAll checks the field values on MaxTimeTerminationCriterion with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MaxTimeTerminationCriterionMultiError, or nil if none found.
type MaxTimeTerminationCriterionMultiError ¶
type MaxTimeTerminationCriterionMultiError []error
MaxTimeTerminationCriterionMultiError is an error wrapping multiple validation errors returned by MaxTimeTerminationCriterion.ValidateAll() if the designated constraints aren't met.
func (MaxTimeTerminationCriterionMultiError) AllErrors ¶
func (m MaxTimeTerminationCriterionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MaxTimeTerminationCriterionMultiError) Error ¶
func (m MaxTimeTerminationCriterionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MaxTimeTerminationCriterionValidationError ¶
type MaxTimeTerminationCriterionValidationError struct {
// contains filtered or unexported fields
}
MaxTimeTerminationCriterionValidationError is the validation error returned by MaxTimeTerminationCriterion.Validate if the designated constraints aren't met.
func (MaxTimeTerminationCriterionValidationError) Cause ¶
func (e MaxTimeTerminationCriterionValidationError) Cause() error
Cause function returns cause value.
func (MaxTimeTerminationCriterionValidationError) Error ¶
func (e MaxTimeTerminationCriterionValidationError) Error() string
Error satisfies the builtin error interface
func (MaxTimeTerminationCriterionValidationError) ErrorName ¶
func (e MaxTimeTerminationCriterionValidationError) ErrorName() string
ErrorName returns error name.
func (MaxTimeTerminationCriterionValidationError) Field ¶
func (e MaxTimeTerminationCriterionValidationError) Field() string
Field function returns field value.
func (MaxTimeTerminationCriterionValidationError) Key ¶
func (e MaxTimeTerminationCriterionValidationError) Key() bool
Key function returns key value.
func (MaxTimeTerminationCriterionValidationError) Reason ¶
func (e MaxTimeTerminationCriterionValidationError) Reason() string
Reason function returns reason value.