Documentation
¶
Index ¶
- Constants
- func ConfigExists() (bool, error)
- func GetConfigPath() string
- func InitNewConfigFile(name string, sso string, clusterTarget string) error
- type Cluster
- type Config
- func (c *Config) DumpConfig() error
- func (c *Config) GetCurrentClusterTarget() string
- func (c *Config) GetCurrentContext() *Context
- func (c *Config) GetCurrentSSOTarget() string
- func (c *Config) GetCurrentToken() string
- func (c *Config) GetCurrentUsername() string
- func (c *Config) NewContext(name string, sso string, clusterTarget string) error
- func (c *Config) Save() error
- func (c *Config) SaveToken(username string, token string) error
- func (c *Config) SetContext(name string) error
- type Context
- type User
Constants ¶
View Source
const ( // ShipyardctlConfigDir name of the config file directory for shipyardctl ShipyardctlConfigDir = ".shipyardctl" // ShipyardctlConfigFileName name of the config file for shipyardctl ShipyardctlConfigFileName = "config" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
Config shipyardctl configuration object
func MakeConfig ¶
MakeConfig creates a context named default based on the given environment
func (*Config) DumpConfig ¶
DumpConfig dumps the config to stdout
func (*Config) GetCurrentClusterTarget ¶
GetCurrentClusterTarget retrieves current context cluster target
func (*Config) GetCurrentContext ¶
GetCurrentContext retrieves the current context
func (*Config) GetCurrentSSOTarget ¶
GetCurrentSSOTarget retrieves current context sso target
func (*Config) GetCurrentToken ¶
GetCurrentToken retrieves the user token from the current active context
func (*Config) GetCurrentUsername ¶
GetCurrentUsername retrieves the username of the current context
func (*Config) NewContext ¶
NewContext used to create a new context
func (*Config) SetContext ¶
SetContext switch current context to given context name
Click to show internal directories.
Click to hide internal directories.