Documentation ¶
Index ¶
- func UnMarshal(mediaType string, data []byte) (distribution.Manifest, distribution.Descriptor, error)
- type Registry
- type Repository
- func (r *Repository) BlobExist(digest string) (bool, error)
- func (r *Repository) DeleteBlob(digest string) error
- func (r *Repository) DeleteManifest(digest string) error
- func (r *Repository) DeleteTag(tag string) error
- func (r *Repository) ListTag() ([]string, error)
- func (r *Repository) ManifestExist(reference string) (digest string, exist bool, err error)
- func (r *Repository) PullBlob(digest string) (size int64, data []byte, err error)
- func (r *Repository) PullManifest(reference string, acceptMediaTypes []string) (digest, mediaType string, payload []byte, err error)
- func (r *Repository) PushBlob(digest string, size int64, data []byte) error
- func (r *Repository) PushManifest(reference, mediaType string, payload []byte) (digest string, err error)
- type RequestModifier
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 entity
func NewRegistry ¶
NewRegistry returns an instance of registry
func NewRegistryWithUsername ¶
NewRegistryWithUsername returns a Registry instance which will authorize the request according to the privileges of user
type Repository ¶
Repository holds information of a repository entity
func NewRepository ¶
func NewRepository(name, endpoint string, client *http.Client) (*Repository, error)
NewRepository returns an instance of Repository
func NewRepositoryWithCredential ¶
func NewRepositoryWithCredential(name, endpoint string, credential auth.Credential) (*Repository, error)
NewRepositoryWithCredential returns a Repository instance which will authorize the request according to the credenttial
func NewRepositoryWithUsername ¶
func NewRepositoryWithUsername(name, endpoint, username string) (*Repository, error)
NewRepositoryWithUsername returns a Repository instance which will authorize the request according to the privileges of user
func (*Repository) BlobExist ¶
func (r *Repository) BlobExist(digest string) (bool, error)
BlobExist ...
func (*Repository) DeleteManifest ¶
func (r *Repository) DeleteManifest(digest string) error
DeleteManifest ...
func (*Repository) ManifestExist ¶
func (r *Repository) ManifestExist(reference string) (digest string, exist bool, err error)
ManifestExist ...
func (*Repository) PullBlob ¶
func (r *Repository) PullBlob(digest string) (size int64, data []byte, err error)
PullBlob ...
func (*Repository) PullManifest ¶
func (r *Repository) PullManifest(reference string, acceptMediaTypes []string) (digest, mediaType string, payload []byte, err error)
PullManifest ...
func (*Repository) PushBlob ¶
func (r *Repository) PushBlob(digest string, size int64, data []byte) error
PushBlob ...
func (*Repository) PushManifest ¶
func (r *Repository) PushManifest(reference, mediaType string, payload []byte) (digest string, err error)
PushManifest ...
type RequestModifier ¶
RequestModifier modifies request
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport holds information about base transport and modifiers
func NewTransport ¶
func NewTransport(transport http.RoundTripper, modifiers []RequestModifier) *Transport
NewTransport ...