Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Executables = []*Executable{ &Executable{ name: we, arg: []string{"who"}, }, &Executable{ name: we, arg: []string{"version"}, }, &Executable{ name: we, arg: []string{"remote", "-v"}, }, &Executable{ name: we, arg: []string{"inspect", "context"}, }, &Executable{ appendTo: "docker_images", name: "docker", arg: []string{"images"}, }, &Executable{ appendTo: "docker_ps", name: "docker", arg: []string{"ps"}, }, &Executable{ appendTo: "docker_info", name: "docker", arg: []string{"info"}, }, &Executable{ appendTo: "docker_network", name: "docker", arg: []string{"network", "ls"}, }, &Executable{ appendTo: "docker_network", name: "docker", arg: []string{"network", "inspect", "bridge"}, }, }
Executables is a list of executables
Functions ¶
Types ¶
type Diagnostics ¶
type Diagnostics struct {
Timeout time.Duration
Executables []*Executable
Serial bool
// contains filtered or unexported fields
}
Diagnostics for the CLI and environment
func (*Diagnostics) Start ¶
func (d *Diagnostics) Start() (context.Context, context.CancelFunc)
Start diagnostics
type Entry ¶
type Entry struct {
ID string `json:"id"`
Username string `json:"username"`
Report Report `json:"report"`
}
Entry for the diagnostics endpoint
type Executable ¶
type Executable struct {
// contains filtered or unexported fields
}
Executable is a command to be executed on the diagnostics
func (*Executable) Error ¶
func (e *Executable) Error() error
func (*Executable) Program ¶
func (e *Executable) Program() string
Program is the name of the program + arguments
Click to show internal directories.
Click to hide internal directories.