package
0.36.0-flux.9
Repository: https://github.com/fluxcd/cli-utils.git
Documentation: pkg.go.dev

# Functions

AddDependsOn returns a testutil.Mutator which adds the passed objects as a depends-on annotation to the object which is mutated.
AddOwningInv returns a Mutator which adds the passed inv string as the owning inventory annotation.
AssertEqual fails the test if the actual value does not deeply equal the expected value.
AssertNotEqual fails the test if the actual value deeply equals the expected value.
DeleteOwningInv returns a Mutator which deletes the passed inv string from the owning inventory annotation.
Equal returns a matcher for use with Gomega that uses go-cmp's cmp.Equal to compare and cmp.Diff to show the difference, if there is one.
EqualError returns an error with an Is(error)bool function that matches any error with the same type and string value as the supplied error.
EqualErrorString returns an error with an Is(error)bool function that matches any error with the same Error() as the supplied string value.
EqualErrorType returns an error with an Is(error)bool function that matches any error with the same type as the supplied error.
No description provided by the author
No description provided by the author
Mutate executes the specified Mutators on the specified object.
Returns a new Asserter with the specified options.
No description provided by the author
No description provided by the author
Setupd creates directories in the test filesystem, returning the TestFilesystem.
SortExpEvents sorts a list of ExpEvents so they can be compared for equality.
ToIdentifier translates object yaml config into ObjMetadata.
Unstructured translates the passed object config string into an object in Unstructured format.
No description provided by the author

# Constants

OwningInventoryKey is the annotation key indicating the inventory owning an object.

# Variables

DefaultAsserter is a global Asserter with default comparison options: - EquateErrors (compare with "Is(T) bool" method).

# Structs

Asserter provides a set of assertion methods that use a shared set of comparison options.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TestFilesystem creates directories and files for testing.

# Interfaces

Mutator inteface defines a function to update an object while translating it unto Unstructured format from yaml config.

# Type aliases

GroupedEventsByID implements sort.Interface for []ExpEvent based on the serialized ObjMetadata of Apply, Prune, and Delete events within the same task group.