Files
threshold/testing/internal/e2e/infra/env.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
460 B
Go
Raw Normal View History

2023-04-04 13:50:17 -04:00
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package infra
import "github.com/kelseyhightower/envconfig"
type Config struct {
DockerMirror string `envconfig:"DOCKER_MIRROR" default:"docker.mirror.hashicorp.services"`
BoundaryLicense string `envconfig:"BOUNDARY_LICENSE" default:""`
2023-04-04 13:50:17 -04:00
}
func LoadConfig() (*Config, error) {
var c Config
err := envconfig.Process("", &c)
if err != nil {
return nil, err
}
return &c, nil
}