Documentation ¶
Index ¶
- type AccountsServiceMock
- type FakeMetricsAPI
- type FakeMetricsClient
- type FakeOAMClient
- type ListMetricsServiceMock
- func (a *ListMetricsServiceMock) GetDimensionKeysByDimensionFilter(r resources.DimensionKeysRequest) ([]resources.ResourceResponse[string], error)
- func (a *ListMetricsServiceMock) GetDimensionValuesByDimensionFilter(r resources.DimensionValuesRequest) ([]resources.ResourceResponse[string], error)
- func (a *ListMetricsServiceMock) GetMetricsByNamespace(r resources.MetricsRequest) ([]resources.ResourceResponse[resources.Metric], error)
- type LogsAPI
- type LogsService
- type MetricsAPI
- type MockFeatures
- type MockLogEvents
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsServiceMock ¶
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 ¶
func (*FakeMetricsClient) ListMetricsWithPageLimit ¶
func (m *FakeMetricsClient) ListMetricsWithPageLimit(params *cloudwatch.ListMetricsInput) ([]resources.MetricResponse, error)
type FakeOAMClient ¶
func (*FakeOAMClient) ListAttachedLinks ¶
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 ¶
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 ¶
func (a *ListMetricsServiceMock) GetMetricsByNamespace(r resources.MetricsRequest) ([]resources.ResourceResponse[resources.Metric], error)
type LogsAPI ¶
func (*LogsAPI) DescribeLogGroups ¶
func (l *LogsAPI) DescribeLogGroups(input *cloudwatchlogs.DescribeLogGroupsInput) (*cloudwatchlogs.DescribeLogGroupsOutput, error)
func (*LogsAPI) GetLogGroupFields ¶
func (l *LogsAPI) GetLogGroupFields(input *cloudwatchlogs.GetLogGroupFieldsInput) (*cloudwatchlogs.GetLogGroupFieldsOutput, error)
type LogsService ¶
func (*LogsService) GetLogGroupFields ¶
func (l *LogsService) GetLogGroupFields(request resources.LogGroupFieldsRequest) ([]resources.ResourceResponse[resources.LogGroupField], error)
func (*LogsService) GetLogGroups ¶
func (l *LogsService) GetLogGroups(request resources.LogGroupsRequest) ([]resources.ResourceResponse[resources.LogGroup], error)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.