Documentation ¶
Index ¶
- func AddCluster(name, url string) error
- func AddExpose() error
- func AddPort(name string) error
- func EditPort(name string) error
- func GenerateConfig() error
- func GetClusterURL(name string) (string, error)
- func LoadConfigFromFile(path string) (*model.Deploy, error)
- func LoadGlobalConfigFromFile(path string) (*model.GlobalConfig, error)
- func RemoveCluster(name string) error
- func RemoveEnvVar(name string) error
- func RemovePort(name string) error
- func SetCPU(cpu string) error
- func SetClusterToken(name, token string) error
- func SetClusterURL(name, url string) error
- func SetEnvVar(name, value string) error
- func SetMemory(memory string) error
- func SetReplicas(replicas string) error
- func StoreConfigToFile(conf *model.Deploy, path string) error
- func StoreGlobalConfigToFile(c *model.GlobalConfig, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConfig ¶
func GenerateConfig() error
GenerateConfig runs the cli survey and generates a config file
func GetClusterURL ¶
GetClusterURL returns the url of the cluster
func LoadConfigFromFile ¶
LoadConfigFromFile loads the config from the provided file path
func LoadGlobalConfigFromFile ¶
func LoadGlobalConfigFromFile(path string) (*model.GlobalConfig, error)
LoadGlobalConfigFromFile loads the global config from file
func RemoveCluster ¶
RemoveCluster removes a cluster from the config
func RemoveEnvVar ¶
RemoveEnvVar removes an environment variable
func SetClusterToken ¶
SetClusterToken sets a cluster token
func StoreConfigToFile ¶
StoreConfigToFile stores the deployer file to disk
func StoreGlobalConfigToFile ¶
func StoreGlobalConfigToFile(c *model.GlobalConfig, path string) error
StoreGlobalConfigToFile stores the global config to file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.