Documentation
¶
Index ¶
- func RequestRegistry(address, method string) string
- func RequestUnixSocket(address, method string) string
- type DockerregistryapiController
- func (this *DockerregistryapiController) DeleteImage()
- func (this *DockerregistryapiController) GetImage()
- func (this *DockerregistryapiController) GetImages()
- func (this *DockerregistryapiController) GetInfo()
- func (this *DockerregistryapiController) GetSearchImages()
- func (this *DockerregistryapiController) GetUserImage()
- func (this *DockerregistryapiController) GetVersion()
- type MainController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestRegistry ¶
Give address and method to request docker unix socket
func RequestUnixSocket ¶
Give address and method to request docker unix socket
Types ¶
type DockerregistryapiController ¶
type DockerregistryapiController struct {
beego.Controller
}
It's a beego controller
func (*DockerregistryapiController) DeleteImage ¶
func (this *DockerregistryapiController) DeleteImage()
Wrap docker remote API to delete image
func (*DockerregistryapiController) GetImage ¶
func (this *DockerregistryapiController) GetImage()
Wrap docker remote API to get data of image
func (*DockerregistryapiController) GetImages ¶
func (this *DockerregistryapiController) GetImages()
Wrap docker remote API to get images
func (*DockerregistryapiController) GetInfo ¶
func (this *DockerregistryapiController) GetInfo()
Wrap docker remote API to get docker info
func (*DockerregistryapiController) GetSearchImages ¶
func (this *DockerregistryapiController) GetSearchImages()
Wrap docker remote API to get search images
func (*DockerregistryapiController) GetUserImage ¶
func (this *DockerregistryapiController) GetUserImage()
Wrap docker remote API to get data of user image
func (*DockerregistryapiController) GetVersion ¶
func (this *DockerregistryapiController) GetVersion()
{"ApiVersion":"1.16","Arch":"amd64","GitCommit":"5bc2ff8", "GoVersion":"go1.3.3","KernelVersion":"3.16.7-tinycore64","Os":"linux","Version":"0.9.0"}
"host": [ "Linux", "661a9d2360c3", "3.16.7-tinycore64", "#1 SMP Tue Dec 16 23:03:39 UTC 2014", "x86_64", "x86_64" ], Wrap docker remote API to get version info
type MainController ¶
type MainController struct {
beego.Controller
}
The default controller just to render the index page
func (*MainController) Get ¶
func (this *MainController) Get()
Only accept the get request and return the webiste HTML file