Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetContext ¶
SetContext - updates an existing context or creates a new one
func SetCurrentContext ¶
func SetCurrentContext(ctxName string)
SetCurrentContext - sets a given context as current context
Types ¶
type Context ¶
type Context struct { Endpoint string `yaml:"endpoint"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` MasterKey string `yaml:"masterkey,omitempty"` Current bool `yaml:"current,omitempty"` AuthToken string `yaml:"auth_token,omitempty"` SSO bool `yaml:"sso,omitempty"` TenantId string `yaml:"tenant_id,omitempty"` Saas bool `yaml:"saas,omitempty"` }
Context maintains configuration for interaction with Netmaker API
func GetCurrentContext ¶
GetCurrentContext - returns current set context
Click to show internal directories.
Click to hide internal directories.