Help us shape the future of Go! Take the 2026 Go Developer Survey

inventory

package
v1.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceGroupInventoryConverter

type ResourceGroupInventoryConverter struct {
	// contains filtered or unexported fields
}

ResourceGroupInventoryConverter is used for converting ResourceGroup objects and persisting Config Sync specific metadata. This provides the translation logic to instantiate a UnstructuredClient which works with ResourceGroup objects.

func NewInventoryConverter

func NewInventoryConverter(scope declared.Scope, syncName string, statusMode metadata.StatusMode) *ResourceGroupInventoryConverter

NewInventoryConverter constructs a new ResourceGroupInventoryConverter

func (*ResourceGroupInventoryConverter) InventoryFromUnstructured

InventoryFromUnstructured converts a ResourceGroup object to SingleObjectInventory

func (*ResourceGroupInventoryConverter) InventoryToUnstructured

InventoryToUnstructured converts a SingleObjectInventory to a ResourceGroup object, using the current ResourceGroup object as a base. Only the metadata and spec are populated. The status is left empty, because the server ignores it when updating the object.

func (*ResourceGroupInventoryConverter) InventoryToUnstructuredStatus

InventoryToUnstructuredStatus converts a SingleObjectInventory to a ResourceGroup object, using the current ResourceGroup object as a base. Only the metadata and status are populated. The spec is left empty, because the server ignores it when updating the status.

func (*ResourceGroupInventoryConverter) UnstructuredClientFromFactory

func (ic *ResourceGroupInventoryConverter) UnstructuredClientFromFactory(factory util.Factory) (*inventory.UnstructuredClient, error)

UnstructuredClientFromFactory builds a new UnstructuredClient from a kubectl client factory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL