cloudwatchlogspublisher_mock

package
Version: v0.0.0-...-f4b3689 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudWatchLogsClientMock

type CloudWatchLogsClientMock struct {
	mock.Mock
}

CloudWatchLogsClientMock mocks CloudWatchLogsClient

func NewClientMockDefault

func NewClientMockDefault(log log.T) *CloudWatchLogsClientMock

NewClientMockDefault returns an instance of CloudWatchLogsClientMock with default expectations set.

func (*CloudWatchLogsClientMock) CreateLogGroup

CreateLogGroup mocks CloudWatchLogsClient CreateLogGroup method

func (*CloudWatchLogsClientMock) CreateLogStream

CreateLogStream mocks CloudWatchLogsClient CreateLogStream method

func (*CloudWatchLogsClientMock) DescribeLogGroups

DescribeLogGroups mocks CloudWatchLogsClient DescribeLogGroups method

func (*CloudWatchLogsClientMock) DescribeLogStreams

DescribeLogStreams mocks CloudWatchLogsClient DescribeLogStreams method

func (*CloudWatchLogsClientMock) PutLogEvents

PutLogEvents mocks CloudWatchLogsClient PutLogEvents method

type CloudWatchLogsServiceMock

type CloudWatchLogsServiceMock struct {
	mock.Mock
	// contains filtered or unexported fields
}

CloudWatchLogsServiceMock mocks CloudWatchLogsService

func NewServiceMockDefault

func NewServiceMockDefault(log log.T) *CloudWatchLogsServiceMock

NewServiceMockDefault returns an instance of CloudWatchLogsServiceMock with default expectations set.

func (*CloudWatchLogsServiceMock) CreateLogGroup

func (m *CloudWatchLogsServiceMock) CreateLogGroup(logGroup string) (err error)

CreateLogGroup mocks CloudWatchLogsService CreateLogGroup method

func (*CloudWatchLogsServiceMock) CreateLogStream

func (m *CloudWatchLogsServiceMock) CreateLogStream(logGroup, logStream string) (err error)

CreateLogStream mocks CloudWatchLogsService CreateLogStream method

func (*CloudWatchLogsServiceMock) CreateNewServiceIfUnHealthy

func (m *CloudWatchLogsServiceMock) CreateNewServiceIfUnHealthy()

CreateNewServiceIfUnHealthy mocks CloudWatchLogsService CreateNewServiceIfUnHealthy method

func (*CloudWatchLogsServiceMock) DescribeLogGroups

func (m *CloudWatchLogsServiceMock) DescribeLogGroups(logGroupPrefix, nextToken string) (response *cloudwatchlogs.DescribeLogGroupsOutput, err error)

DescribeLogGroups mocks CloudWatchLogsService DescribeLogGroups method

func (*CloudWatchLogsServiceMock) DescribeLogStreams

func (m *CloudWatchLogsServiceMock) DescribeLogStreams(logGroup, logStreamPrefix, nextToken string) (response *cloudwatchlogs.DescribeLogStreamsOutput, err error)

DescribeLogStreams mocks CloudWatchLogsService DescribeLogStreams method

func (*CloudWatchLogsServiceMock) GetLogGroupDetails

func (m *CloudWatchLogsServiceMock) GetLogGroupDetails(logGroup string) (logGroupDetails *cloudwatchlogs.LogGroup, err error)

GetLogGroupDetails mocks CloudWatchLogsService getLogGroupDetails method

func (*CloudWatchLogsServiceMock) GetSequenceTokenForStream

func (m *CloudWatchLogsServiceMock) GetSequenceTokenForStream(logGroupName, logStreamName string) (sequenceToken *string)

GetSequenceTokenForStream mocks CloudWatchLogsService GetSequenceTokenForStream method

func (*CloudWatchLogsServiceMock) IsLogGroupEncryptedWithKMS

func (m *CloudWatchLogsServiceMock) IsLogGroupEncryptedWithKMS(logGroup *cloudwatchlogs.LogGroup) (bool, error)

IsLogGroupEncryptedWithKMS mocks CloudWatchLogsService IsLogGroupEncryptedWithKMS method

func (*CloudWatchLogsServiceMock) IsLogGroupPresent

func (m *CloudWatchLogsServiceMock) IsLogGroupPresent(logGroup string) (bool, *cloudwatchlogs.LogGroup)

IsLogGroupPresent mocks CloudWatchLogsService IsLogGroupPresent method

func (*CloudWatchLogsServiceMock) IsLogStreamPresent

func (m *CloudWatchLogsServiceMock) IsLogStreamPresent(logGroupName, logStreamName string) bool

IsLogStreamPresent mocks CloudWatchLogsService IsLogStreamPresent method

func (*CloudWatchLogsServiceMock) PutLogEvents

func (m *CloudWatchLogsServiceMock) PutLogEvents(messages []*cloudwatchlogs.InputLogEvent, logGroup, logStream string, sequenceToken *string) (nextSequenceToken *string, err error)

PutLogEvents mocks CloudWatchLogsService PutLogEvents method

func (*CloudWatchLogsServiceMock) SetCloudWatchMessage

func (m *CloudWatchLogsServiceMock) SetCloudWatchMessage(eventVersion string, awsRegion string, targetId string, runAsUser string, sessionId string, sessionOwner string)

SetCloudWatchMessage mocks CloudWatchLogsService SetCloudWatchMessage method

func (*CloudWatchLogsServiceMock) StreamData

func (m *CloudWatchLogsServiceMock) StreamData(logGroupName string, logStreamName string, absoluteFilePath string, isFileComplete bool, isLogStreamCreated bool, fileCompleteSignal chan bool, processControlSequences bool, structuredLogs bool) (success bool)

StreamData mocks CloudWatchLogsService StreamData method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL