...

Package status

import "sigs.k8s.io/cli-utils/cmd/status"
Overview
Index
Subdirectories

Overview ▾

Constants

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

Variables

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

func Command

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

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

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

type Runner struct {
    Command *cobra.Command

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

func GetRunner

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

Subdirectories

Name Synopsis
..
printers
event
json
printer
table