Documentation ¶
Overview ¶
clients package contains the clients for the distribution service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clients ¶
type Clients interface { // AuthToken auth the clients AuthToken() error // DoRequest request the target with auth DoRequest(ctx context.Context, method, path string, headers http.Header, bodyReaders ...io.Reader) (int, http.Header, io.ReadCloser, error) // GetBlob get blob from target GetBlob(ctx context.Context, repository string, digest digest.Digest) (distribution.Descriptor, io.ReadCloser, error) // HeadBlob get blob metadata from target HeadBlob(ctx context.Context, repository string, digest digest.Digest) (distribution.Descriptor, error) // PutBlob upload blob to target PutBlob(ctx context.Context, repository string, digest digest.Digest, content io.Reader) error // GetManifest ... GetManifest(ctx context.Context, repository, reference string) (distribution.Manifest, distribution.Descriptor, error) // HeadManifest ... HeadManifest(ctx context.Context, repository, reference string) (bool, error) }
Clients is the interface of clients
type ClientsFactory ¶
type ClientsFactory interface {
New(config configs.Configuration) (Clients, error)
}
ClientsFactory ...
Click to show internal directories.
Click to hide internal directories.