awscloudwatch

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 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) CreateTaskLogConfig added in v0.9.3

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

CreateTaskLogConfig creates the LogConfig for the task to send logs to AWS CloudWatch. 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