inventory

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inventory

type Inventory struct {
	// Resources are the resources organized by kind and name.
	Resources map[string]map[string]*resource.Resource
}

Inventory is the inventory.

func Load

func Load(path string) (*Inventory, error)

Load loads the inventory.

func New

func New() *Inventory

New returns a new inventory.

func (*Inventory) AddResource

func (inv *Inventory) AddResource(r *resource.Resource)

AddResource adds a resource to the inventory.

func (*Inventory) LoadResourceFile

func (inv *Inventory) LoadResourceFile(path string) error

LoadResourceFile loads resources from a manifest.

Jump to

Keyboard shortcuts

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