Documentation
¶
Overview ¶
Package logs provides a client for retrieving and displaying logs from the SWO API.
Index ¶
Constants ¶
View Source
const ( ConfigContextKey = "config" GroupContextKey = "group" SystemContextKey = "system" MaxTimeContextKey = "max-time" MinTimeContextKey = "min-time" JSONContextKey = "json" FollowContextKey = "follow" )
Context keys for command line flags
Variables ¶
View Source
var ( // ErrInvalidAPIResponse indicates a non-2xx status code was received from the API ErrInvalidAPIResponse = errors.New("received non-2xx status code") // ErrInvalidDateTime indicates a timestamp could not be parsed ErrInvalidDateTime = errors.New("could not parse timestamp") // ErrNoContent indicates an empty response body was received from the API ErrNoContent = errors.New("no content") )
Functions ¶
func NewGetCommand ¶ added in v1.3.0
NewGetCommand creates a new 'logs get' command
func NewLogsCommand ¶
NewLogsCommand creates a new 'logs' command
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a logs client
Click to show internal directories.
Click to hide internal directories.