mocks

package
v0.0.0-test.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: AGPL-3.0 Imports: 9 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() ([]resources.ResourceResponse[resources.Account], error)

type FakeMetricsAPI

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

func (*FakeMetricsAPI) ListMetricsPages

func (c *FakeMetricsAPI) ListMetricsPages(input *cloudwatch.ListMetricsInput, fn func(*cloudwatch.ListMetricsOutput, bool) bool) error

type FakeMetricsClient

type FakeMetricsClient struct {
	mock.Mock
}

func (*FakeMetricsClient) ListMetricsWithPageLimit

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

type FakeOAMClient

type FakeOAMClient struct {
	mock.Mock
}
func (o *FakeOAMClient) ListAttachedLinks(input *oam.ListAttachedLinksInput) (*oam.ListAttachedLinksOutput, error)

func (*FakeOAMClient) ListSinks

func (o *FakeOAMClient) ListSinks(input *oam.ListSinksInput) (*oam.ListSinksOutput, error)

type ListMetricsServiceMock

type ListMetricsServiceMock struct {
	mock.Mock
}

func (*ListMetricsServiceMock) GetDimensionKeysByDimensionFilter

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

func (*ListMetricsServiceMock) GetDimensionValuesByDimensionFilter

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

func (*ListMetricsServiceMock) GetMetricsByNamespace

type LogsAPI

type LogsAPI struct {
	mock.Mock
}

type LogsService

type LogsService struct {
	mock.Mock
}

func (*LogsService) GetLogGroups

type MetricsAPI

type MetricsAPI struct {
	cloudwatchiface.CloudWatchAPI
	mock.Mock
}

func (*MetricsAPI) GetMetricDataWithContext

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

type MockFeatures

type MockFeatures struct {
	mock.Mock
}

func (*MockFeatures) IsEnabled

func (f *MockFeatures) IsEnabled(feature string) bool

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)

Jump to

Keyboard shortcuts

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