registry

package
v0.0.0-...-0b5d736 Latest Latest
Warning

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

Go to latest
Published: May 19, 2016 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 3 more Imports: 14 Imported by: 0

Documentation

Index

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

type Registry struct {
	Endpoint *url.URL
	// contains filtered or unexported fields
}

Registry holds information of a registry entity

func NewRegistry

func NewRegistry(endpoint string, client *http.Client) (*Registry, error)

NewRegistry returns an instance of registry

func NewRegistryWithUsername

func NewRegistryWithUsername(endpoint, username string) (*Registry, error)

NewRegistryWithUsername returns a Registry instance which will authorize the request according to the privileges of user

func (*Registry) Catalog

func (r *Registry) Catalog() ([]string, error)

Catalog ...

type Repository

type Repository struct {
	Name     string
	Endpoint *url.URL
	// contains filtered or unexported fields
}

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) DeleteBlob

func (r *Repository) DeleteBlob(digest string) error

DeleteBlob ...

func (*Repository) DeleteManifest

func (r *Repository) DeleteManifest(digest string) error

DeleteManifest ...

func (*Repository) DeleteTag

func (r *Repository) DeleteTag(tag string) error

DeleteTag ...

func (*Repository) ListTag

func (r *Repository) ListTag() ([]string, error)

ListTag ...

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

type RequestModifier interface {
	ModifyRequest(*http.Request) error
}

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 ...

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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