terminatorv1

package
v0.0.0-...-0f6a5af Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

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) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

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

func (m *Config) ValidateAll() error

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 (*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

AllErrors returns a list of validation violation errors.

func (Config_PerConfigTypeConfigMultiError) Error

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

Cause function returns cause value.

func (Config_PerConfigTypeConfigValidationError) Error

Error satisfies the builtin error interface

func (Config_PerConfigTypeConfigValidationError) ErrorName

ErrorName returns error name.

func (Config_PerConfigTypeConfigValidationError) Field

Field function returns field value.

func (Config_PerConfigTypeConfigValidationError) Key

Key function returns key value.

func (Config_PerConfigTypeConfigValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (MaxTimeTerminationCriterionMultiError) Error

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

Cause function returns cause value.

func (MaxTimeTerminationCriterionValidationError) Error

Error satisfies the builtin error interface

func (MaxTimeTerminationCriterionValidationError) ErrorName

ErrorName returns error name.

func (MaxTimeTerminationCriterionValidationError) Field

Field function returns field value.

func (MaxTimeTerminationCriterionValidationError) Key

Key function returns key value.

func (MaxTimeTerminationCriterionValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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