Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Username *string
Password *string
IdentityDomain *string
APIEndpoint *url.URL
MaxRetries *int
LogLevel LogLevelType
Logger Logger
HTTPClient *http.Client
UserAgent *string
}
Config details the parameters needed to authenticate with Oracle Clouds API
type LogLevelType ¶
type LogLevelType uint
LogLevelType details the constants that log level can be in
const ( // LogOff turns logging off LogOff LogLevelType = 0 // LogDebug turns logging to debug LogDebug LogLevelType = 1 )
func LogLevel ¶
func LogLevel() LogLevelType
LogLevel gets current Log Level from the ORACLE_LOG env var
type Logger ¶
type Logger interface {
Log(...interface{})
}
Logger interface. Should be satisfied by Terraform's logger as well as the Default logger
func NewDefaultLogger ¶
func NewDefaultLogger() Logger
NewDefaultLogger returns a default logger if one isn't specified during configuration
type LoggerFunc ¶
type LoggerFunc func(...interface{})
LoggerFunc details the logger functions
func (LoggerFunc) Log ¶
func (f LoggerFunc) Log(args ...interface{})
Log logs the specified messages
type OracleError ¶
OracleError details the parameters of an error returned from Oracle's API
func (OracleError) Error ¶
func (e OracleError) Error() string
Click to show internal directories.
Click to hide internal directories.