Documentation
¶
Overview ¶
Package mocklog provides a shared log writer that services use to write mock execution logs to CloudWatch Logs via the ServiceLocator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBuildLines ¶
GenerateBuildLines produces mock build log output for a given service and action.
Types ¶
type ServiceLocator ¶
ServiceLocator resolves other services by name.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes mock log events to the CloudWatch Logs service.
func NewWriter ¶
func NewWriter(locator ServiceLocator) *Writer
NewWriter creates a log writer that uses the given locator to find the CloudWatch Logs service ("logs").
func (*Writer) CreateLogGroup ¶
CreateLogGroup creates a log group in CloudWatch Logs.
func (*Writer) CreateLogStream ¶
CreateLogStream creates a log stream within a log group.
func (*Writer) PutLogEvents ¶
PutLogEvents writes log events to a CloudWatch Logs stream.
func (*Writer) WriteBuildLog ¶
WriteBuildLog is a convenience method that creates a log group + stream and writes a sequence of log lines. Used by CodeBuild, Glue, EMR, etc.