Documentation ¶
Index ¶
- func ErrCode(msg string, err error) error
- type CloudWatchLogs
- func (c *CloudWatchLogs) CreateLogGroup(ctx context.Context, group string, tags map[string]*string) error
- func (c *CloudWatchLogs) CreateLogStream(ctx context.Context, group, stream string) error
- func (c *CloudWatchLogs) DeleteLogGroup(ctx context.Context, group string) error
- func (c *CloudWatchLogs) DescribeLogGroup(ctx context.Context, group string) (*LogGroup, error)
- func (c *CloudWatchLogs) GetLogEvents(ctx context.Context, group, stream string) ([]*Event, error)
- func (c *CloudWatchLogs) GetLogGroupTags(ctx context.Context, group string) (map[string]*string, error)
- func (c *CloudWatchLogs) LogEvent(ctx context.Context, group, stream string, events []*Event) error
- func (c *CloudWatchLogs) TagLogGroup(ctx context.Context, group string, tags map[string]*string) error
- func (c *CloudWatchLogs) UpdateRetention(ctx context.Context, group string, retention int64) error
- type Event
- type LogGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloudWatchLogs ¶
type CloudWatchLogs struct {
Service cloudwatchlogsiface.CloudWatchLogsAPI
}
CloudWatchLogs is the internal cloudwatch logsobject which holds session and configuration information
func NewSession ¶
func NewSession(region, akid, secret string) CloudWatchLogs
NewSession builds a new aws cloudwatchlogs session
func (*CloudWatchLogs) CreateLogGroup ¶
func (c *CloudWatchLogs) CreateLogGroup(ctx context.Context, group string, tags map[string]*string) error
CreateLogGroup creates a cloudwatchlogs log group
func (*CloudWatchLogs) CreateLogStream ¶
func (c *CloudWatchLogs) CreateLogStream(ctx context.Context, group, stream string) error
CreateLogStream creates a cloudwatchlogs log stream
func (*CloudWatchLogs) DeleteLogGroup ¶
func (c *CloudWatchLogs) DeleteLogGroup(ctx context.Context, group string) error
DeleteLogGroup deletes a cloudwatchlogs log group
func (*CloudWatchLogs) DescribeLogGroup ¶
DescribeLogGroup describes a cloudwatchlogs log group
func (*CloudWatchLogs) GetLogEvents ¶
GetLogEvents gets all events from a log stream in a log group
func (*CloudWatchLogs) GetLogGroupTags ¶
func (c *CloudWatchLogs) GetLogGroupTags(ctx context.Context, group string) (map[string]*string, error)
GetLogGroupTags returns the list of tags on a log group
func (*CloudWatchLogs) TagLogGroup ¶
func (c *CloudWatchLogs) TagLogGroup(ctx context.Context, group string, tags map[string]*string) error
TagLogGroup sets tags for a log group
func (*CloudWatchLogs) UpdateRetention ¶
UpdateRetention changes the retention (in days) for logs in a log group
Click to show internal directories.
Click to hide internal directories.