Versions in this module Expand all Collapse all v0 v0.1.0 Nov 26, 2020 Changes in this version + var ErrNoMorePages = errors.New("no more pages") + func Log(format string, args ...interface{}) + func Quiet(format string, args ...interface{}) + func WrapTransport(transport http.RoundTripper, url, username, password string) http.RoundTripper + type AuthorizationChallenge struct + Parameters map[string]string + Scheme string + type BasicTransport struct + Password string + Transport http.RoundTripper + URL string + Username string + func (t *BasicTransport) RoundTrip(req *http.Request) (*http.Response, error) + type ErrorTransport struct + Transport http.RoundTripper + func (t *ErrorTransport) RoundTrip(request *http.Request) (*http.Response, error) + type HTTPStatusError struct + Body []byte + Response *http.Response + func (err *HTTPStatusError) Error() string + type LogfCallback func(format string, args ...interface{}) + type Registry struct + Client *http.Client + Logf LogfCallback + URL string + func New(registryURL, username, password string, logFlag int) (*Registry, error) + func NewInsecure(registryURL, username, password string, logFlag int) (*Registry, error) + func (r *Registry) Ping() error + func (registry *Registry) BlobMetadata(repository string, digest digest.Digest) (distribution.Descriptor, error) + func (registry *Registry) DeleteManifest(repository string, digest digest.Digest) error + func (registry *Registry) DownloadBlob(repository string, digest digest.Digest) (io.ReadCloser, error) + func (registry *Registry) HasBlob(repository string, digest digest.Digest) (bool, error) + func (registry *Registry) Manifest(repository, reference string) (*schema1.SignedManifest, error) + func (registry *Registry) ManifestDigest(repository, reference string) (digest.Digest, error) + func (registry *Registry) ManifestV2(repository, reference string) (*schema2.DeserializedManifest, error) + func (registry *Registry) PutManifest(repository, reference string, manifest distribution.Manifest) error + func (registry *Registry) Repositories() ([]string, error) + func (registry *Registry) Tags(repository string) (tags []string, err error) + func (registry *Registry) UploadBlob(repository string, digest digest.Digest, content io.Reader) (*http.Response, error) + type TokenPool struct + func NewTokenPool() *TokenPool + func (t *TokenPool) GetToken(scope string) string + func (t *TokenPool) SetToken(scope, token string) + type TokenTransport struct + Password string + Transport http.RoundTripper + Username string + func NewTokenTransport(transport http.RoundTripper, username string, password string) *TokenTransport + func (t *TokenTransport) GenerRequestBody(tmp []byte) io.ReadCloser + func (t *TokenTransport) GetScope(u string) string + func (t *TokenTransport) RoundTrip(req *http.Request) (*http.Response, error)