context

package
v0.0.0-...-f6ab670 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.Mock
}

Mock stands for a mocked context.

func NewMockDefault

func NewMockDefault() *Mock

NewMockDefault returns an instance of Mock with default expectations set.

func NewMockDefaultWithConfig

func NewMockDefaultWithConfig(config appconfig.SsmagentConfig) *Mock

func NewMockDefaultWithContext

func NewMockDefaultWithContext(context []string) *Mock

NewMockDefaultWithContext returns an instance of Mock with specified context.

func NewMockDefaultWithOwnLogMock

func NewMockDefaultWithOwnLogMock(log log.BasicT) *Mock

NewMockDefaultWithOwnLogMock returns an instance of Mock with own log.

func (*Mock) AppConfig

func (m *Mock) AppConfig() appconfig.SsmagentConfig

AppConfig mocks the Config function.

func (*Mock) AppConstants

func (m *Mock) AppConstants() *appconfig.AppConstants

AppConstants mocks the AppConstatns function.

func (*Mock) CurrentContext

func (m *Mock) CurrentContext() []string

CurrentContext mocks the CurrentContext function.

func (*Mock) Identity

func (m *Mock) Identity() identity.IAgentIdentity

Identity mocks the Identity function.

func (*Mock) Log

func (m *Mock) Log() log.T

Log mocks the Log function.

func (*Mock) With

func (m *Mock) With(ctx string) context.T

With mocks the With function.

Jump to

Keyboard shortcuts

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