meta

package
v6.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

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

func Must

func Must(m any) Meta

Must performs type assertion on m and panics if m does not hold Meta value

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

Jump to

Keyboard shortcuts

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