Documentation ¶
Index ¶
- Constants
- Variables
- func New(cfg *any.Any, logger *zap.Logger, scope tally.Scope) (module.Module, error)
- func TypeUrl(message proto.Message) string
- type ClusterHashV3
- type ECDSConfig
- type ECDSResource
- type ECDSResourceGenerator
- type ECDSServer
- type Poller
- type RTDSConfig
- type RTDSResource
- type RTDSResourceGenerator
- type RuntimeKeyValue
- type SafeEcdsResourceMap
- type Server
Constants ¶
View Source
const Name = "clutch.module.chaos.experimentation.xds"
Variables ¶
View Source
var ECDSGeneratorsByTypeUrl = map[string]ECDSResourceGenerator{}
View Source
var RTDSGeneratorsByTypeUrl = map[string]RTDSResourceGenerator{}
Functions ¶
Types ¶
type ECDSConfig ¶
type ECDSConfig struct {
// contains filtered or unexported fields
}
type ECDSResource ¶
type ECDSResource struct { Cluster string ExtensionConfig *gcpCoreV3.TypedExtensionConfig }
func NewECDSResource ¶
func NewECDSResource(cluster string, config *gcpCoreV3.TypedExtensionConfig) (*ECDSResource, error)
type ECDSResourceGenerator ¶
type ECDSResourceGenerator interface { // Generates an ECDS resource for a given experiment. The implementation should return nil resource and // no error if it's not interested in creating resources for a given experiment. GenerateResource(experiment *experimentstore.Experiment) (*ECDSResource, error) // Generates an ECDS resource for a given experiment and a given resource name that // moves ECDS state back to its initial state - as if the receiver has not generated any ECDS // resource. The implementation of the method should return nil resource and no error if it receives // a `resourceName` that it doesn't recognize. GenerateDefaultResource(cluster string, resourceName string) (*ECDSResource, error) }
type ECDSServer ¶
type ECDSServer interface { extensionconfigservice.ExtensionConfigDiscoveryServiceServer }
func NewECDSServer ¶
func NewECDSServer(ctx context.Context, config cache.Cache, callbacks gcpServerV3.Callbacks) ECDSServer
type RTDSConfig ¶
type RTDSConfig struct {
// contains filtered or unexported fields
}
type RTDSResource ¶
type RTDSResource struct { Cluster string RuntimeKeyValues []*RuntimeKeyValue }
func NewRTDSResource ¶
func NewRTDSResource(cluster string, keyValues []*RuntimeKeyValue) (*RTDSResource, error)
type RTDSResourceGenerator ¶
type RTDSResourceGenerator interface { // Generates an RTDS resource for a given experiment. The implementation of this method should // return a nil resource and no error if the receiver is not interested in generating faults for a // passed experiment. GenerateResource(experiment *experimentstore.Experiment) (*RTDSResource, error) }
type RuntimeKeyValue ¶
type SafeEcdsResourceMap ¶
type SafeEcdsResourceMap struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.