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 {
EnvName string `yaml:"-"`
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
func (*EnvironmentSet) EnvLabel ¶ added in v1.3.0
func (e *EnvironmentSet) EnvLabel() string
EnvLabel returns the environment name for display purposes. Returns "" for the default (PRODUCTION) environment so callers can skip environment labeling when the user is in the standard context.
func (*EnvironmentSet) RequiresVPN ¶ added in v1.3.0
func (e *EnvironmentSet) RequiresVPN() bool
RequiresVPN returns true if the GraphQL endpoint is on a private network (e.g. Tailscale) that requires VPN connectivity.
Click to show internal directories.
Click to hide internal directories.