controllers

package
v0.0.0-...-02e5558 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxDataWrap

func CtxDataWrap(ctx *context.Context, code int, result []byte, header map[string]string)

CtxDataWrap wraps the http data steam

func CtxErrorWrap

func CtxErrorWrap(ctx *context.Context, code int, err error, msg string)

CtxErrorWrap wraps the error http message

func CtxSuccessWrap

func CtxSuccessWrap(ctx *context.Context, code int, result interface{}, header map[string]string)

CtxSuccessWrap wraps the success 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) HeadBlob

func (d *DockerV2Blob) HeadBlob()

HeadBlob queries the blob info

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

func (*DockerV2Ping) Ping

func (d *DockerV2Ping) Ping()

Ping returns 'ok'

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) GetBlob

func (o *OCIV1Blob) GetBlob()

GetBlob gets the blob of a certain digest

func (*OCIV1Blob) HeadBlob

func (o *OCIV1Blob) HeadBlob()

HeadBlob queries the blob info

func (*OCIV1Blob) PatchBlob

func (o *OCIV1Blob) PatchBlob()

PatchBlob starts to upload a blob It is just a mimic of docker patch blob

func (*OCIV1Blob) PostBlob

func (o *OCIV1Blob) PostBlob()

PostBlob starts to post a blob and get an uuid in return It is just a mimic of docker post blob

func (*OCIV1Blob) PutBlob

func (o *OCIV1Blob) PutBlob()

PutBlob marks the blob uploading status to done It is just a mimic of docker putblob

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'

type OCIV1Tag

type OCIV1Tag struct {
	beego.Controller
}

OCIV1Tag defines the tag operation

func (*OCIV1Tag) GetTagsList

func (o *OCIV1Tag) GetTagsList()

GetTagsList gets the tags list

Jump to

Keyboard shortcuts

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