Documentation ¶
Index ¶
- func GetHTTPTransport(insecure ...bool) *http.Transport
- 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) MountBlob(digest, from string) error
- func (r *Repository) PullBlob(digest string) (size int64, data io.ReadCloser, 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 io.Reader) error
- func (r *Repository) PushManifest(reference, mediaType string, payload []byte) (digest string, err error)
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPTransport ¶
GetHTTPTransport returns HttpTransport based on insecure configuration
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
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 (*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) MountBlob ¶ added in v1.7.0
func (r *Repository) MountBlob(digest, from string) error
MountBlob ...
func (*Repository) PullBlob ¶
func (r *Repository) PullBlob(digest string) (size int64, data io.ReadCloser, err error)
PullBlob : client must close data if it is not nil
func (*Repository) PullManifest ¶
func (r *Repository) PullManifest(reference string, acceptMediaTypes []string) (digest, mediaType string, payload []byte, err error)
PullManifest ...
func (*Repository) PushManifest ¶
func (r *Repository) PushManifest(reference, mediaType string, payload []byte) (digest string, err error)
PushManifest ...
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 ...modifier.Modifier) *Transport
NewTransport ...
Click to show internal directories.
Click to hide internal directories.