status

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Known   = "known"
	Current = "current"
	Deleted = "deleted"
	Forever = "forever"
)
View Source
const (
	Local  = "local"
	Remote = "remote"
)

Variables

View Source
var (
	PollUntilOptions = []string{Known, Current, Deleted, Forever}
)

Functions

func Command added in v0.28.0

func Command(ctx context.Context, f cmdutil.Factory,
	invFactory inventory.ClientFactory, loader Loader) *cobra.Command

Types

type InventoryLoader added in v0.33.0

type InventoryLoader struct {
	Loader manifestreader.ManifestLoader
}

func NewInventoryLoader added in v0.33.0

func NewInventoryLoader(loader manifestreader.ManifestLoader) *InventoryLoader

func (*InventoryLoader) GetInvInfo added in v0.33.0

func (ir *InventoryLoader) GetInvInfo(cmd *cobra.Command, args []string) (inventory.Info, error)

type Loader added in v0.33.0

type Loader interface {
	GetInvInfo(cmd *cobra.Command, args []string) (inventory.Info, error)
}

type Runner added in v0.28.0

type Runner struct {
	Command *cobra.Command

	PollerFactoryFunc func(cmdutil.Factory) (poller.Poller, error)
	// contains filtered or unexported fields
}

Runner captures the parameters for the command and contains the run function.

func GetRunner added in v0.28.0

func GetRunner(ctx context.Context, factory cmdutil.Factory,
	invFactory inventory.ClientFactory, loader Loader) *Runner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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