Help us shape the future of Go! Take the 2026 Go Developer Survey

commonconfig

package
v1.300074.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredentialSection = "credentials"
	CredentialProfile = "shared_credential_profile"
	CredentialFile    = "shared_credential_file"
	ProxySection      = "proxy"
	HttpProxy         = "http_proxy"
	HttpsProxy        = "https_proxy"
	NoProxy           = "no_proxy"
	SSLSection        = "ssl"
	CABundlePath      = "ca_bundle_path"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonConfig

type CommonConfig struct {
	Credentials *Credentials
	Proxy       *Proxy
	SSL         *SSL
	IMDS        *IMDS
}

func New

func New() *CommonConfig

func Parse

func Parse(r io.Reader) (*CommonConfig, error)

func (CommonConfig) CredentialsMap

func (c CommonConfig) CredentialsMap() map[string]string

Temporary functions to enable build TODO: To be removed when all uses of commonconfig stop using map[string]string

func (*CommonConfig) Parse

func (c *CommonConfig) Parse(r io.Reader) error

func (CommonConfig) ProxyMap

func (c CommonConfig) ProxyMap() map[string]string

Temporary functions to enable build TODO: To be removed when all uses of commonconfig stop using map[string]string

func (CommonConfig) SSLMap

func (c CommonConfig) SSLMap() map[string]string

Temporary functions to enable build TODO: To be removed when all uses of commonconfig stop using map[string]string

type Credentials

type Credentials struct {
	CredentialProfile *string `toml:"shared_credential_profile"`
	CredentialFile    *string `toml:"shared_credential_file"`
}

type IMDS added in v1.300028.0

type IMDS struct {
	ImdsRetries *int `toml:"imds_retries"`
}

IMDS is in common config because it happens before agent config translation

type Proxy

type Proxy struct {
	HttpProxy  *string `toml:"http_proxy"`
	HttpsProxy *string `toml:"https_proxy"`
	NoProxy    *string `toml:"no_proxy"`
}

type SSL

type SSL struct {
	CABundlePath *string `toml:"ca_bundle_path"`
}

Jump to

Keyboard shortcuts

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