config

package
v0.0.0-...-40ccd29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCluster

func AddCluster(name, url string) error

AddCluster adds a cluster to the config

func AddExpose

func AddExpose() error

AddExpose adds an exposed port and its proxy information

func AddPort

func AddPort(name string) error

AddPort adds new port information

func EditPort

func EditPort(name string) error

EditPort edits existing port information

func GenerateConfig

func GenerateConfig() error

GenerateConfig runs the cli survey and generates a config file

func GetClusterURL

func GetClusterURL(name string) (string, error)

GetClusterURL returns the url of the cluster

func LoadConfigFromFile

func LoadConfigFromFile(path string) (*model.Deploy, error)

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

func RemoveCluster(name string) error

RemoveCluster removes a cluster from the config

func RemoveEnvVar

func RemoveEnvVar(name string) error

RemoveEnvVar removes an environment variable

func RemovePort

func RemovePort(name string) error

RemovePort removes existing port information

func SetCPU

func SetCPU(cpu string) error

SetCPU sets the cpu limit

func SetClusterToken

func SetClusterToken(name, token string) error

SetClusterToken sets a cluster token

func SetClusterURL

func SetClusterURL(name, url string) error

SetClusterURL sets a cluster url

func SetEnvVar

func SetEnvVar(name, value string) error

SetEnvVar sets an environment variable

func SetMemory

func SetMemory(memory string) error

SetMemory sets the memory limit

func SetReplicas

func SetReplicas(replicas string) error

SetReplicas sets the number of replicas

func StoreConfigToFile

func StoreConfigToFile(conf *model.Deploy, path string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL