Documentation ¶
Index ¶
- func CtxDataWrap(ctx *context.Context, code int, result []byte, header map[string]string)
- func CtxErrorWrap(ctx *context.Context, code int, err error, msg string)
- func CtxSuccessWrap(ctx *context.Context, code int, result interface{}, header map[string]string)
- type DockerV2Blob
- type DockerV2Manifest
- type DockerV2Ping
- type DockerV2Repo
- type DockerV2Tag
- type Oct
- type Repo
- type RepoMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CtxDataWrap ¶
CtxDataWrap wraps the http data steam
func CtxErrorWrap ¶
CtxErrorWrap wraps the error http message
Types ¶
type DockerV2Blob ¶
type DockerV2Blob struct {
beego.Controller
}
DockerV2Blob defines the blob operations
func (*DockerV2Blob) DeleteBlob ¶
func (d *DockerV2Blob) DeleteBlob()
DeleteBlob deletes the blob of a certain digest
func (*DockerV2Blob) GetBlob ¶
func (d *DockerV2Blob) GetBlob()
GetBlob gets the blob of a certain digest
func (*DockerV2Blob) PatchBlob ¶
func (d *DockerV2Blob) PatchBlob()
PatchBlob starts to upload the blob data
func (*DockerV2Blob) PostBlob ¶
func (d *DockerV2Blob) PostBlob()
PostBlob posts the blob and gets a uuid
func (*DockerV2Blob) PutBlob ¶
func (d *DockerV2Blob) PutBlob()
PutBlob marks the blob uploading status to done
type DockerV2Manifest ¶
type DockerV2Manifest struct {
beego.Controller
}
DockerV2Manifest defines the manifest operations
func (*DockerV2Manifest) DeleteManifest ¶
func (d *DockerV2Manifest) DeleteManifest()
DeleteManifest deletes the manifest of the 'repo:tag'
func (*DockerV2Manifest) GetManifest ¶
func (d *DockerV2Manifest) GetManifest()
GetManifest returns the manifest by 'repo' and 'tag'
func (*DockerV2Manifest) PutManifest ¶
func (d *DockerV2Manifest) PutManifest()
PutManifest puts manifest of the 'repo:tag'
type DockerV2Ping ¶
type DockerV2Ping struct {
beego.Controller
}
DockerV2Ping defines the /v2 status
type DockerV2Repo ¶
type DockerV2Repo struct {
beego.Controller
}
DockerV2Repo defines the repo operations
func (*DockerV2Repo) GetRepoList ¶
func (d *DockerV2Repo) GetRepoList()
GetRepoList returns the repo list
type DockerV2Tag ¶
type DockerV2Tag struct {
beego.Controller
}
DockerV2Tag defines the tags operation
func (*DockerV2Tag) GetTagsList ¶
func (d *DockerV2Tag) GetTagsList()
GetTagsList returns the tags list
type Repo ¶
type Repo struct {
beego.Controller
}
Repo defines the repo operations this is used for application packages
func (*Repo) GetPackageOrDir ¶
func (r *Repo) GetPackageOrDir()
GetPackageOrDir get the package list or a package
type RepoMeta ¶
type RepoMeta struct {
beego.Controller
}
RepoMeta defines the repo metadata operations this is used for application packages
func (*RepoMeta) GetPackageMeta ¶
func (r *RepoMeta) GetPackageMeta()
GetPackageMeta get the package metadata