config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseInstancePrincipal = "useInstancePrincipal"
	Tenancy              = "tenancy"
	User                 = "user"
	Passphrase           = "passphrase"
	Key                  = "key"
	Fingerprint          = "fingerprint"
	Region               = "region"
)

Variables

This section is empty.

Functions

func NewConfigurationProvider

func NewConfigurationProvider(cfg *AuthConfig) (common.ConfigurationProvider, error)

func NewConfigurationProviderWithUserPrincipal

func NewConfigurationProviderWithUserPrincipal(cfg *AuthConfig) (common.ConfigurationProvider, error)

func ReadFile

func ReadFile(path string, key string) (string, error)

Types

type AuthConfig

type AuthConfig struct {
	Region                string `yaml:"region"`
	TenancyID             string `yaml:"tenancy"`
	UserID                string `yaml:"user"`
	PrivateKey            string `yaml:"key"`
	Fingerprint           string `yaml:"fingerprint"`
	Passphrase            string `yaml:"passphrase"`
	UseInstancePrincipals bool   `yaml:"useInstancePrincipals"`
}

AuthConfig holds the configuration required for communicating with the OCI API.

func FromDir

func FromDir(path string) (*AuthConfig, error)

FromDir will load a cloud provider configuration file from a given directory.

Jump to

Keyboard shortcuts

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