Documentation ¶
Index ¶
- Constants
- func GetTLSConfig(path string, insecure bool) (t *tls.Config, err error)
- func LookupHost(addr string) (*models.Host, int, *url.URL, error)
- func NewRequest(method, endpoint, host string) (q *quest.Requester, err error)
- func ParseURL(addr string) (u *url.URL, err error)
- type AppsController
- type ContainerActionsController
- func (ca *ContainerActionsController) Kill(w http.ResponseWriter, r *http.Request)
- func (ca *ContainerActionsController) Logs(w http.ResponseWriter, r *http.Request)
- func (ca *ContainerActionsController) Pause(w http.ResponseWriter, r *http.Request)
- func (ca *ContainerActionsController) Restart(w http.ResponseWriter, r *http.Request)
- func (ca *ContainerActionsController) Start(w http.ResponseWriter, r *http.Request)
- func (ca *ContainerActionsController) Stop(w http.ResponseWriter, r *http.Request)
- func (ca *ContainerActionsController) Top(w http.ResponseWriter, r *http.Request)
- func (ca *ContainerActionsController) UnPause(w http.ResponseWriter, r *http.Request)
- type ContainersController
- func (cc *ContainersController) Create(w http.ResponseWriter, r *http.Request)
- func (cc *ContainersController) Destroy(w http.ResponseWriter, r *http.Request)
- func (cc *ContainersController) Index(w http.ResponseWriter, r *http.Request)
- func (cc *ContainersController) Show(w http.ResponseWriter, r *http.Request)
- type ContainersDestoryOptions
- type ContainersIndexOptions
- type HostActionsController
- type HostsController
- type ImageActionsController
- type ImagesController
- func (ic *ImagesController) Create(w http.ResponseWriter, r *http.Request)
- func (ic *ImagesController) Destroy(w http.ResponseWriter, r *http.Request)
- func (ic *ImagesController) Index(w http.ResponseWriter, r *http.Request)
- func (ic *ImagesController) Search(w http.ResponseWriter, r *http.Request)
- func (ic *ImagesController) Show(w http.ResponseWriter, r *http.Request)
- type SystemController
Constants ¶
const DEFAULTTAG = "latest"
Variables ¶
This section is empty.
Functions ¶
func GetTLSConfig ¶
Get tls config from path & insecure.
func LookupHost ¶
Lookup hosts by address. Return *models.Host, index, *url.URL, err
func NewRequest ¶
Create Request Client. We can set a host for switching the docker server.
Types ¶
type AppsController ¶
type AppsController struct{}
func NewApps ¶
func NewApps() *AppsController
func (*AppsController) Index ¶
func (a *AppsController) Index(w http.ResponseWriter, r *http.Request)
type ContainerActionsController ¶
type ContainerActionsController struct{}
Container Actions Controller
func NewContainerActions ¶
func NewContainerActions() *ContainerActionsController
func (*ContainerActionsController) Kill ¶
func (ca *ContainerActionsController) Kill(w http.ResponseWriter, r *http.Request)
Kill a container. POST /containers/:id/kill
func (*ContainerActionsController) Logs ¶
func (ca *ContainerActionsController) Logs(w http.ResponseWriter, r *http.Request)
Get container logs. GET /containers/:id/logs
func (*ContainerActionsController) Pause ¶
func (ca *ContainerActionsController) Pause(w http.ResponseWriter, r *http.Request)
Pause a container. POST /containers/:id/pause
func (*ContainerActionsController) Restart ¶
func (ca *ContainerActionsController) Restart(w http.ResponseWriter, r *http.Request)
Restart a container. POST /containers/:id/restart
func (*ContainerActionsController) Start ¶
func (ca *ContainerActionsController) Start(w http.ResponseWriter, r *http.Request)
Start a container. POST /containers/:id/start
func (*ContainerActionsController) Stop ¶
func (ca *ContainerActionsController) Stop(w http.ResponseWriter, r *http.Request)
Stop a container. POST /containers/:id/stop
func (*ContainerActionsController) Top ¶
func (ca *ContainerActionsController) Top(w http.ResponseWriter, r *http.Request)
List processes running inside a container. GET /containers/:id/top
func (*ContainerActionsController) UnPause ¶
func (ca *ContainerActionsController) UnPause(w http.ResponseWriter, r *http.Request)
Unpause a container. POST /containers/:id/unpause
type ContainersController ¶
type ContainersController struct{}
Containers Controller.
func NewContainers ¶
func NewContainers() *ContainersController
func (*ContainersController) Create ¶
func (cc *ContainersController) Create(w http.ResponseWriter, r *http.Request)
func (*ContainersController) Destroy ¶
func (cc *ContainersController) Destroy(w http.ResponseWriter, r *http.Request)
Remove a container. DELETE /containers/:id
func (*ContainersController) Index ¶
func (cc *ContainersController) Index(w http.ResponseWriter, r *http.Request)
List containers. GET /containers
func (*ContainersController) Show ¶
func (cc *ContainersController) Show(w http.ResponseWriter, r *http.Request)
Inspect a container. GET /containers/:id
type ContainersDestoryOptions ¶
Query Parameters for remove a container.
type ContainersIndexOptions ¶
type ContainersIndexOptions struct { All string `url:"all"` Limit string `url:"limit"` Size string `url:"size"` Since string `url:"since"` Before string `url:"before"` Filters string `url:"filters"` }
Query Parameters for list containers.
type HostActionsController ¶
type HostActionsController struct{}
Host Actions Controller.
func NewHostActions ¶
func NewHostActions() *HostActionsController
func (*HostActionsController) Ping ¶
func (ha *HostActionsController) Ping(w http.ResponseWriter, r *http.Request)
Ping the docker server. GET /hosts/:id/ping
func (*HostActionsController) Version ¶
func (ha *HostActionsController) Version(w http.ResponseWriter, r *http.Request)
Show the docker version information GET /hosts/:id/version
type HostsController ¶
type HostsController struct{}
Hosts Container.
func NewHosts ¶
func NewHosts() *HostsController
func (*HostsController) Create ¶
func (h *HostsController) Create(w http.ResponseWriter, r *http.Request)
Add a host. POST /host
func (*HostsController) Destroy ¶
func (h *HostsController) Destroy(w http.ResponseWriter, r *http.Request)
Remove a host. DELETE /hosts/:id
func (*HostsController) Index ¶
func (h *HostsController) Index(w http.ResponseWriter, r *http.Request)
List hosts. GET /hosts
type ImageActionsController ¶
type ImageActionsController struct{}
Image Actions Controller.
func NewImageActions ¶
func NewImageActions() *ImageActionsController
func (*ImageActionsController) History ¶
func (ia *ImageActionsController) History(w http.ResponseWriter, r *http.Request)
Get the history of an image. GET /images/:id/history
func (*ImageActionsController) Push ¶
func (ia *ImageActionsController) Push(w http.ResponseWriter, r *http.Request)
Push an image on the registry Need X-Registry-Auth header POST /images/:id/push
func (*ImageActionsController) Tag ¶
func (ia *ImageActionsController) Tag(w http.ResponseWriter, r *http.Request)
Tag an image into a repository POST /images/:id/tag
type ImagesController ¶
type ImagesController struct{}
Images Container.
func NewImages ¶
func NewImages() *ImagesController
func (*ImagesController) Create ¶
func (ic *ImagesController) Create(w http.ResponseWriter, r *http.Request)
Create an image POST /images /docker_remote_api_v1.16/#create-an-image
func (*ImagesController) Destroy ¶
func (ic *ImagesController) Destroy(w http.ResponseWriter, r *http.Request)
Remove an image. DELETE /images/:id
func (*ImagesController) Index ¶
func (ic *ImagesController) Index(w http.ResponseWriter, r *http.Request)
List Images. GET /images
func (*ImagesController) Search ¶
func (ic *ImagesController) Search(w http.ResponseWriter, r *http.Request)
Search images GET /images/search Search for an image on Docker Hub https://hub.docker.com/.
func (*ImagesController) Show ¶
func (ic *ImagesController) Show(w http.ResponseWriter, r *http.Request)
Inspect an image. GET /images/:id
type SystemController ¶
type SystemController struct{}
System Controller.
func NewSystem ¶
func NewSystem() *SystemController
func (*SystemController) Info ¶
func (s *SystemController) Info(w http.ResponseWriter, r *http.Request)
Display system-wide information. GET /info