Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDirectory ¶ added in v0.1.32
GetConfigDirectory returns the backplane config path
func GetConfigFilePath ¶ added in v0.1.4
GetConfigFilePath returns the Backplane CLI configuration filepath
Types ¶
type BackplaneConfiguration ¶
type BackplaneConfiguration struct { URL string `json:"url"` ProxyURL *string `json:"proxy-url"` SessionDirectory string `json:"session-dir"` AssumeInitialArn string `json:"assume-initial-arn"` PagerDutyAPIKey string `json:"pd-key"` }
Please update the validateConfig function if there is any required config key added
func GetBackplaneConfiguration ¶
func GetBackplaneConfiguration() (bpConfig BackplaneConfiguration, err error)
GetBackplaneConfiguration parses and returns the given backplane configuration
func (BackplaneConfiguration) CheckAPIConnection ¶ added in v0.1.6
func (config BackplaneConfiguration) CheckAPIConnection() error
CheckAPIConnection validate API connection via configured proxy and VPN
func (*BackplaneConfiguration) GetBackplaneURL ¶ added in v0.1.21
func (config *BackplaneConfiguration) GetBackplaneURL() (string, error)
GetBackplaneURL returns API URL
Click to show internal directories.
Click to hide internal directories.