Documentation ¶
Index ¶
Constants ¶
View Source
const JournaldTimeLayout = "2006-01-02 15:04:05"
JournaldTimeLayout custom go time layouts must match the reference time Jan 2 15:04:05 2006 MST
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Docker ¶
type Docker struct { // Container is the name of the docker container to get logs from Container string `json:"container"` // DestDir is the directory we will write the logs to DestDir string `json:"destDir"` // Since marks the beginning of the time range to include logs Since time.Time `json:"since"` Redactions []*redact.Redact `json:"redactions"` }
Docker allows logs to be retrieved for a docker container
type DockerNoLogsError ¶
type DockerNoLogsError struct {
// contains filtered or unexported fields
}
func (DockerNoLogsError) Error ¶
func (e DockerNoLogsError) Error() string
type DockerNotFoundError ¶
type DockerNotFoundError struct {
// contains filtered or unexported fields
}
func (DockerNotFoundError) Error ¶
func (e DockerNotFoundError) Error() string
func (DockerNotFoundError) Unwrap ¶
func (e DockerNotFoundError) Unwrap() error
type Journald ¶
type Journald struct { Service string `json:"service"` DestDir string `json:"destDir"` Since time.Time `json:"since"` Until time.Time `json:"until"` Redactions []*redact.Redact `json:"redactions"` }
func NewJournald ¶
func NewJournald(service, destDir string, since, until time.Time, redactions []*redact.Redact) *Journald
NewJournald sets the defaults for the journald runner
type JournaldNotFound ¶
type JournaldNotFound struct {
// contains filtered or unexported fields
}
func (JournaldNotFound) Error ¶
func (e JournaldNotFound) Error() string
func (JournaldNotFound) Unwrap ¶
func (e JournaldNotFound) Unwrap() error
type JournaldPermissionError ¶
type JournaldPermissionError struct {
// contains filtered or unexported fields
}
func (JournaldPermissionError) Error ¶
func (e JournaldPermissionError) Error() string
func (JournaldPermissionError) Unwrap ¶
func (e JournaldPermissionError) Unwrap() error
type JournaldServiceNotEnabled ¶
type JournaldServiceNotEnabled struct {
// contains filtered or unexported fields
}
func (JournaldServiceNotEnabled) Error ¶
func (e JournaldServiceNotEnabled) Error() string
func (JournaldServiceNotEnabled) Unwrap ¶
func (e JournaldServiceNotEnabled) Unwrap() error
Click to show internal directories.
Click to hide internal directories.