config

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDefaultConfig

func LoadDefaultConfig() (cfg nifcloud.Config)

LoadDefaultConfig the default configuration sources is environment variables

func LoadEnvConfig

func LoadEnvConfig() (cfg nifcloud.Config)

LoadEnvConfig reads configuration values from the OS's environment variables

func LoadSharedConfig

func LoadSharedConfig(opts ...LoadSharedConfigOption) (nifcloud.Config, error)

LoadSharedConfig uses the configs passed in to load the SharedConfig from file

Types

type LoadSharedConfigOption

type LoadSharedConfigOption func(*LoadSharedConfigOptions)

func LoadSharedConfigWithCredentialsFile

func LoadSharedConfigWithCredentialsFile(credentialsFile string) LoadSharedConfigOption

func LoadSharedConfigWithProfile

func LoadSharedConfigWithProfile(profile string) LoadSharedConfigOption

type LoadSharedConfigOptions

type LoadSharedConfigOptions struct {
	Profile         string
	CredentialsFile string
}

Jump to

Keyboard shortcuts

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