Documentation ¶
Index ¶
- type AccountsServiceMock
- type EC2Mock
- type FakeMetricsAPI
- type FakeMetricsClient
- type FakeOAMClient
- func (o *FakeOAMClient) ListAttachedLinksWithContext(ctx context.Context, input *oam.ListAttachedLinksInput, opts ...request.Option) (*oam.ListAttachedLinksOutput, error)
- func (o *FakeOAMClient) ListSinksWithContext(ctx context.Context, input *oam.ListSinksInput, opts ...request.Option) (*oam.ListSinksOutput, error)
- type ListMetricsServiceMock
- func (a *ListMetricsServiceMock) GetDimensionKeysByDimensionFilter(ctx context.Context, r resources.DimensionKeysRequest) ([]resources.ResourceResponse[string], error)
- func (a *ListMetricsServiceMock) GetDimensionValuesByDimensionFilter(ctx context.Context, r resources.DimensionValuesRequest) ([]resources.ResourceResponse[string], error)
- func (a *ListMetricsServiceMock) GetMetricsByNamespace(ctx context.Context, r resources.MetricsRequest) ([]resources.ResourceResponse[resources.Metric], error)
- type LogsAPI
- func (l *LogsAPI) DescribeLogGroupsWithContext(ctx context.Context, input *cloudwatchlogs.DescribeLogGroupsInput, ...) (*cloudwatchlogs.DescribeLogGroupsOutput, error)
- func (l *LogsAPI) GetLogGroupFieldsWithContext(ctx context.Context, input *cloudwatchlogs.GetLogGroupFieldsInput, ...) (*cloudwatchlogs.GetLogGroupFieldsOutput, error)
- type LogsService
- func (l *LogsService) GetLogGroupFieldsWithContext(ctx context.Context, request resources.LogGroupFieldsRequest, ...) ([]resources.ResourceResponse[resources.LogGroupField], error)
- func (l *LogsService) GetLogGroupsWithContext(ctx context.Context, request resources.LogGroupsRequest) ([]resources.ResourceResponse[resources.LogGroup], error)
- type MetricsAPI
- type MockLogEvents
- type RegionsService
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(ctx context.Context) ([]resources.ResourceResponse[resources.Account], error)
type EC2Mock ¶
func (*EC2Mock) DescribeInstancesPagesWithContext ¶
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 ¶
func (*FakeMetricsClient) ListMetricsWithPageLimit ¶
func (m *FakeMetricsClient) ListMetricsWithPageLimit(ctx context.Context, params *cloudwatch.ListMetricsInput) ([]resources.MetricResponse, error)
type FakeOAMClient ¶
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 ¶
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 ¶
func (a *ListMetricsServiceMock) GetMetricsByNamespace(ctx context.Context, r resources.MetricsRequest) ([]resources.ResourceResponse[resources.Metric], error)
type LogsAPI ¶
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 ¶
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 ¶
func (*RegionsService) GetRegions ¶
func (r *RegionsService) GetRegions(ctx context.Context) (in []resources.ResourceResponse[resources.Region], e error)
Click to show internal directories.
Click to hide internal directories.