Documentation ¶
Index ¶
- Variables
- func NewAuthTransport(transport http.RoundTripper, handlers []auth.Handler) http.RoundTripper
- func NewClient(handlers []auth.Handler) *http.Client
- func NewClientStandardAuthHandlerEmbeded(credential auth.Credential) *http.Client
- func NewClientUsernameAuthHandlerEmbeded(username string) *http.Client
- func UnMarshal(mediaType string, data []byte) (distribution.Manifest, distribution.Descriptor, error)
- type Registry
- func (r *Registry) Catalog() ([]string, error)
- func (r *Registry) DeleteBlob(name, digest string) error
- func (r *Registry) DeleteManifest(name, digest string) error
- func (r *Registry) DeleteTag(name, tag string) error
- func (r *Registry) ListTag(name string) ([]string, error)
- func (r *Registry) ManifestExist(name, reference string) (digest string, exist bool, err error)
- func (r *Registry) PullManifest(name, reference string, version manifest.Versioned) (digest, mediaType string, payload []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ManifestVersion1 : schema 1 ManifestVersion1 = manifest.Versioned{ SchemaVersion: 1, MediaType: schema1.MediaTypeManifest, } // ManifestVersion2 : schema 2 ManifestVersion2 = manifest.Versioned{ SchemaVersion: 2, MediaType: schema2.MediaTypeManifest, } )
Functions ¶
func NewAuthTransport ¶
func NewAuthTransport(transport http.RoundTripper, handlers []auth.Handler) http.RoundTripper
NewAuthTransport wraps the AuthHandlers to be http.RounTripper
func NewClientStandardAuthHandlerEmbeded ¶
func NewClientStandardAuthHandlerEmbeded(credential auth.Credential) *http.Client
NewClientStandardAuthHandlerEmbeded return a http.Client which will authorize the request according to the credential provided and send it again when encounters a 401 error
func NewClientUsernameAuthHandlerEmbeded ¶
NewClientUsernameAuthHandlerEmbeded return a http.Client which will authorize the request according to the user's privileges and send it again when encounters a 401 error
func UnMarshal ¶
func UnMarshal(mediaType string, data []byte) (distribution.Manifest, distribution.Descriptor, error)
UnMarshal converts []byte to be distribution.Manifest
Types ¶
type Registry ¶
Registry holds information of a registry entiry
func (*Registry) DeleteBlob ¶
DeleteBlob ...
func (*Registry) DeleteManifest ¶
DeleteManifest ...
func (*Registry) ManifestExist ¶
ManifestExist ...
Click to show internal directories.
Click to hide internal directories.