Documentation ¶
Index ¶
- Constants
- func AttachContainer(w http.ResponseWriter, r *http.Request)
- func BuildImage(w http.ResponseWriter, r *http.Request)
- func CreateExec(w http.ResponseWriter, r *http.Request)
- func GetEvents(w http.ResponseWriter, r *http.Request)
- func GetImage(r *http.Request, name string) (*image.Image, error)
- func HistoryImage(w http.ResponseWriter, r *http.Request)
- func InspectExec(w http.ResponseWriter, r *http.Request)
- func LibpodToContainerJSON(l *libpod.Container, sz bool) (*docker.ContainerJSON, error)
- func NewAPIDecoder() *schema.Decoder
- func ParseDateTime(query string) time.Time
- func PauseContainer(w http.ResponseWriter, r *http.Request)
- func Ping(w http.ResponseWriter, r *http.Request)
- func PruneContainers(w http.ResponseWriter, r *http.Request)
- func RemoveImage(w http.ResponseWriter, r *http.Request)
- func ResizeContainer(w http.ResponseWriter, r *http.Request)
- func ResizeExec(w http.ResponseWriter, r *http.Request)
- func RestartContainer(w http.ResponseWriter, r *http.Request)
- func SaveFromBody(f *os.File, r *http.Request) error
- func SearchImages(w http.ResponseWriter, r *http.Request)
- func StartContainer(w http.ResponseWriter, r *http.Request)
- func StartExec(w http.ResponseWriter, r *http.Request)
- func StopContainer(w http.ResponseWriter, r *http.Request)
- func TagImage(w http.ResponseWriter, r *http.Request)
- func TopContainer(w http.ResponseWriter, r *http.Request)
- func UnpauseContainer(w http.ResponseWriter, r *http.Request)
- func UnsupportedHandler(w http.ResponseWriter, r *http.Request)
- func VersionHandler(w http.ResponseWriter, r *http.Request)
- type AuthConfig
- type BuildCachePruneReport
- type BuildResult
- type ConfigCreateResponse
- type Container
- type ContainerConfig
- type ContainerTopOKBody
- type ContainerWaitOKBody
- type ContainersPruneReport
- type CreateContainerConfig
- type DiskUsage
- type ErrorModel
- type Event
- type HistoryResponse
- type IDResponse
- type ImageInspect
- type ImageLayer
- type ImageSummary
- type ImageTreeResponse
- type ImagesPruneReport
- type Info
- type LibpodContainersPruneReport
- type LibpodImagesImportReport
- type LibpodImagesLoadReport
- type LibpodImagesPullReport
- type NetworkPruneReport
- type PodCreateConfig
- type PushResult
- type Version
- type VolumeCreateConfig
- type VolumesPruneReport
Constants ¶
View Source
const ( DefaultApiVersion = "1.40" // See https://docs.docker.com/engine/api/v1.40/ MinimalApiVersion = "1.24" )
Variables ¶
This section is empty.
Functions ¶
func AttachContainer ¶
func AttachContainer(w http.ResponseWriter, r *http.Request)
func BuildImage ¶
func BuildImage(w http.ResponseWriter, r *http.Request)
func CreateExec ¶
func CreateExec(w http.ResponseWriter, r *http.Request)
func HistoryImage ¶
func HistoryImage(w http.ResponseWriter, r *http.Request)
func InspectExec ¶
func InspectExec(w http.ResponseWriter, r *http.Request)
func LibpodToContainerJSON ¶
func NewAPIDecoder ¶
NewAPIDecoder returns a configured schema.Decoder
func ParseDateTime ¶
ParseDateTime is a helper function to aid in parsing different Time/Date formats isZero() can be used to determine if parsing failed.
func PauseContainer ¶
func PauseContainer(w http.ResponseWriter, r *http.Request)
func Ping ¶
func Ping(w http.ResponseWriter, r *http.Request)
Ping returns headers to client about the service
This handler must always be the same for the compatibility and libpod URL trees! Clients will use the Header availability to test which backend engine is in use.
func PruneContainers ¶
func PruneContainers(w http.ResponseWriter, r *http.Request)
func RemoveImage ¶
func RemoveImage(w http.ResponseWriter, r *http.Request)
func ResizeContainer ¶
func ResizeContainer(w http.ResponseWriter, r *http.Request)
func ResizeExec ¶
func ResizeExec(w http.ResponseWriter, r *http.Request)
func RestartContainer ¶
func RestartContainer(w http.ResponseWriter, r *http.Request)
func SearchImages ¶
func SearchImages(w http.ResponseWriter, r *http.Request)
func StartContainer ¶
func StartContainer(w http.ResponseWriter, r *http.Request)
func StopContainer ¶
func StopContainer(w http.ResponseWriter, r *http.Request)
func TopContainer ¶
func TopContainer(w http.ResponseWriter, r *http.Request)
func UnpauseContainer ¶
func UnpauseContainer(w http.ResponseWriter, r *http.Request)
func UnsupportedHandler ¶
func UnsupportedHandler(w http.ResponseWriter, r *http.Request)
func VersionHandler ¶
func VersionHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type AuthConfig ¶
type AuthConfig struct {
docker.AuthConfig
}
type BuildCachePruneReport ¶
type BuildCachePruneReport struct {
docker.BuildCachePruneReport
}
type BuildResult ¶
type BuildResult struct {
docker.BuildResult
}
type ConfigCreateResponse ¶
type ConfigCreateResponse struct {
docker.ConfigCreateResponse
}
type ContainerConfig ¶
type ContainerConfig struct {
dockerContainer.Config
}
type ContainerTopOKBody ¶
type ContainerTopOKBody struct {
dockerContainer.ContainerTopOKBody
}
type ContainerWaitOKBody ¶
type ContainersPruneReport ¶
type ContainersPruneReport struct {
docker.ContainersPruneReport
}
type CreateContainerConfig ¶
type CreateContainerConfig struct { Name string dockerContainer.Config HostConfig dockerContainer.HostConfig NetworkingConfig dockerNetwork.NetworkingConfig }
type ErrorModel ¶
type ErrorModel struct {
Message string `json:"message"`
}
type HistoryResponse ¶
type IDResponse ¶
type IDResponse struct {
ID string `json:"id"`
}
type ImageInspect ¶
type ImageInspect struct {
docker.ImageInspect
}
func ImageDataToImageInspect ¶
func ImageDataToImageInspect(ctx context.Context, l *libpodImage.Image) (*ImageInspect, error)
type ImageLayer ¶
type ImageLayer struct{}
type ImageSummary ¶
type ImageSummary struct { docker.ImageSummary CreatedTime time.Time `json:"CreatedTime,omitempty"` ReadOnly bool `json:"ReadOnly,omitempty"` }
func ImageToImageSummary ¶
func ImageToImageSummary(l *libpodImage.Image) (*ImageSummary, error)
type ImageTreeResponse ¶
type ImageTreeResponse struct { ID string `json:"id"` Tags []string `json:"tags"` Size string `json:"size"` Layers []ImageLayer `json:"layers"` }
type ImagesPruneReport ¶
type ImagesPruneReport struct {
docker.ImagesPruneReport
}
type LibpodImagesImportReport ¶
type LibpodImagesImportReport struct {
ID string `json:"id"`
}
type LibpodImagesLoadReport ¶
type LibpodImagesLoadReport struct {
ID string `json:"id"`
}
type LibpodImagesPullReport ¶
type LibpodImagesPullReport struct {
ID string `json:"id"`
}
type NetworkPruneReport ¶
type NetworkPruneReport struct {
docker.NetworksPruneReport
}
type PodCreateConfig ¶
type PodCreateConfig struct { Name string `json:"name"` CGroupParent string `json:"cgroup-parent"` Hostname string `json:"hostname"` Infra bool `json:"infra"` InfraCommand string `json:"infra-command"` InfraImage string `json:"infra-image"` Labels []string `json:"labels"` Publish []string `json:"publish"` }
swagger:model PodCreateConfig
type PushResult ¶
type PushResult struct {
docker.PushResult
}
type VolumeCreateConfig ¶
type VolumeCreateConfig struct { // New volume's name. Can be left blank Name string `schema:"name"` // Volume driver to use Driver string `schema:"driver"` // User-defined key/value metadata. Label map[string]string `schema:"label"` // Mapping of driver options and values. Opts map[string]string `schema:"opts"` }
swagger:model VolumeCreate
type VolumesPruneReport ¶
type VolumesPruneReport struct {
docker.VolumesPruneReport
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.