Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = loadConfig()
Functions ¶
func GetUserAgent ¶
func GetUserAgent() string
func LogSortingFunc ¶
func LogSortingFunc(keys []string)
func WriteStateFile ¶
Types ¶
type Spec ¶
type Spec struct { NoColor bool LogLevel string `envconfig:"INFRACOST_LOG_LEVEL" required:"false"` DefaultPricingAPIEndpoint string `envconfig:"DEFAULT_INFRACOST_PRICING_API_ENDPOINT" default:"https://pricing.api.infracost.io"` PricingAPIEndpoint string `envconfig:"INFRACOST_PRICING_API_ENDPOINT" required:"true" default:"https://pricing.api.infracost.io"` DashboardAPIEndpoint string `envconfig:"INFRACOST_DASHBOARD_API_ENDPOINT" required:"true" default:"https://dashboard.api.infracost.io"` APIKey string `envconfig:"INFRACOST_API_KEY"` }
Spec contains mapping of environment variable names to config values
func (*Spec) SetLogLevel ¶
Click to show internal directories.
Click to hide internal directories.