inventory

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Overview

Package inventory implements inventory specific init and update functionalities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InventoryInitOptions

type InventoryInitOptions struct {
	Repository        string
	InventoryImageTag string
	Override          bool

	ImgpkgOptions imgpkg.ImgpkgWrapper
}

InventoryInitOptions defines options for inventory init

func (*InventoryInitOptions) InitializeInventory

func (iio *InventoryInitOptions) InitializeInventory() error

InitializeInventory initializes the repository with the empty inventory database

type InventoryPluginUpdateOptions

type InventoryPluginUpdateOptions struct {
	Repository        string
	InventoryImageTag string
	ManifestFile      string
	Publisher         string
	Vendor            string
	DeactivatePlugins bool

	ImgpkgOptions imgpkg.ImgpkgWrapper
}

InventoryPluginUpdateOptions defines options for inserting plugin to the inventory database

func (*InventoryPluginUpdateOptions) PluginAdd

func (ipuo *InventoryPluginUpdateOptions) PluginAdd() error

PluginAdd add plugin entry to the inventory database by downloading the database from the repository, updating it locally and publishing the inventory database as OCI image on the remote repository

func (*InventoryPluginUpdateOptions) UpdatePluginActivationState

func (ipuo *InventoryPluginUpdateOptions) UpdatePluginActivationState() error

UpdatePluginActivationState updates plugin entry in the inventory database by downloading the database from the repository, updating it locally and publishing the inventory database as OCI image on the remote repository

Jump to

Keyboard shortcuts

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