context

package
v0.0.0-...-d52247b Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() cli.Command

Create context command

func Delete

func Delete() cli.Command

Delete context command

func Inspect

func Inspect() cli.Command

Inspect context command

func List

func List() cli.Command

List contexts command

func Unset

func Unset() cli.Command

Unset context command

func Update

func Update() cli.Command

Update context command

func Use

func Use() cli.Command

Use context command

func ValidateAPIURL

func ValidateAPIURL(apiURL string) error

func ValidateContextName

func ValidateContextName(context string) error

Types

type ContextMap

type ContextMap config.ContextMap

func (*ContextMap) Set

func (ctxMap *ContextMap) Set(key, value string) error

func (*ContextMap) UnSet

func (ctxMap *ContextMap) UnSet(key string) error

type Info

type Info struct {
	Current bool   `json:"current"`
	Name    string `json:"name"`
	*config.ContextFile
}

Info holds the information found in the context YAML file

func NewInfo

func NewInfo(name string, isCurrent bool, contextFile *config.ContextFile) *Info

NewInfo creates an instance of the contextInfo by parsing the provided context YAML file. This is used for outputting the context information

Jump to

Keyboard shortcuts

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