awscloudwatch

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

Log implements the cloudlog interface for AWS CloudWatchLogs.

func NewLog

func NewLog(sess *session.Session, region string, containerPlatform string, k8snamespace string) *Log

NewLog returns a new AWS CloudWatchLogs instance.

func (*Log) CreateServiceLogConfig

func (l *Log) CreateServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) *cloudlog.LogConfig

CreateServiceLogConfig creates the LogConfig for the service to send logs to AWS CloudWatch.

func (*Log) CreateStreamLogConfig added in v0.9.4

func (l *Log) CreateStreamLogConfig(ctx context.Context, cluster string, service string, serviceUUID string, stream string) *cloudlog.LogConfig

CreateStreamLogConfig creates the LogConfig for the stateless service, such as the management service, Kafka Manager service, or the task of the stateful service, such as init task. The task log directly uses the awslogs driver. There is no need to use firecamp-log-driver.

func (*Log) DeleteServiceLogConfig

func (l *Log) DeleteServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) error

DeleteServiceLogConfig deletes the CloudWatch log group.

func (*Log) InitializeServiceLogConfig

func (l *Log) InitializeServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) error

InitializeServiceLogConfig creates the CloudWatch log group.

Jump to

Keyboard shortcuts

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