cloudlog

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudLog

type CloudLog interface {
	// CreateServiceLogConfig creates the LogConfig for the service to send logs to AWS CloudWatch.
	CreateServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) *LogConfig
	// CreateLogConfigForStream creates the LogConfig for the stream to send logs to AWS CloudWatch.
	CreateLogConfigForStream(ctx context.Context, cluster string, service string, serviceUUID string, stream string) *LogConfig
	InitializeServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) error
	DeleteServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) error
}

CloudLog defines the common log interface.

type LogConfig

type LogConfig struct {
	// the log driver name, such as awslogs
	Name string
	// the log driver options, such as awslogs-region, awslogs-group, etc.
	Options map[string]string
}

LogConfig contains the configs for the log driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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