Versions in this module Expand all Collapse all v0 v0.0.1 Jul 29, 2026 Changes in this version + const BinaryName + const ConfigDir + func ConfigPath() (string, error) + func DefaultConfigDirectory() (string, error) + type Config struct + Client client.Client + Completion *completion.Completion + Context Context + DescribePrinter printers.Printer + Fs afero.Fs + In io.Reader + ListPrinter printers.Printer + Out io.Writer + PromptOut io.Writer + func (c *Config) ContextListCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + func (c *Config) GetApiURL() string + func (c *Config) GetContexts() (*Contexts, error) + func (c *Config) GetProject() string + func (c *Config) GetProvider() string + func (c *Config) GetTenant() (string, error) + func (c *Config) GetToken() string + func (c *Config) MustDefaultContext() Context + func (c *Config) NewRequestContext() (context.Context, context.CancelFunc) + func (c *Config) WriteContexts(ctxs *Contexts) error + type Context struct + ApiURL *string + DefaultProject string + Name string + Provider string + Timeout *time.Duration + Token string + type Contexts struct + Contexts []*Context + CurrentContext string + PreviousContext string + func (cs *Contexts) Delete(name string) + func (cs *Contexts) Get(name string) (*Context, bool) + func (cs *Contexts) List() []*Context + func (cs *Contexts) Validate() error