package
0.0.0-20240905184220-0a5f9d4d9d01
Repository: https://github.com/datadog/chaos-controller.git
Documentation: pkg.go.dev

# Functions

ConvertSpecifications takes a series of alterations configured for a target endpoint where assignments are distributed based on percentage odds (QueryPercent) expected for different return alterations and returns a slice where the slice's "index" between 0 and some number less than 100 are assigned Alterations which reappear as many times as the requested query percentage.
FlattenAlterationMap takes a mapping from alterationConfiguration to the percentage of requests and returns a slice where the slice's "index" between 0 and some number less than 100 are assigned Alterations which reappear as many times as the requested query percentage.
GetPercentagePerAlteration takes a series of alterations configured for a target endpoint and returns a mapping from the alteration to the percentage of queries which will be altered by it.

# Structs

AlterationConfiguration contains either an ErrorToReturn or an OverrideToReturn for a given gRPC query to the disrupted service.
EndpointConfiguration configures endpoints that the DisruptionListener chaos tests on a gRPC server.

# Type aliases

DisruptionConfiguration configures the DisruptionListener to chaos test endpoints of a gRPC server.
QueryPercent is an integer representing the percentage odds that a query for an endpoint is affected by a certain alteration.
TargetEndpoint is a string of the format /package.service/method.