status

package
v0.36.0-flux.1 Latest Latest
Warning

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

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

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

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

Types

type InventoryLoader

type InventoryLoader struct {
	Loader manifestreader.ManifestLoader
}

func NewInventoryLoader

func NewInventoryLoader(loader manifestreader.ManifestLoader) *InventoryLoader

func (*InventoryLoader) GetInvInfo

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

type Loader

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

type Runner

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

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