Documentation
¶
Overview ¶
Package envprovider provides utilities for accessing environment variables to pass Mountpoint.
Index ¶
Constants ¶
View Source
const ( EnvRegion = "AWS_REGION" EnvDefaultRegion = "AWS_DEFAULT_REGION" EnvSTSRegionalEndpoints = "AWS_STS_REGIONAL_ENDPOINTS" EnvMaxAttempts = "AWS_MAX_ATTEMPTS" EnvProfile = "AWS_PROFILE" EnvConfigFile = "AWS_CONFIG_FILE" EnvRoleARN = "AWS_ROLE_ARN" EnvWebIdentityTokenFile = "AWS_WEB_IDENTITY_TOKEN_FILE" EnvEC2MetadataDisabled = "AWS_EC2_METADATA_DISABLED" EnvAccessKeyID = "AWS_ACCESS_KEY_ID" EnvSecretAccessKey = "AWS_SECRET_ACCESS_KEY" EnvSessionToken = "AWS_SESSION_TOKEN" EnvMountpointCacheKey = "UNSTABLE_MOUNTPOINT_CACHE_KEY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
Environment represents a list of environment variables as key-value pairs.
func Default ¶
func Default() Environment
Default returns list of environment variables to pass Mountpoint.
func (Environment) Delete ¶
func (env Environment) Delete(key Key)
Delete deletes the environment variable with the specified key.
func (Environment) List ¶
func (env Environment) List() []string
List returns a sorted slice of environment variables in "KEY=VALUE" format.
func (Environment) Merge ¶
func (env Environment) Merge(other Environment)
Merge adds all key-value pairs from the given environment to the current environment. If a key exists in both environments, the value from the given environment takes precedence.
func (Environment) Set ¶
func (env Environment) Set(key Key, value Value)
Set adds or updates the environment variable with the specified key and value.
Click to show internal directories.
Click to hide internal directories.