config

package
v0.0.0-...-179c803 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 ConfigCmdCreateAmazonRun

func ConfigCmdCreateAmazonRun(cfg *objects.Config) error

func ConfigCmdCreateAzureRun

func ConfigCmdCreateAzureRun(cfg *objects.Config) error

func ConfigCmdCreateGoogleRun

func ConfigCmdCreateGoogleRun(cfg *objects.Config) error

func ConfigCmdCreateRun

func ConfigCmdCreateRun(cfg *objects.Config) error

ConfigCmdCreatRun will initiate the config set and return a config given by user

func GetConfigRecursive

func GetConfigRecursive(loc string, cfg *objects.Config, nc objects.NodeConfig) error

func LoadConfig

func LoadConfig(loc string, cfg *objects.Config, nc objects.NodeConfig) error

LoadConfig returns the information for communication with PF9 controller.

func LoadConfigInteractive

func LoadConfigInteractive(loc string, cfg *objects.Config, nc objects.NodeConfig) error

func SetProxy

func SetProxy(proxyURL string) error

func StoreConfig

func StoreConfig(cfg *objects.Config, loc string) error

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.

Jump to

Keyboard shortcuts

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