controllers

package
v0.0.0-...-5342816 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 16 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 Oct

type Oct struct {
	beego.Controller
}

Oct defines the oct operations

func (*Oct) AddOutput

func (o *Oct) AddOutput()

AddOutput adds the certification outputs

func (*Oct) GetImage

func (o *Oct) GetImage()

GetImage gets the image for better user experience

func (*Oct) GetStatus

func (o *Oct) GetStatus()

GetStatus gets the detailed status

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

func (*Repo) PutPackage

func (r *Repo) PutPackage()

PutPackage add a package to the repo

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

Jump to

Keyboard shortcuts

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