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)
nolint:nilnil
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.
Click to show internal directories.
Click to hide internal directories.