config

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDirectory added in v0.1.32

func GetConfigDirectory() (string, error)

GetConfigDirectory returns the backplane config path

func GetConfigFilePath added in v0.1.4

func GetConfigFilePath() (string, error)

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

Jump to

Keyboard shortcuts

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