cli

package
v0.0.0-...-34c4156 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyPrint

func PrettyPrint(obj interface{}, output string) error

Types

type Client

type Client struct {
	client.WithWatch
	Namespace string
}

func NewClient

func NewClient() (*Client, error)

func (*Client) Watch

func (cl *Client) Watch(ctx context.Context, list client.ObjectList) (*Watcher, error)

type Prettifier

type Prettifier interface {
	Prettify() interface{}
}

type Tabler

type Tabler interface {
	Header() table.Row
	Rows() []table.Row
}

type WaitCondition

type WaitCondition func(watch.Event) bool

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func (*Watcher) Stop

func (w *Watcher) Stop()

func (*Watcher) Wait

func (w *Watcher) Wait(condition WaitCondition) runtime.Object

Jump to

Keyboard shortcuts

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