config

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDirctory added in v0.1.21

func GetConfigDirctory() (string, error)

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"` // Optional
	SessionDirectory string  `json:"session-dir"`
	AssumeInitialArn string  `json:"assume-initial-arn"`
	PagerDutyAPIKey  string  `json:"pd-key"`
}

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