config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COSTPILOT_PROVIDER  = "COSTPILOT_PROVIDER"
	COSTPILOT_AK        = "COSTPILOT_AK"
	COSTPILOT_SK        = "COSTPILOT_SK"
	COSTPILOT_REGION_ID = "COSTPILOT_REGION_ID"
)

Variables

This section is empty.

Functions

func Init

func Init() error

func InitFileConfig

func InitFileConfig(filePath ...string) (err error)

InitFileConfig load configuration from config file

func InitFromEnvConfig

func InitFromEnvConfig() error

InitFromEnvConfig lood configuration from environment

Types

type Config

type Config struct {
	CloudAccounts []types.CloudAccount `json:"cloud_accounts" yaml:"cloud_accounts"`
}

func GetGlobalConfig

func GetGlobalConfig() *Config

Jump to

Keyboard shortcuts

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