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 ¶ added in v0.24.0
func PrintConnectionErrorAndExit(err error)
func PrintErrorAndExit ¶
func PrintErrorAndExit(format string, args ...interface{})
func SaveConfigFile ¶
func SortEnvsByKey ¶ added in v0.8.0
func SortEnvsByKey(envs []*appb.InfoResponse_EnvVar)
Types ¶
type ByKey ¶ added in v0.8.0
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.