Documentation ¶
Index ¶
- Variables
- func EnsurePasswordLength(pass string) error
- func GetErrorMsg(err error) string
- func GetInput(msg string) (string, error)
- func GetMaskedPassword(prompt string) (string, error)
- func New(cfg ClusterConfig) (*grpc.ClientConn, error)
- func PrintConnectionErrorAndExit(err error)
- func PrintErrorAndExit(format string, args ...interface{})
- func SaveConfigFile(path string, cfg *Config) error
- func SaveToken(cfgFile, cfgCluster, token string) error
- func SortEnvsByKey(envs []*appb.InfoResponse_EnvVar)
- type ByKey
- type ClusterConfig
- type Config
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func EnsurePasswordLength ¶
func GetErrorMsg ¶
func GetMaskedPassword ¶
func New ¶
func New(cfg ClusterConfig) (*grpc.ClientConn, error)
func PrintConnectionErrorAndExit ¶
func PrintConnectionErrorAndExit(err error)
func PrintErrorAndExit ¶
func PrintErrorAndExit(format string, args ...interface{})
func SaveConfigFile ¶
func SortEnvsByKey ¶
func SortEnvsByKey(envs []*appb.InfoResponse_EnvVar)
Types ¶
type ByKey ¶
type ByKey []*appb.InfoResponse_EnvVar
type ClusterConfig ¶
type ClusterConfig struct { Server string `yaml:"server"` Token string `yaml:"token"` UseTLS bool `yaml:"tls"` Insecure bool `yaml:"insecure"` }
func GetConfig ¶
func GetConfig(cfgFile, cfgCluster string) (*ClusterConfig, error)
type Config ¶
type Config struct { Clusters map[string]ClusterConfig `yaml:"clusters"` CurrentCluster string `yaml:"current_cluster"` }
func ReadConfigFile ¶
Click to show internal directories.
Click to hide internal directories.