cwlog

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloudWatchLogEvents

func GetCloudWatchLogEvents(client CWLGetLogEventsAPI, group string, stream string, token string) (cloudwatchlogs.GetLogEventsOutput, error)

get CloudWatchLog events and return GetLogEventsOutput

func GetCloudWatchLogSetting

func GetCloudWatchLogSetting(client cb.CodeBuildAPI, id string) (string, string, error)

get CloudWatch Log settings from a build and return logGroupName, logStreamName and error

Types

type CWLGetLogEventsAPI

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

interface for AWS CloudWatch Logs API

func NewCloudWatchLogsAPI

func NewCloudWatchLogsAPI() (CWLGetLogEventsAPI, error)

return CloudWatchLogs api client

Jump to

Keyboard shortcuts

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