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

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
FindInventoryObj returns the "Inventory" object (ConfigMap with inventory label) if it exists, or nil if it does not exist.
No description provided by the author
No description provided by the author
IsInventoryObject returns true if the passed object has the inventory label.
NewClient returns a concrete implementation of the Client interface or an error.
NewFakeClient returns a FakeClient.
NewManager returns a new manager instance.
ObjectReferenceFromObjMetadata converts an ObjMetadata to a ObjectReference.
ObjMetadataFromObjectReference converts an ObjectReference to a ObjMetadata.
splitUnstructureds takes a set of unstructured.Unstructured objects and splits it into one set that contains the inventory object templates and another one that contains the remaining resources.
ValidateNoInventory takes a set of unstructured.Unstructured objects and validates that no inventory object is in the input slice.
WrapInventoryInfoObj takes a passed ConfigMap (as a resource.Info), wraps it with the ConfigMap and upcasts the wrapper as an the Info interface.
WrapInventoryObj takes a passed ConfigMap (as a resource.Info), wraps it with the ConfigMap and upcasts the wrapper as an the Inventory interface.

# Constants

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
OwningInventoryKey is the annotation key indicating the inventory owning an object.
AdoptAll.
AdoptIfNoInventory.
MustMatch.
All.
None.

# Variables

No description provided by the author

# Structs

ClusterClient is a concrete implementation of the Client interface.
ClusterClientFactory is a factory that creates instances of ClusterClient inventory client.
ConfigMap wraps a ConfigMap resource and implements the Inventory interface.
FakeBuilder encapsulates a resource Builder which will hard-code the return of an inventory object with the encoded past invObjs.
FakeClient is a testing implementation of the Client interface.
Manager wraps an Inventory with convenience methods that use ObjMetadata.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Client expresses an interface for interacting with objects which store references to objects (inventory objects).
ClientFactory is a factory that constructs new Client instances.
Info provides the minimal information for the applier to create, look up and update an inventory.
Storage describes methods necessary for an object which can persist the object metadata for pruning and other group operations.

# Type aliases

No description provided by the author
IDMatchStatus represents the result of comparing the id from current inventory info and the inventory-id from a live object.
Policy defines if an inventory object can take over objects that belong to another inventory object or don't belong to any inventory object.
StatusPolicy specifies whether the inventory client should apply status to the inventory object.
StorageFactoryFunc creates the object which implements the Inventory interface from the passed info object.
No description provided by the author
ToUnstructuredFunc returns the unstructured object for the given Info.