context

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSelectHeight      = 500
	PreviousContextAlias = "-"
)

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) 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) Print added in v1.1.0

func (c *Client) Print(contexts map[string]*api.Context) error

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