Documentation
¶
Index ¶
- type Log
- func (l *Log) CreateServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) *cloudlog.LogConfig
- func (l *Log) CreateTaskLogConfig(ctx context.Context, cluster string, service string, serviceUUID string, ...) *cloudlog.LogConfig
- func (l *Log) DeleteServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) error
- func (l *Log) InitializeServiceLogConfig(ctx context.Context, cluster string, service string, serviceUUID string) error
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.
Click to show internal directories.
Click to hide internal directories.