Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandExecError ¶
type CommandExecError struct {
// contains filtered or unexported fields
}
func (CommandExecError) Error ¶
func (e CommandExecError) Error() string
func (CommandExecError) Unwrap ¶
func (e CommandExecError) Unwrap() error
type Commander ¶
type Commander struct { Command string `json:"command"` Format string `json:"format"` Redactions []*redact.Redact `json:"redactions"` }
Commander runs shell commands.
func NewCommander ¶
NewCommander provides a runner for bin commands
type Copier ¶
type Copier struct { SourceDir string `json:"source_directory"` Filter string `json:"filter"` DestDir string `json:"destination_directory"` Since time.Time `json:"since"` Until time.Time `json:"until"` Redactions []*redact.Redact `json:"redactions"` }
Copier copies files to temp dir based on a filter.
type CopyFilesError ¶
type CopyFilesError struct {
// contains filtered or unexported fields
}
func (CopyFilesError) Error ¶
func (e CopyFilesError) Error() string
func (CopyFilesError) Unwrap ¶
func (e CopyFilesError) Unwrap() error
type FindFilesError ¶
type FindFilesError struct {
// contains filtered or unexported fields
}
func (FindFilesError) Error ¶
func (e FindFilesError) Error() string
func (FindFilesError) Unwrap ¶
func (e FindFilesError) Unwrap() error
type FormatUnknownError ¶
type FormatUnknownError struct {
// contains filtered or unexported fields
}
func (FormatUnknownError) Error ¶
func (e FormatUnknownError) Error() string
type HTTPer ¶
type HTTPer struct { Path string `json:"path"` Client *client.APIClient `json:"client"` Redactions []*redact.Redact `json:"redactions"` }
HTTPer hits APIs.
type MakeDirError ¶
type MakeDirError struct {
// contains filtered or unexported fields
}
func (MakeDirError) Error ¶
func (e MakeDirError) Error() string
func (MakeDirError) Unwrap ¶
func (e MakeDirError) Unwrap() error
type Runner ¶
Runner runs things to get information.
func Exclude ¶
Exclude takes a slice of matcher strings and a slice of ops. If any of the runner identifiers match the exclude according to filepath.Match() then it will not be present in the returned runner slice. NOTE(mkcp): This is precisely identical to Select() except we flip the match check. Maybe we can perform both rounds
of filtering in one pass one rather than iterating over all the ops several times. Not likely to be a huge speed increase though... we're not even remotely bottlenecked on runner filtering.
type ShellExecError ¶
type ShellExecError struct {
// contains filtered or unexported fields
}
func (ShellExecError) Error ¶
func (e ShellExecError) Error() string
func (ShellExecError) Unwrap ¶
func (e ShellExecError) Unwrap() error
type Sheller ¶
type Sheller struct { Command string `json:"command"` Shell string `json:"shell"` Redactions []*redact.Redact `json:"redactions"` }
Sheller runs shell commands in a real unix shell.
func NewSheller ¶
NewSheller provides a runner for arbitrary shell code.
type UnmarshalError ¶
type UnmarshalError struct {
// contains filtered or unexported fields
}
func (UnmarshalError) Error ¶
func (e UnmarshalError) Error() string
func (UnmarshalError) Unwrap ¶
func (e UnmarshalError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.