Documentation ¶
Index ¶
- func DefaultInventoryID() (string, error)
- func GetFakeInventoryInfo(inventoryID string) *unstructured.Unstructured
- func GetInventoryInfo(path string) (*unstructured.Unstructured, error)
- func InventoryPath(path string) string
- func ParseInventoryFile(b []byte) (*unstructured.Unstructured, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultInventoryID ¶ added in v0.0.6
defaultInventoryID returns a UUID string as a default unique identifier for a inventory object label.
func GetFakeInventoryInfo ¶ added in v0.0.14
func GetFakeInventoryInfo(inventoryID string) *unstructured.Unstructured
func GetInventoryInfo ¶
func GetInventoryInfo(path string) (*unstructured.Unstructured, error)
func InventoryPath ¶
func ParseInventoryFile ¶ added in v0.0.6
func ParseInventoryFile(b []byte) (*unstructured.Unstructured, error)
Types ¶
type Config ¶
type Config struct { // Template string; must be a valid k8s resource. Template string // Package directory argument; must be valid directory. Dir string // Namespace for inventory object; Kform is fixed to kform-system. Namespace string // Inventory object label value; must be a valid k8s label value. InventoryID string // contains filtered or unexported fields }
InitOptions contains the fields necessary to generate a inventory object template ConfigMap.
func New ¶
func New(ioStreams genericclioptions.IOStreams) *Config
func (*Config) Complete ¶
Complete adds the inventoryID to the config if it is not supplied If the inventoryID is generated or supplied the fn validates the correctness of the inventoryID
func (*Config) GetInventoryFileString ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.