awsinspect

package
v0.0.0-...-fc520ba Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TailLogStream

func TailLogStream(ctx context.Context, client CloudwatchLogsClient, logGroup LogStream, fromTime time.Time, callback func(context.Context, LogStream, string)) error

Types

type CloudwatchLogsClient

type CloudwatchLogsClient interface {
	GetLogEvents(ctx context.Context, params *cloudwatchlogs.GetLogEventsInput, optFns ...func(*cloudwatchlogs.Options)) (*cloudwatchlogs.GetLogEventsOutput, error)
}

type ECSClient

type ECSClient interface {
	DescribeServices(ctx context.Context, input *ecs.DescribeServicesInput, opts ...func(*ecs.Options)) (*ecs.DescribeServicesOutput, error)
	ListTasks(ctx context.Context, input *ecs.ListTasksInput, opts ...func(*ecs.Options)) (*ecs.ListTasksOutput, error)
	DescribeTasks(ctx context.Context, input *ecs.DescribeTasksInput, opts ...func(*ecs.Options)) (*ecs.DescribeTasksOutput, error)
	DescribeTaskDefinition(ctx context.Context, input *ecs.DescribeTaskDefinitionInput, opts ...func(*ecs.Options)) (*ecs.DescribeTaskDefinitionOutput, error)
}

type FormationClient

type FormationClient interface {
	DescribeStackResources(ctx context.Context, input *cloudformation.DescribeStackResourcesInput, opts ...func(*cloudformation.Options)) (*cloudformation.DescribeStackResourcesOutput, error)
	DescribeStacks(ctx context.Context, input *cloudformation.DescribeStacksInput, opts ...func(*cloudformation.Options)) (*cloudformation.DescribeStacksOutput, error)
}

type LogStream

type LogStream struct {
	Container string
	LogGroup  string
	LogStream string
}

func GetAllLogStreams

func GetAllLogStreams(ctx context.Context, ecsClient ECSClient, serviceSummary *ServiceSummary) ([]LogStream, error)

type ServiceSummary

type ServiceSummary struct {
	ClusterName string
	ServiceARNs []string
}

func GetStackServices

func GetStackServices(ctx context.Context, client FormationClient, stackName string) (*ServiceSummary, error)

Jump to

Keyboard shortcuts

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