context

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSelectHeight      = 500
	PreviousContextAlias = "-"
	SortAsc              = "asc"
	SortDesc             = "desc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.1.0

type Client struct {
	Config    *config.Config
	State     *state.State
	APIConfig *api.Config
}

func New added in v1.1.0

func New() (*Client, error)

func (*Client) BuildTablePrinter added in v1.5.0

func (c *Client) BuildTablePrinter(contexts map[string]*api.Context) *pterm.TablePrinter

func (*Client) Get added in v1.1.0

func (c *Client) Get(contextName string) (map[string]*api.Context, error)

func (*Client) List added in v1.1.0

func (c *Client) List() map[string]*api.Context

func (*Client) Set added in v1.1.0

func (c *Client) Set(contextName string) error

Jump to

Keyboard shortcuts

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