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 OCIV1Blob
- type OCIV1Manifest
- type OCIV1Tag
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 OCIV1Blob ¶
type OCIV1Blob struct {
beego.Controller
}
OCIV1Blob defines the blob operations
func (*OCIV1Blob) DeleteBlob ¶
func (o *OCIV1Blob) DeleteBlob()
DeleteBlob deletes the blob of a certain digest
func (*OCIV1Blob) PatchBlob ¶
func (o *OCIV1Blob) PatchBlob()
PatchBlob starts to upload a blob It is just a mimic of docker patch blob
type OCIV1Manifest ¶
type OCIV1Manifest struct {
beego.Controller
}
OCIV1Manifest defines the manifest operation
func (*OCIV1Manifest) DeleteManifest ¶
func (o *OCIV1Manifest) DeleteManifest()
DeleteManifest deletes the manifest of 'repo:tag'
func (*OCIV1Manifest) GetManifest ¶
func (o *OCIV1Manifest) GetManifest()
GetManifest gets the manifest of 'repo:tag'
func (*OCIV1Manifest) PutManifest ¶
func (o *OCIV1Manifest) PutManifest()
PutManifest puts the manifest of 'repo:tag'