Documentation ¶
Index ¶
- func FiltersToArgs(f map[string][]string) filters.Args
- type BytesProducer
- type BytesScrubber
- type Config
- type ContainerListOptions
- type Doc
- type DockerContainerInspectOptions
- type DockerContainerLogsOptions
- type DockerRunCommandOptions
- type HTTPRequestCommandOptions
- type JournaldLogs
- type Planner
- type Plugin
- type Result
- type RetracedEventsOptions
- type Scrub
- type Spec
- type StreamProducer
- type StreamsProducer
- type StructuredProducer
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BytesProducer ¶
func BytesProducerFromStreamProducer ¶ added in v0.2.0
func BytesProducerFromStreamProducer(ss StreamProducer) BytesProducer
type BytesScrubber ¶
type Config ¶
type Config struct { FilePath string `json:"file_path"` Args []string `json:"args"` Image string `json:"image"` EnablePull bool `json:"enable_pull"` ContainerID string `json:"container_id"` ContainerName string `json:"container_name"` Command string `json:"command"` Scrub Scrub `json:"scrub"` // TODO: should we pull scrub up one level into Spec? }
type ContainerListOptions ¶ added in v0.5.0
type ContainerListOptions struct { dockertypes.ContainerListOptions Filters map[string][]string }
func (ContainerListOptions) ToDockerContainerListOptions ¶ added in v0.5.0
func (opts ContainerListOptions) ToDockerContainerListOptions() dockertypes.ContainerListOptions
type DockerContainerInspectOptions ¶ added in v0.2.0
type DockerContainerInspectOptions struct {
ContainerListOptions ContainerListOptions `json:"container_list_options"`
}
type DockerContainerLogsOptions ¶ added in v0.2.0
type DockerContainerLogsOptions struct {
ContainerListOptions ContainerListOptions `json:"container_list_options"`
}
type DockerRunCommandOptions ¶
type DockerRunCommandOptions struct { ContainerCreateConfig dockertypes.ContainerCreateConfig EnablePull bool }
type HTTPRequestCommandOptions ¶ added in v0.2.0
type JournaldLogs ¶ added in v0.5.0
type Result ¶
type Result struct { Description string `json:"description"` // The subpath within the bundle Path string `json:"path"` Error error `json:"error,omitempty"` }
Result represents a single file within a support bundle or the failure to collect the data for a single file within a support bundle. A Result may have both a Pathname and an Error if the file written was corrupted or incomplete.
func (*Result) MarshalJSON ¶
Result.Error will be {} if it has no exported fields, so replace it with a string.
func (*Result) UnmarshalJSON ¶
convert Error from string to error
type RetracedEventsOptions ¶ added in v0.3.1
type RetracedEventsOptions struct { APIEndpoint string `json:"api_endpoint"` ProjectID string `json:"project_id,omitempty"` APIToken string `json:"api_token,omitempty"` Insecure bool `json:"insecure,omitempty"` Mask *retraced.EventNodeMask `json:"mask,omitempty"` Query *retraced.StructuredQuery `json:"query,omitempty"` }
type Spec ¶
type Spec struct { ID string Builtin string TimeoutSeconds int // paths Raw string JSON string Human string // Plan-specific config Config Config // New plan-specific config // TODO: new format for all tasks DockerRunCommand *DockerRunCommandOptions `json:"docker.run-command,omitempty"` DockerContainerLogs *DockerContainerLogsOptions `json:"docker.container-logs,omitempty"` DockerContainerInspect *DockerContainerInspectOptions `json:"docker.container-inspect,omitempty"` HTTPRequestCommand *HTTPRequestCommandOptions `json:"core.http-request,omitempty"` RetracedEventsCommand *RetracedEventsOptions `json:"retraced.events,omitempty"` JournaldLogs *JournaldLogs `json:"journald.logs,omitempty"` }
type StreamsProducer ¶
probably stdout and stderr
type StructuredProducer ¶
Click to show internal directories.
Click to hide internal directories.