cloudwatchlogs

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient interface {
	GetRegion() ptypes.AwsRegion
	GetAccountID() ptypes.AwsAccountID
	CloudWatchLogs() *cloudwatchlogs.Client
}

type CloudWatchLogsRepository

type CloudWatchLogsRepository struct {
	// contains filtered or unexported fields
}

func NewCloudWatchLogsRepository

func NewCloudWatchLogsRepository(ctx context.Context, client AwsClient) *CloudWatchLogsRepository

func (*CloudWatchLogsRepository) GetLogGroupTags

func (r *CloudWatchLogsRepository) GetLogGroupTags(logGroup types.LogGroup) (map[string]string, error)

func (*CloudWatchLogsRepository) GetRegion

func (r *CloudWatchLogsRepository) GetRegion() ptypes.AwsRegion

func (*CloudWatchLogsRepository) ListLogGroupsAll

func (r *CloudWatchLogsRepository) ListLogGroupsAll() ([]LogGroup, error)

func (*CloudWatchLogsRepository) ListLogGroupsByInput

func (r *CloudWatchLogsRepository) ListLogGroupsByInput(query *cloudwatchlogs.DescribeLogGroupsInput) ([]LogGroup, error)

type LogGroup

type LogGroup struct {
	service.AbstractResource
	types.LogGroup
	Tags map[string]string
}

func NewLogGroup

func NewLogGroup(client AwsClient, logGroup types.LogGroup, tags map[string]string) LogGroup

func (LogGroup) GetName

func (e LogGroup) GetName() string

func (LogGroup) GetTagValue

func (e LogGroup) GetTagValue(tag string) string

func (LogGroup) GetTags

func (e LogGroup) GetTags() map[string]string

type LogGroupList

type LogGroupList struct {
	Items []LogGroup
}

Jump to

Keyboard shortcuts

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