Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrContextNotFound = errors.New("context not found") ErrContextAlreadyExistsWithName = errors.New("context already exists with the same name") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The current active context Current string `yaml:"current"` // The available contexts Contexts []Context `yaml:"contexts"` // contains filtered or unexported fields }
func (*Config) AddContext ¶
AddContext add the given context to the list of known contexts
func (*Config) GetContext ¶
GetContext returns the context associated with the given name.
func (*Config) GetCurrentContext ¶
GetCurrentContext returns the current context
func (*Config) UseContext ¶
UseContext set the current context to the given context
type Context ¶
type Context struct { // The name of the current context Name string `yaml:"name"` // The address of the controller Controller string `yaml:"controller"` // The address of the registry Registry string `yaml:"registry"` }
Context holds information about a single Morty instance.
type ControllerClientContextKey ¶ added in v1.1.0
type ControllerClientContextKey struct{}
type CurrentCtxKey ¶
type CurrentCtxKey struct{}
type RegistryClientContextKey ¶ added in v1.1.0
type RegistryClientContextKey struct{}
Click to show internal directories.
Click to hide internal directories.