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