Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *api.Client
Client used for the rest of the commands
View Source
var DefaultConfigFilepath = filepath.Join(api.DefaultConfigurationHomeDir, "lenses-cli.yml")
DefaultConfigFilepath the default config file path
Functions ¶
func DecryptPassword ¶
func DecryptPassword(cfg *api.ClientConfig)
DecryptPassword decrypts the password by provided client configuration
func EncryptPassword ¶
func EncryptPassword(cfg *api.ClientConfig) error
EncryptPassword encrypts the password by provided client configuration
func NewGetConfigsCommand ¶
NewGetConfigsCommand creates the `configs` command
func NewGetModeCommand ¶
NewGetModeCommand creates the `mode` command
func SetupConfigManager ¶
SetupConfigManager config manager
Types ¶
type ConfigurationManager ¶
type ConfigurationManager struct { Config *api.Config // flags below. CurrentContext string Filepath string // contains filtered or unexported fields }
ConfigurationManager manager for config
var Manager *ConfigurationManager
Manager the config manager
func NewConfigurationManager ¶
func NewConfigurationManager(set *pflag.FlagSet) *ConfigurationManager
NewConfigurationManager creates a configuration
func NewEmptyConfigManager ¶
func NewEmptyConfigManager() *ConfigurationManager
NewEmptyConfigManager creates an empty configuration
func (*ConfigurationManager) Load ¶
func (m *ConfigurationManager) Load() (bool, error)
Load loads the configuration
func (*ConfigurationManager) Save ¶
func (m *ConfigurationManager) Save() error
Save saves the configuration
Click to show internal directories.
Click to hide internal directories.