Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDockerEventStream ¶
NewDockerEventStream creates a new event stream of Docker container lifecycle events.
func NewEventStream ¶
NewEventStream creates a new stream of container lifecycle events.
func NewOciEventStream ¶
NewOciEventStream creates a new event stream of OCI container lifecycle events.
Types ¶
type DockerConfigConfig ¶
type DockerConfigConfig struct {
Hostname string `json:"Hostname"`
Domainname string `json:"Domainname"`
User string `json:"User"`
// XXX: ...
Image string `json:"Image"`
}
DockerConfigConfig is a structure representing a Docker image.
type DockerConfigState ¶
type DockerConfigState struct {
Running bool `json:"Running"`
Paused bool `json:"Paused"`
Restarting bool `json:"Restarting"`
OOMKilled bool `json:"OOMKilled"`
RemovalInProgress bool `json:"RemovalInProgress"`
Dead bool `json:"Dead"`
Pid int `json:"Pid"`
StartedAt time.Time `json:"StartedAt"`
FinishedAt time.Time `json:"FinishedAt"`
Health string `json:"Health"`
ExitCode int `json:"ExitCode"`
}
DockerConfigState is a structure representing the configuration state of a Docker container.
type DockerConfigV2 ¶
type DockerConfigV2 struct {
// XXX: Fill in as needed...
ID string `json:"ID"`
Image string `json:"Image"`
State DockerConfigState `json:"State"`
Path string `json:"Path"`
Config DockerConfigConfig `json:"Config"`
// ...
Name string `json:"Name"`
}
DockerConfigV2 is a structure representing a Docker container.
type Event ¶
type Event struct {
ID string
Name string
State State
ImageID string
Image string
Pid uint32
Cgroup string
DockerConfig string
OciConfig string
ExitCode int32
}
Event represents a container lifecycle event containing fields common to all supported container runtimes.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package c8dockerclient is a homegrown HTTP Docker API client.
|
Package c8dockerclient is a homegrown HTTP Docker API client. |
|
tests/testingc8client
command
|
Click to show internal directories.
Click to hide internal directories.