Documentation ¶
Overview ¶
Package meta contains code related to provider's meta information
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilLog = errors.New("nil log argument")
ErrNilLog is an error returned from New(...) when log argument is nil
View Source
var ErrNilSession = errors.New("nil session argument")
ErrNilSession is an error returned from New(...) when session argument is nil
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta interface { // Log constructs an hclog sublogger and returns the log.Interface Log(args ...interface{}) log.Interface // OperationID returns the operation id OperationID() string // Session returns the operation API session Session() session.Session }
Meta is the akamai meta object interface
type OperationMeta ¶
type OperationMeta struct {
// contains filtered or unexported fields
}
OperationMeta is the implementation of Meta interface
func New ¶
func New(sess session.Session, log hclog.Logger, operationID string) (*OperationMeta, error)
New returns a new OperationMeta
func (*OperationMeta) Log ¶
func (m *OperationMeta) Log(args ...interface{}) log.Interface
Log creates a logger for the provider from the meta
func (*OperationMeta) OperationID ¶
func (m *OperationMeta) OperationID() string
OperationID returns the operation id from the meta
func (*OperationMeta) Session ¶
func (m *OperationMeta) Session() session.Session
Session returns the meta session
Click to show internal directories.
Click to hide internal directories.