Documentation ¶
Index ¶
- type Context
- func (ctx *Context) CobraPostRun(cmd *cobra.Command, args []string)
- func (ctx *Context) Defer(f func()) *Context
- func (ctx *Context) DeferCobra(f func(cmd *cobra.Command, args []string)) *Context
- func (ctx *Context) Exit(code int)
- func (ctx *Context) ExitCommand()
- func (ctx *Context) GetAPI() string
- func (ctx *Context) GetAuth() model.UserInfo
- func (ctx *Context) GetClient() *chClient.Client
- func (ctx *Context) GetNamespace() Namespace
- func (ctx *Context) GetSelfSignedTLSRule() bool
- func (ctx *Context) GetStorable() Storable
- func (ctx *Context) RunDeferred() *Context
- func (ctx *Context) SetAPI(api string) *Context
- func (ctx *Context) SetAuth(login, password string) *Context
- func (ctx *Context) SetNamespace(ns Namespace) *Context
- func (ctx *Context) SetSelfSignedTLSRule(allow bool) *Context
- func (ctx *Context) SetStorable(config Storable) (configVersion string)
- func (ctx *Context) SetTemporaryNamespace(ns namespace.Namespace) *Context
- func (ctx *Context) StartCommand(command string)
- type Namespace
- type Storable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Log coblog.Log Version string ConfigPath string ConfigDir string Changed bool TokensChanged bool Client chClient.Client // contains filtered or unexported fields }
func (*Context) DeferCobra ¶
func (*Context) ExitCommand ¶
func (ctx *Context) ExitCommand()
func (*Context) GetNamespace ¶
func (*Context) GetSelfSignedTLSRule ¶
func (*Context) GetStorable ¶
func (*Context) RunDeferred ¶
func (*Context) SetNamespace ¶
func (*Context) SetSelfSignedTLSRule ¶
func (*Context) SetStorable ¶
func (*Context) SetTemporaryNamespace ¶
func (*Context) StartCommand ¶
type Namespace ¶
func NamespaceFromModel ¶
Click to show internal directories.
Click to hide internal directories.