Documentation ¶
Index ¶
- Variables
- func ConfigCmdCreateAmazonRun(cfg *objects.Config) error
- func ConfigCmdCreateAzureRun(cfg *objects.Config) error
- func ConfigCmdCreateGoogleRun(cfg *objects.Config) error
- func ConfigCmdCreateRun(cfg *objects.Config) error
- func GetConfigRecursive(loc string, cfg *objects.Config, nc objects.NodeConfig) error
- func LoadConfig(loc string, cfg *objects.Config, nc objects.NodeConfig) error
- func LoadConfigInteractive(loc string, cfg *objects.Config, nc objects.NodeConfig) error
- func SetProxy(proxyURL string) error
- func StoreConfig(cfg *objects.Config, loc string) error
- func ValidateNodeConfig(nc *objects.NodeConfig, interactive bool) bool
- func ValidateUserCredentials(cfg *objects.Config, nc objects.NodeConfig) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( REGION_INVALID error = errors.New("Invalid Region") INVALID_CREDS error = errors.New("Invalid Credentials") NO_CONFIG = errors.New("No config found, please create with `pf9ctl config set`") MISSSING_FIELDS = errors.New("Missing mandatory field(s) (Platform9 Account URL/Username/Password/Region/Tenant)") MAX_ATTEMPTS_ERROR = errors.New("Invalid credentials entered multiple times (Platform9 Account URL/Username/Password/Region/Tenant/Proxy URL/MFA Token)") )
Functions ¶
func ConfigCmdCreateAzureRun ¶
func ConfigCmdCreateRun ¶
ConfigCmdCreatRun will initiate the config set and return a config given by user
func GetConfigRecursive ¶
func LoadConfig ¶
LoadConfig returns the information for communication with PF9 controller.
func LoadConfigInteractive ¶
func StoreConfig ¶
StoreConfig simply updates the in-memory object
func ValidateNodeConfig ¶
func ValidateNodeConfig(nc *objects.NodeConfig, interactive bool) bool
func ValidateUserCredentials ¶
func ValidateUserCredentials(cfg *objects.Config, nc objects.NodeConfig) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.