environments

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvVarEnv = "CRE_CLI_ENV"

	EnvVarAuthBase        = "CRE_CLI_AUTH_BASE"
	EnvVarClientID        = "CRE_CLI_CLIENT_ID"
	EnvVarGraphQLURL      = "CRE_CLI_GRAPHQL_URL"
	EnvVarAudience        = "CRE_CLI_AUDIENCE"
	EnvVarVaultGatewayURL = "CRE_VAULT_DON_GATEWAY_URL"

	EnvVarWorkflowRegistryAddress          = "CRE_CLI_WORKFLOW_REGISTRY_ADDRESS"
	EnvVarWorkflowRegistryChainName        = "CRE_CLI_WORKFLOW_REGISTRY_CHAIN_NAME"
	EnvVarWorkflowRegistryChainExplorerURL = "CRE_CLI_WORKFLOW_REGISTRY_CHAIN_EXPLORER_URL"
	EnvVarDonFamily                        = "CRE_CLI_DON_FAMILY"

	DefaultEnv = "PRODUCTION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentSet

type EnvironmentSet struct {
	AuthBase   string `yaml:"CRE_CLI_AUTH_BASE"`
	ClientID   string `yaml:"CRE_CLI_CLIENT_ID"`
	GraphQLURL string `yaml:"CRE_CLI_GRAPHQL_URL"`
	Audience   string `yaml:"CRE_CLI_AUDIENCE"`
	GatewayURL string `yaml:"CRE_VAULT_DON_GATEWAY_URL"`

	WorkflowRegistryAddress          string `yaml:"CRE_CLI_WORKFLOW_REGISTRY_ADDRESS"`
	WorkflowRegistryChainName        string `yaml:"CRE_CLI_WORKFLOW_REGISTRY_CHAIN_NAME"`
	WorkflowRegistryChainExplorerURL string `yaml:"CRE_CLI_WORKFLOW_REGISTRY_CHAIN_EXPLORER_URL"`
	DonFamily                        string `yaml:"CRE_CLI_DON_FAMILY"`
}

func New

func New() (*EnvironmentSet, error)

func NewEnvironmentSet

func NewEnvironmentSet(ff *fileFormat, envName string) *EnvironmentSet

Jump to

Keyboard shortcuts

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