Documentation ¶
Index ¶
- Constants
- type Base
- func (e Base) CheckRedirect() (f func(req *http.Request, via []*http.Request) (err error))
- func (e Base) GetBody() (body io.Reader, err error)
- func (e Base) GetHeader() (header map[string]string)
- func (e Base) GetMethod() (method string)
- func (e Base) GetQuery() (query interface{})
- func (e Base) Uri() (uri string)
- type Blob
- func (e Blob) CheckRedirect() (f func(req *http.Request, via []*http.Request) (err error))
- func (e Blob) GetBody() (body io.Reader, err error)
- func (e Blob) GetHeader() (header map[string]string)
- func (e Blob) GetMethod() (method string)
- func (e Blob) GetQuery() (query interface{})
- func (e Blob) Uri() (uri string)
- type BlobUpload
- func (e BlobUpload) CheckRedirect() (f func(req *http.Request, via []*http.Request) (err error))
- func (e BlobUpload) GetBody() (body io.Reader, err error)
- func (e BlobUpload) GetHeader() (header map[string]string)
- func (e BlobUpload) GetMethod() (method string)
- func (e BlobUpload) GetQuery() (query interface{})
- func (e BlobUpload) Uri() (uri string)
- type BlobUploadQuery
- type Catalog
- func (e Catalog) CheckRedirect() (f func(req *http.Request, via []*http.Request) (err error))
- func (e Catalog) GetBody() (body io.Reader, err error)
- func (e Catalog) GetHeader() (header map[string]string)
- func (e Catalog) GetMethod() (method string)
- func (e Catalog) GetQuery() (query interface{})
- func (e Catalog) Uri() (uri string)
- type CatalogQuery
- type Entity
- type InitiateBlobUpload
- func (e InitiateBlobUpload) CheckRedirect() (f func(req *http.Request, via []*http.Request) (err error))
- func (e InitiateBlobUpload) GetBody() (body io.Reader, err error)
- func (e InitiateBlobUpload) GetHeader() (header map[string]string)
- func (e InitiateBlobUpload) GetMethod() (method string)
- func (e InitiateBlobUpload) GetQuery() (query interface{})
- func (e InitiateBlobUpload) Uri() (uri string)
- type InitiateBlobUploadQuery
- type Manifest
- func (e Manifest) CheckRedirect() (f func(req *http.Request, via []*http.Request) (err error))
- func (e Manifest) GetBody() (body io.Reader, err error)
- func (e Manifest) GetHeader() (header map[string]string)
- func (e Manifest) GetMethod() (method string)
- func (e Manifest) GetQuery() (query interface{})
- func (e Manifest) Uri() (uri string)
- type MountBlobQuery
- type Tags
- func (e Tags) CheckRedirect() (f func(req *http.Request, via []*http.Request) (err error))
- func (e Tags) GetBody() (body io.Reader, err error)
- func (e Tags) GetHeader() (header map[string]string)
- func (e Tags) GetMethod() (method string)
- func (e Tags) GetQuery() (query interface{})
- func (e Tags) Uri() (uri string)
- type TagsPaginatedQuery
Constants ¶
View Source
const (
HeaderDockerUploadUUID = "Docker-Upload-UUID"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct { Method string `json:"method"` RepositoryName string `json:"repository_name"` Digest digest.Digest `json:"digest"` Part bool `json:"part"` Start int `json:"start"` End int `json:"end"` FollowRedirects bool `json:"follow_redirects"` }
func (Blob) CheckRedirect ¶
type BlobUpload ¶
type BlobUpload struct { Method string `json:"method"` RepositoryName string `json:"repository_name"` Location string `json:"location"` Uuid string `json:"uuid"` Binary []byte `json:"binary"` Chunked bool `json:"chunked"` Start int `json:"start"` End int `json:"end"` Query BlobUploadQuery `json:"query"` }
func NewBlobUpload ¶
func NewBlobUpload(method, repositoryName, location, uuid string, binary []byte, chunked bool, start, end int, query BlobUploadQuery) BlobUpload
func (BlobUpload) CheckRedirect ¶
func (BlobUpload) GetHeader ¶
func (e BlobUpload) GetHeader() (header map[string]string)
func (BlobUpload) GetMethod ¶
func (e BlobUpload) GetMethod() (method string)
func (BlobUpload) GetQuery ¶
func (e BlobUpload) GetQuery() (query interface{})
func (BlobUpload) Uri ¶
func (e BlobUpload) Uri() (uri string)
type BlobUploadQuery ¶
type BlobUploadQuery struct {
Digest string `json:"digest"`
}
type Catalog ¶
type Catalog struct {
Query CatalogQuery `json:"query"`
}
func NewCatalog ¶
func NewCatalog(query CatalogQuery) Catalog
func (Catalog) CheckRedirect ¶
type CatalogQuery ¶
type InitiateBlobUpload ¶
type InitiateBlobUpload struct { RepositoryName string `json:"repository_name"` InitiateBlobUploadQuery InitiateBlobUploadQuery `json:"query"` MountBlobQuery MountBlobQuery `json:"mount_blob_query"` Binary []byte }
func NewInitiateBlobUpload ¶
func NewInitiateBlobUpload(repositoryName string, binary []byte, initiateBlobUploadQuery InitiateBlobUploadQuery, mountBlobQuery MountBlobQuery) InitiateBlobUpload
func (InitiateBlobUpload) CheckRedirect ¶
func (InitiateBlobUpload) GetBody ¶
func (e InitiateBlobUpload) GetBody() (body io.Reader, err error)
func (InitiateBlobUpload) GetHeader ¶
func (e InitiateBlobUpload) GetHeader() (header map[string]string)
func (InitiateBlobUpload) GetMethod ¶
func (e InitiateBlobUpload) GetMethod() (method string)
func (InitiateBlobUpload) GetQuery ¶
func (e InitiateBlobUpload) GetQuery() (query interface{})
func (InitiateBlobUpload) Uri ¶
func (e InitiateBlobUpload) Uri() (uri string)
type InitiateBlobUploadQuery ¶
type InitiateBlobUploadQuery struct {
Digest string `json:"digest"`
}
type Manifest ¶
type Manifest struct { Name string `json:"name"` Reference string `json:"reference"` Method string `json:"method"` Manifest schema2.Manifest `json:"manifest"` Tampering bool `json:"tampering"` TamperingBody io.Reader }
func NewManifest ¶
func NewManifestForTampering ¶ added in v0.0.6
func (Manifest) CheckRedirect ¶
type MountBlobQuery ¶
type Tags ¶
type Tags struct { RepositoryName string `json:"repository_name"` Method string `json:"method"` Query TagsPaginatedQuery `json:"query"` }
func (Tags) CheckRedirect ¶
type TagsPaginatedQuery ¶
Click to show internal directories.
Click to hide internal directories.