Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectAnnotationKey ¶ added in v1.1.0
InjectAnnotationKey maps the instrumentation type to the inject annotation.
func NewMutator ¶
Types ¶
type AnnotationMutation ¶ added in v1.1.0
type AnnotationMutation interface { // Mutate attempts to modify the annotations map. Returns whether the function changed the annotations. Mutate(annotations map[string]string) bool }
AnnotationMutation is used to modify an annotation map.
func NewInsertAnnotationMutation ¶ added in v1.1.0
func NewInsertAnnotationMutation(annotations map[string]string) AnnotationMutation
NewInsertAnnotationMutation creates a new mutation that inserts annotations. All provided annotation keys must be present for it to attempt to insert.
func NewRemoveAnnotationMutation ¶ added in v1.1.0
func NewRemoveAnnotationMutation(annotations []string) AnnotationMutation
NewRemoveAnnotationMutation creates a new mutation that removes annotations. All provided annotation keys must be present for it to attempt to remove them.
type AnnotationMutator ¶ added in v1.1.0
type AnnotationMutator struct {
// contains filtered or unexported fields
}
func NewAnnotationMutator ¶ added in v1.1.0
func NewAnnotationMutator(mutations []AnnotationMutation) AnnotationMutator
NewAnnotationMutator creates a mutator with the provided mutations that can mutate an Object's annotations.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.