Versions in this module Expand all Collapse all v0 v0.20.1 Jun 18, 2024 v0.20.0 Jun 18, 2024 Changes in this version + var DefaultTransport http.RoundTripper = &http.Transport + var ErrSchema1 = errors.New("see https://github.com/google/go-containerregistry/issues/377") + func Catalog(ctx context.Context, target name.Registry, options ...Option) ([]string, error) + func CatalogPage(target name.Registry, last string, n int, options ...Option) ([]string, error) + func CheckPushPermission(ref name.Reference, kc authn.Keychain, t http.RoundTripper) error + func Delete(ref name.Reference, options ...Option) error + func Head(ref name.Reference, options ...Option) (*v1.Descriptor, error) + func Image(ref name.Reference, options ...Option) (v1.Image, error) + func Index(ref name.Reference, options ...Option) (v1.ImageIndex, error) + func Layer(ref name.Digest, options ...Option) (v1.Layer, error) + func List(repo name.Repository, options ...Option) ([]string, error) + func ListWithContext(ctx context.Context, repo name.Repository, options ...Option) ([]string, error) + func MultiWrite(todo map[name.Reference]Taggable, options ...Option) (rerr error) + func Put(ref name.Reference, t Taggable, options ...Option) error + func Referrers(d name.Digest, options ...Option) (v1.ImageIndex, error) + func Tag(tag name.Tag, t Taggable, options ...Option) error + func WithNondistributable(o *options) error + func Write(ref name.Reference, img v1.Image, options ...Option) (rerr error) + func WriteIndex(ref name.Reference, ii v1.ImageIndex, options ...Option) (rerr error) + func WriteLayer(repo name.Repository, layer v1.Layer, options ...Option) (rerr error) + type Backoff = retry.Backoff + type Catalogger struct + func (l *Catalogger) HasNext() bool + func (l *Catalogger) Next(ctx context.Context) (*Catalogs, error) + type Catalogs struct + Next string + Repos []string + type Descriptor struct + Manifest []byte + func Get(ref name.Reference, options ...Option) (*Descriptor, error) + func (d *Descriptor) Image() (v1.Image, error) + func (d *Descriptor) ImageIndex() (v1.ImageIndex, error) + func (d *Descriptor) RawManifest() ([]byte, error) + func (d *Descriptor) Schema1() (v1.Image, error) + type Lister struct + func (l *Lister) HasNext() bool + func (l *Lister) Next(ctx context.Context) (*Tags, error) + type MountableLayer struct + Reference name.Reference + func (ml *MountableLayer) Descriptor() (*v1.Descriptor, error) + func (ml *MountableLayer) Exists() (bool, error) + type Option func(*options) error + func Reuse[I *Puller | *Pusher](i I) Option + func WithAuth(auth authn.Authenticator) Option + func WithAuthFromKeychain(keys authn.Keychain) Option + func WithContext(ctx context.Context) Option + func WithFilter(key string, value string) Option + func WithJobs(jobs int) Option + func WithPageSize(size int) Option + func WithPlatform(p v1.Platform) Option + func WithProgress(updates chan<- v1.Update) Option + func WithRetryBackoff(backoff Backoff) Option + func WithRetryPredicate(predicate retry.Predicate) Option + func WithRetryStatusCodes(codes ...int) Option + func WithTransport(t http.RoundTripper) Option + func WithUserAgent(ua string) Option + type Puller struct + func NewPuller(options ...Option) (*Puller, error) + func (p *Puller) Catalog(ctx context.Context, reg name.Registry) ([]string, error) + func (p *Puller) Catalogger(ctx context.Context, reg name.Registry) (*Catalogger, error) + func (p *Puller) Get(ctx context.Context, ref name.Reference) (*Descriptor, error) + func (p *Puller) Head(ctx context.Context, ref name.Reference) (*v1.Descriptor, error) + func (p *Puller) Layer(ctx context.Context, ref name.Digest) (v1.Layer, error) + func (p *Puller) List(ctx context.Context, repo name.Repository) ([]string, error) + func (p *Puller) Lister(ctx context.Context, repo name.Repository) (*Lister, error) + type Pusher struct + func NewPusher(options ...Option) (*Pusher, error) + func (p *Pusher) Delete(ctx context.Context, ref name.Reference) error + func (p *Pusher) Push(ctx context.Context, ref name.Reference, t Taggable) error + func (p *Pusher) Upload(ctx context.Context, repo name.Repository, l v1.Layer) error + type Taggable interface + RawManifest func() ([]byte, error) + type Tags struct + Name string + Next string + Tags []string