Documentation ¶
Index ¶
- Constants
- func ComposeDeploy(req *DockerComposeDeploy, ws *websocket.Conn) error
- func ComposeDown(req *DockerComposeDown, ws *websocket.Conn) error
- func ComposeDownNoStreaming(req *DockerComposeDownNoStreaming) error
- func ComposeLogs(req *DockerComposeLogs, ws *websocket.Conn) error
- func ComposePull(req *DockerComposePull, ws *websocket.Conn) error
- func ComposeUp(req *DockerComposeUp, ws *websocket.Conn) error
- func ContainerLogs(req *DockerContainerLogs, ws *websocket.Conn) error
- func ContainerRefreshStaleStatus() error
- func ContainerRemove(req *DockerContainerRemove) error
- func ContainerRestart(req *DockerContainerRestart) error
- func ContainerScheduleRefreshStaleStatus()
- func ContainerStart(req *DockerContainerStart) error
- func ContainerStop(req *DockerContainerStop) error
- func ContainerTerminal(req *DockerContainerTerminal, wsBrowser *websocket.Conn) error
- func ImageRemove(req *DockerImageRemove) error
- func NetworkRemove(req *DockerNetworkRemove) error
- func VolumeRemove(req *DockerVolumeRemove) error
- type ComposeContainer
- type ComposeContainerInternal
- type ComposeItem
- type ComposeItemInternal
- type Container
- type DockerComposeContainerList
- type DockerComposeContainerListResponse
- type DockerComposeDeploy
- type DockerComposeDown
- type DockerComposeDownNoStreaming
- type DockerComposeGet
- type DockerComposeList
- type DockerComposeListResponse
- type DockerComposeLogs
- type DockerComposeProjectCreate
- type DockerComposeProjectDefinition
- type DockerComposeProjectDefinitionResponse
- type DockerComposeProjectDelete
- type DockerComposeProjectUnique
- type DockerComposeProjectUpdate
- type DockerComposePull
- type DockerComposeUp
- type DockerContainerList
- type DockerContainerListResponse
- type DockerContainerLogs
- type DockerContainerRemove
- type DockerContainerRestart
- type DockerContainerStart
- type DockerContainerStop
- type DockerContainerTerminal
- type DockerImageList
- type DockerImageListResponse
- type DockerImagePull
- type DockerImageRemove
- type DockerImagesPrune
- type DockerImagesPruneDeletedItem
- type DockerImagesPruneResponse
- type DockerNetworkList
- type DockerNetworkListResponse
- type DockerNetworkRemove
- type DockerNetworksPrune
- type DockerNetworksPruneResponse
- type DockerVolumeList
- type DockerVolumeListResponse
- type DockerVolumeRemove
- type DockerVolumesPrune
- type DockerVolumesPruneResponse
- type Image
- type Network
- type Port
- type Volume
Constants ¶
View Source
const ( StaleStatusProcessing = "processing" StaleStatusYes = "yes" StaleStatusNo = "no" StaleStatusError = "error" )
Variables ¶
This section is empty.
Functions ¶
func ComposeDeploy ¶
func ComposeDeploy(req *DockerComposeDeploy, ws *websocket.Conn) error
func ComposeDown ¶
func ComposeDown(req *DockerComposeDown, ws *websocket.Conn) error
func ComposeDownNoStreaming ¶
func ComposeDownNoStreaming(req *DockerComposeDownNoStreaming) error
func ComposeLogs ¶
func ComposeLogs(req *DockerComposeLogs, ws *websocket.Conn) error
func ComposePull ¶
func ComposePull(req *DockerComposePull, ws *websocket.Conn) error
func ContainerLogs ¶
func ContainerLogs(req *DockerContainerLogs, ws *websocket.Conn) error
func ContainerRefreshStaleStatus ¶
func ContainerRefreshStaleStatus() error
func ContainerRemove ¶
func ContainerRemove(req *DockerContainerRemove) error
func ContainerRestart ¶
func ContainerRestart(req *DockerContainerRestart) error
func ContainerScheduleRefreshStaleStatus ¶
func ContainerScheduleRefreshStaleStatus()
func ContainerStart ¶
func ContainerStart(req *DockerContainerStart) error
func ContainerStop ¶
func ContainerStop(req *DockerContainerStop) error
func ContainerTerminal ¶
func ContainerTerminal(req *DockerContainerTerminal, wsBrowser *websocket.Conn) error
func ImageRemove ¶
func ImageRemove(req *DockerImageRemove) error
func NetworkRemove ¶
func NetworkRemove(req *DockerNetworkRemove) error
func VolumeRemove ¶
func VolumeRemove(req *DockerVolumeRemove) error
Types ¶
type ComposeContainer ¶
type ComposeItem ¶
type ComposeItem struct { Name string `json:"name"` Status string `json:"status"` ConfigFiles string `json:"configFiles"` Stale string `json:"stale"` }
func ComposeGet ¶
func ComposeGet(req *DockerComposeGet) (*ComposeItem, error)
Note: Returns nil if project not found. Does not return error.
type ComposeItemInternal ¶
type DockerComposeContainerList ¶
type DockerComposeContainerList struct {
ProjectName string `json:"projectName"`
}
type DockerComposeContainerListResponse ¶
type DockerComposeContainerListResponse struct {
Items []ComposeContainer `json:"items"`
}
func ComposeContainerList ¶
func ComposeContainerList(req *DockerComposeContainerList) (*DockerComposeContainerListResponse, error)
type DockerComposeDeploy ¶
type DockerComposeDeploy struct { ProjectName string `json:"projectName"` Definition string `json:"definition"` Variables map[string]store.VariableValue `json:"variables"` }
type DockerComposeDown ¶
type DockerComposeDown struct {
ProjectName string `json:"projectName"`
}
type DockerComposeDownNoStreaming ¶
type DockerComposeDownNoStreaming struct {
ProjectName string `json:"projectName"`
}
type DockerComposeGet ¶
type DockerComposeGet struct {
ProjectName string `json:"projectName"`
}
type DockerComposeList ¶
type DockerComposeList struct { }
type DockerComposeListResponse ¶
type DockerComposeListResponse struct {
Items []ComposeItem `json:"items"`
}
func ComposeList ¶
func ComposeList(req *DockerComposeList) (*DockerComposeListResponse, error)
type DockerComposeLogs ¶
type DockerComposeLogs struct {
ProjectName string `json:"projectName"`
}
type DockerComposeProjectDefinition ¶
type DockerComposeProjectDefinition struct {
ProjectName string `json:"projectName"`
}
type DockerComposeProjectDelete ¶
type DockerComposeProjectDelete struct {
ProjectName string `json:"projectName"`
}
type DockerComposeProjectUnique ¶
type DockerComposeProjectUnique struct {
ProjectName string `json:"projectName"`
}
type DockerComposePull ¶
type DockerComposePull struct { ProjectName string `json:"projectName"` Definition string `json:"definition"` Variables map[string]store.VariableValue `json:"variables"` }
type DockerComposeUp ¶
type DockerComposeUp struct { ProjectName string `json:"projectName"` Definition string `json:"definition"` Variables map[string]store.VariableValue `json:"variables"` }
type DockerContainerList ¶
type DockerContainerList struct {
All bool `json:"all"`
}
type DockerContainerListResponse ¶
type DockerContainerListResponse struct {
Items []Container `json:"items"`
}
func ContainerList ¶
func ContainerList(req *DockerContainerList) (*DockerContainerListResponse, error)
type DockerContainerLogs ¶
type DockerContainerLogs struct {
Id string `json:"id"`
}
type DockerContainerRemove ¶
type DockerContainerRestart ¶
type DockerContainerRestart struct {
Id string `json:"id"`
}
type DockerContainerStart ¶
type DockerContainerStart struct {
Id string `json:"id"`
}
type DockerContainerStop ¶
type DockerContainerStop struct {
Id string `json:"id"`
}
type DockerContainerTerminal ¶
type DockerContainerTerminal struct {
Id string `json:"id"`
}
type DockerImageList ¶
type DockerImageList struct {
All bool `json:"all"`
}
type DockerImageListResponse ¶
type DockerImageListResponse struct {
Items []Image `json:"items"`
}
func ImageList ¶
func ImageList(req *DockerImageList) (*DockerImageListResponse, error)
type DockerImagePull ¶
type DockerImageRemove ¶
type DockerImagesPrune ¶
type DockerImagesPrune struct {
All bool `json:"all"` // Remove all unused images, not just dangling
}
type DockerImagesPruneResponse ¶
type DockerImagesPruneResponse struct { ImagesDeleted []DockerImagesPruneDeletedItem `json:"imagesDeleted"` SpaceReclaimed uint64 `json:"spaceReclaimed"` }
func ImagesPrune ¶
func ImagesPrune(req *DockerImagesPrune) (*DockerImagesPruneResponse, error)
type DockerNetworkList ¶
type DockerNetworkList struct { }
type DockerNetworkListResponse ¶
type DockerNetworkListResponse struct {
Items []Network `json:"items"`
}
func NetworkList ¶
func NetworkList(req *DockerNetworkList) (*DockerNetworkListResponse, error)
type DockerNetworkRemove ¶
type DockerNetworkRemove struct {
Id string `json:"id"`
}
type DockerNetworksPrune ¶
type DockerNetworksPrune struct { }
type DockerNetworksPruneResponse ¶
type DockerNetworksPruneResponse struct {
NetworksDeleted []string `json:"networksDeleted"`
}
func NetworksPrune ¶
func NetworksPrune(req *DockerNetworksPrune) (*DockerNetworksPruneResponse, error)
type DockerVolumeList ¶
type DockerVolumeList struct { }
type DockerVolumeListResponse ¶
type DockerVolumeListResponse struct {
Items []Volume `json:"items"`
}
func VolumeList ¶
func VolumeList(req *DockerVolumeList) (*DockerVolumeListResponse, error)
type DockerVolumeRemove ¶
type DockerVolumeRemove struct {
Name string `json:"name"`
}
type DockerVolumesPrune ¶
type DockerVolumesPrune struct {
All bool `json:"all"` // Remove all unused volumes, not just anonymous ones
}
type DockerVolumesPruneResponse ¶
type DockerVolumesPruneResponse struct { VolumesDeleted []string `json:"volumesDeleted"` SpaceReclaimed uint64 `json:"spaceReclaimed"` }
func VolumesPrune ¶
func VolumesPrune(req *DockerVolumesPrune) (*DockerVolumesPruneResponse, error)
Click to show internal directories.
Click to hide internal directories.