mocks

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsServiceMock

type AccountsServiceMock struct {
	mock.Mock
}

func (*AccountsServiceMock) GetAccountsForCurrentUserOrRole

func (a *AccountsServiceMock) GetAccountsForCurrentUserOrRole(ctx context.Context) ([]resources.ResourceResponse[resources.Account], error)

type EC2Mock

type EC2Mock struct {
	mock.Mock
}

func (*EC2Mock) DescribeInstancesPagesWithContext

func (e *EC2Mock) DescribeInstancesPagesWithContext(ctx aws.Context, in *ec2.DescribeInstancesInput, fn func(*ec2.DescribeInstancesOutput, bool) bool, opts ...request.Option) error

func (*EC2Mock) DescribeRegionsWithContext

func (e *EC2Mock) DescribeRegionsWithContext(ctx aws.Context, in *ec2.DescribeRegionsInput, opts ...request.Option) (*ec2.DescribeRegionsOutput, error)

type FakeMetricsAPI

type FakeMetricsAPI struct {
	Metrics        []*cloudwatch.Metric
	OwningAccounts []*string
	MetricsPerPage int
}

func (*FakeMetricsAPI) ListMetricsPagesWithContext

func (c *FakeMetricsAPI) ListMetricsPagesWithContext(ctx aws.Context, input *cloudwatch.ListMetricsInput, fn func(*cloudwatch.ListMetricsOutput, bool) bool, opts ...request.Option) error

type FakeMetricsClient

type FakeMetricsClient struct {
	mock.Mock
}

func (*FakeMetricsClient) ListMetricsWithPageLimit

func (m *FakeMetricsClient) ListMetricsWithPageLimit(ctx context.Context, params *cloudwatch.ListMetricsInput) ([]resources.MetricResponse, error)

type FakeOAMClient

type FakeOAMClient struct {
	mock.Mock
}

func (*FakeOAMClient) ListAttachedLinksWithContext

func (o *FakeOAMClient) ListAttachedLinksWithContext(ctx context.Context, input *oam.ListAttachedLinksInput, opts ...request.Option) (*oam.ListAttachedLinksOutput, error)

func (*FakeOAMClient) ListSinksWithContext

func (o *FakeOAMClient) ListSinksWithContext(ctx context.Context, input *oam.ListSinksInput, opts ...request.Option) (*oam.ListSinksOutput, error)

type ListMetricsServiceMock

type ListMetricsServiceMock struct {
	mock.Mock
}

func (*ListMetricsServiceMock) GetDimensionKeysByDimensionFilter

func (a *ListMetricsServiceMock) GetDimensionKeysByDimensionFilter(ctx context.Context, r resources.DimensionKeysRequest) ([]resources.ResourceResponse[string], error)

func (*ListMetricsServiceMock) GetDimensionValuesByDimensionFilter

func (a *ListMetricsServiceMock) GetDimensionValuesByDimensionFilter(ctx context.Context, r resources.DimensionValuesRequest) ([]resources.ResourceResponse[string], error)

func (*ListMetricsServiceMock) GetMetricsByNamespace

type LogsAPI

type LogsAPI struct {
	mock.Mock
}

func (*LogsAPI) DescribeLogGroupsWithContext

func (l *LogsAPI) DescribeLogGroupsWithContext(ctx context.Context, input *cloudwatchlogs.DescribeLogGroupsInput, option ...request.Option) (*cloudwatchlogs.DescribeLogGroupsOutput, error)

func (*LogsAPI) GetLogGroupFieldsWithContext

func (l *LogsAPI) GetLogGroupFieldsWithContext(ctx context.Context, input *cloudwatchlogs.GetLogGroupFieldsInput, option ...request.Option) (*cloudwatchlogs.GetLogGroupFieldsOutput, error)

type LogsService

type LogsService struct {
	mock.Mock
}

func (*LogsService) GetLogGroupFieldsWithContext

func (l *LogsService) GetLogGroupFieldsWithContext(ctx context.Context, request resources.LogGroupFieldsRequest, option ...request.Option) ([]resources.ResourceResponse[resources.LogGroupField], error)

func (*LogsService) GetLogGroupsWithContext

func (l *LogsService) GetLogGroupsWithContext(ctx context.Context, request resources.LogGroupsRequest) ([]resources.ResourceResponse[resources.LogGroup], error)

type MetricsAPI

type MetricsAPI struct {
	cloudwatchiface.CloudWatchAPI
	mock.Mock

	Metrics []*cloudwatch.Metric
}

func (*MetricsAPI) GetMetricDataWithContext

func (m *MetricsAPI) GetMetricDataWithContext(ctx aws.Context, input *cloudwatch.GetMetricDataInput, opts ...request.Option) (*cloudwatch.GetMetricDataOutput, error)

func (*MetricsAPI) ListMetricsPagesWithContext

func (m *MetricsAPI) ListMetricsPagesWithContext(ctx aws.Context, input *cloudwatch.ListMetricsInput, fn func(*cloudwatch.ListMetricsOutput, bool) bool, opts ...request.Option) error

type MockLogEvents

type MockLogEvents struct {
	cloudwatchlogsiface.CloudWatchLogsAPI

	mock.Mock
}

func (*MockLogEvents) GetLogEventsWithContext

func (m *MockLogEvents) GetLogEventsWithContext(ctx aws.Context, input *cloudwatchlogs.GetLogEventsInput, option ...request.Option) (*cloudwatchlogs.GetLogEventsOutput, error)

type RegionsService

type RegionsService struct {
	mock.Mock
}

func (*RegionsService) GetRegions

Jump to

Keyboard shortcuts

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