Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetCacheRefreshInterval() *durationpb.Duration
- func (x *Config) GetEcdsAllowList() *Config_ECDSAllowList
- func (x *Config) GetHeartbeatInterval() *durationpb.Duration
- func (x *Config) GetResourceTtl() *durationpb.Duration
- func (x *Config) GetRtdsLayerName() string
- 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_ECDSAllowList
- func (*Config_ECDSAllowList) Descriptor() ([]byte, []int)deprecated
- func (x *Config_ECDSAllowList) GetEnabledClusters() []string
- func (*Config_ECDSAllowList) ProtoMessage()
- func (x *Config_ECDSAllowList) ProtoReflect() protoreflect.Message
- func (x *Config_ECDSAllowList) Reset()
- func (x *Config_ECDSAllowList) String() string
- func (m *Config_ECDSAllowList) Validate() error
- func (m *Config_ECDSAllowList) ValidateAll() error
- type Config_ECDSAllowListMultiError
- type Config_ECDSAllowListValidationError
- func (e Config_ECDSAllowListValidationError) Cause() error
- func (e Config_ECDSAllowListValidationError) Error() string
- func (e Config_ECDSAllowListValidationError) ErrorName() string
- func (e Config_ECDSAllowListValidationError) Field() string
- func (e Config_ECDSAllowListValidationError) Key() bool
- func (e Config_ECDSAllowListValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_config_module_chaos_experimentation_xds_v1_xds_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Interval in seconds between refreshes of xDS data from the backing store. CacheRefreshInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=cache_refresh_interval,json=cacheRefreshInterval,proto3" json:"cache_refresh_interval,omitempty"` // Name of the RTDS layer in Envoy config i.e. envoy.yaml // https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/runtime#config-runtime-rtds. RtdsLayerName string `protobuf:"bytes,2,opt,name=rtds_layer_name,json=rtdsLayerName,proto3" json:"rtds_layer_name,omitempty"` // The resource TTL to set for xDS resources. ResourceTtl *durationpb.Duration `protobuf:"bytes,3,opt,name=resource_ttl,json=resourceTtl,proto3" json:"resource_ttl,omitempty"` // The interval at which to send heartbeat responses for TTL'd resources. HeartbeatInterval *durationpb.Duration `protobuf:"bytes,4,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` // Specifies which clusters ECDS is enabled for, causing faults to be communicated over ECDS instead of RTDS where // supported. Currently, allowing all clusters is not supported. EcdsAllowList *Config_ECDSAllowList `protobuf:"bytes,5,opt,name=ecds_allow_list,json=ecdsAllowList,proto3" json:"ecds_allow_list,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetCacheRefreshInterval ¶
func (x *Config) GetCacheRefreshInterval() *durationpb.Duration
func (*Config) GetEcdsAllowList ¶
func (x *Config) GetEcdsAllowList() *Config_ECDSAllowList
func (*Config) GetHeartbeatInterval ¶
func (x *Config) GetHeartbeatInterval() *durationpb.Duration
func (*Config) GetResourceTtl ¶
func (x *Config) GetResourceTtl() *durationpb.Duration
func (*Config) GetRtdsLayerName ¶
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_ECDSAllowList ¶
type Config_ECDSAllowList struct { EnabledClusters []string `protobuf:"bytes,1,rep,name=enabled_clusters,json=enabledClusters,proto3" json:"enabled_clusters,omitempty"` // contains filtered or unexported fields }
func (*Config_ECDSAllowList) Descriptor
deprecated
func (*Config_ECDSAllowList) Descriptor() ([]byte, []int)
Deprecated: Use Config_ECDSAllowList.ProtoReflect.Descriptor instead.
func (*Config_ECDSAllowList) GetEnabledClusters ¶
func (x *Config_ECDSAllowList) GetEnabledClusters() []string
func (*Config_ECDSAllowList) ProtoMessage ¶
func (*Config_ECDSAllowList) ProtoMessage()
func (*Config_ECDSAllowList) ProtoReflect ¶
func (x *Config_ECDSAllowList) ProtoReflect() protoreflect.Message
func (*Config_ECDSAllowList) Reset ¶
func (x *Config_ECDSAllowList) Reset()
func (*Config_ECDSAllowList) String ¶
func (x *Config_ECDSAllowList) String() string
func (*Config_ECDSAllowList) Validate ¶
func (m *Config_ECDSAllowList) Validate() error
Validate checks the field values on Config_ECDSAllowList 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_ECDSAllowList) ValidateAll ¶
func (m *Config_ECDSAllowList) ValidateAll() error
ValidateAll checks the field values on Config_ECDSAllowList 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_ECDSAllowListMultiError, or nil if none found.
type Config_ECDSAllowListMultiError ¶
type Config_ECDSAllowListMultiError []error
Config_ECDSAllowListMultiError is an error wrapping multiple validation errors returned by Config_ECDSAllowList.ValidateAll() if the designated constraints aren't met.
func (Config_ECDSAllowListMultiError) AllErrors ¶
func (m Config_ECDSAllowListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Config_ECDSAllowListMultiError) Error ¶
func (m Config_ECDSAllowListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Config_ECDSAllowListValidationError ¶
type Config_ECDSAllowListValidationError struct {
// contains filtered or unexported fields
}
Config_ECDSAllowListValidationError is the validation error returned by Config_ECDSAllowList.Validate if the designated constraints aren't met.
func (Config_ECDSAllowListValidationError) Cause ¶
func (e Config_ECDSAllowListValidationError) Cause() error
Cause function returns cause value.
func (Config_ECDSAllowListValidationError) Error ¶
func (e Config_ECDSAllowListValidationError) Error() string
Error satisfies the builtin error interface
func (Config_ECDSAllowListValidationError) ErrorName ¶
func (e Config_ECDSAllowListValidationError) ErrorName() string
ErrorName returns error name.
func (Config_ECDSAllowListValidationError) Field ¶
func (e Config_ECDSAllowListValidationError) Field() string
Field function returns field value.
func (Config_ECDSAllowListValidationError) Key ¶
func (e Config_ECDSAllowListValidationError) Key() bool
Key function returns key value.
func (Config_ECDSAllowListValidationError) Reason ¶
func (e Config_ECDSAllowListValidationError) Reason() string
Reason function returns reason value.