opc

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2017 License: MPL-2.0 Imports: 7 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int added in v0.1.1

func Int(v int) *int

func LogOutput

func LogOutput() (logOutput io.Writer, err error)

func String

func String(v string) *string

Types

type Config

type Config struct {
	Username       *string
	Password       *string
	IdentityDomain *string
	APIEndpoint    *url.URL
	MaxRetries     *int
	LogLevel       LogLevelType
	Logger         Logger
	HTTPClient     *http.Client
}

func NewConfig

func NewConfig() *Config

type LogLevelType

type LogLevelType uint
const (
	LogOff   LogLevelType = 0
	LogDebug LogLevelType = 1
)

func LogLevel

func LogLevel() LogLevelType

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

Returns a default logger if one isn't specified during configuration

type LoggerFunc

type LoggerFunc func(...interface{})

func (LoggerFunc) Log

func (f LoggerFunc) Log(args ...interface{})

type OracleError

type OracleError struct {
	StatusCode int
	Message    string
}

func (OracleError) Error

func (e OracleError) Error() string

Jump to

Keyboard shortcuts

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