controllers

package
v0.0.0-...-88a4606 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2015 License: CC0-1.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const BUILD_LOG_FILE = "app/BUILD.log"
View Source
const DOCKERFILE_FILE = "app/Dockerfile"
View Source
const DOCKERHUB_URL = "https://registry.hub.docker.com/u"
View Source
const PIRATE_INI_FILE = "app/PIRATE.ini"
View Source
const README_MD_FILE = "app/README.md"

* internal hacked solution to get images' detail *

View Source
const REGISTRY_PATH = "/registry/images"

Variables

This section is empty.

Functions

func RequestDistribution

func RequestDistribution(address, method string) string

Give address and method to request docker registry API

func RequestRegistry deprecated

func RequestRegistry(address, method string) string

Deprecated: Give address and method to request docker registry API

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 deprecated

func (this *DockerregistryapiController) GetImage()

Deprecated: Wrap docker remote API to get data of image

func (*DockerregistryapiController) GetImageInfo

func (this *DockerregistryapiController) GetImageInfo()

func (*DockerregistryapiController) GetImageTags

func (this *DockerregistryapiController) GetImageTags()

Get tags of the image

func (*DockerregistryapiController) GetImages

func (this *DockerregistryapiController) GetImages()

Get images

func (*DockerregistryapiController) GetImagesV1 deprecated

func (this *DockerregistryapiController) GetImagesV1()

Deprecated: Wrap docker remote API to get images

func (*DockerregistryapiController) GetInfo

func (this *DockerregistryapiController) GetInfo()

Wrap docker remote API to get docker info

func (*DockerregistryapiController) GetLibraryImageTags

func (this *DockerregistryapiController) GetLibraryImageTags()

Get tags of the library image

func (*DockerregistryapiController) GetUserImage

func (this *DockerregistryapiController) GetUserImage()

Wrap docker remote API to get data of user image

func (*DockerregistryapiController) GetVersion

func (this *DockerregistryapiController) GetVersion()

Wrap docker registry 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL