Documentation
¶
Index ¶
- type ContainerConfig
- type ContainerJSON
- type ContainerState
- type CreateContainerRequest
- type CreateContainerResponse
- type EndpointSettings
- type Event
- type EventActor
- type EventBus
- type ExecConfig
- type ExecCreateResponse
- type ExecStartRequest
- type HostConfig
- type ImageJSON
- type InfoResponse
- type Logger
- type NetworkConnectRequest
- type NetworkCreateRequest
- type NetworkJSON
- type NetworkSettings
- type PortBind
- type PortMapping
- type Server
- type VersionResponse
- type VolumeCreateRequest
- type VolumeJSON
- type VolumeListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerConfig ¶
type ContainerJSON ¶
type ContainerJSON struct {
ID string `json:"Id"`
Names []string `json:"Names,omitempty"`
Image string `json:"Image"`
ImageID string `json:"ImageID,omitempty"`
Command string `json:"Command"`
Created int64 `json:"Created"`
State any `json:"State"` // string for list, object for inspect
Status string `json:"Status"`
Ports []PortMapping `json:"Ports"`
Labels map[string]string `json:"Labels,omitempty"`
NetworkSettings *NetworkSettings `json:"NetworkSettings,omitempty"`
Config *ContainerConfig `json:"Config,omitempty"`
HostConfig *HostConfig `json:"HostConfig,omitempty"`
}
type ContainerState ¶
type CreateContainerRequest ¶
type CreateContainerRequest struct {
Image string `json:"Image"`
Cmd []string `json:"Cmd,omitempty"`
Entrypoint []string `json:"Entrypoint,omitempty"`
Env []string `json:"Env,omitempty"`
Tty bool `json:"Tty"`
OpenStdin bool `json:"OpenStdin"`
WorkingDir string `json:"WorkingDir,omitempty"`
Labels map[string]string `json:"Labels,omitempty"`
HostConfig *HostConfig `json:"HostConfig,omitempty"`
}
type CreateContainerResponse ¶
type EndpointSettings ¶
type EventActor ¶ added in v0.6.0
type EventBus ¶ added in v0.6.0
type EventBus struct {
// contains filtered or unexported fields
}
EventBus is a simple publish/subscribe hub for Docker-compatible events.
func NewEventBus ¶ added in v0.6.0
func NewEventBus() *EventBus
func (*EventBus) Publish ¶ added in v0.6.0
Publish fans out an event to all subscribers without blocking.
type ExecConfig ¶
type ExecCreateResponse ¶
type ExecCreateResponse struct {
ID string `json:"Id"`
}
type ExecStartRequest ¶
type HostConfig ¶
type InfoResponse ¶
type Logger ¶ added in v0.6.0
type Logger struct {
// contains filtered or unexported fields
}
Logger provides rolling terminal display and file-based request logging.
type NetworkConnectRequest ¶
type NetworkConnectRequest struct {
Container string `json:"Container"`
}
type NetworkCreateRequest ¶
type NetworkJSON ¶
type NetworkSettings ¶
type NetworkSettings struct {
Networks map[string]*EndpointSettings `json:"Networks,omitempty"`
}
type PortMapping ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
type VersionResponse ¶
type VolumeCreateRequest ¶
type VolumeJSON ¶
type VolumeListResponse ¶
type VolumeListResponse struct {
Volumes []*VolumeJSON `json:"Volumes"`
}
Click to show internal directories.
Click to hide internal directories.