Documentation
¶
Index ¶
- func RegistryAuthForRef(ref string, auth authprovider.AuthConfigProvider) (string, error)
- type DescWithSource
- type Opt
- type Printer
- type Resolver
- func (r *Resolver) Combine(ctx context.Context, srcs []*Source, ann map[exptypes.AnnotationKey]string, ...) ([]byte, ocispecs.Descriptor, []DescWithSource, error)
- func (r *Resolver) Copy(ctx context.Context, src *Source, dest reference.Named) error
- func (r *Resolver) Get(ctx context.Context, in string) ([]byte, ocispecs.Descriptor, error)
- func (r *Resolver) GetDescriptor(ctx context.Context, in string, desc ocispecs.Descriptor) ([]byte, error)
- func (r *Resolver) Push(ctx context.Context, ref reference.Named, desc ocispecs.Descriptor, dt []byte) error
- func (r *Resolver) Resolve(ctx context.Context, in string) (string, ocispecs.Descriptor, error)
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistryAuthForRef ¶ added in v0.5.0
func RegistryAuthForRef(ref string, auth authprovider.AuthConfigProvider) (string, error)
Types ¶
type DescWithSource ¶ added in v0.30.0
type DescWithSource struct {
ocispecs.Descriptor
Source *Source
}
type Opt ¶
type Opt struct {
Auth authprovider.AuthConfigProvider
RegistryConfig map[string]resolver.RegistryConfig
}
type Printer ¶ added in v0.8.0
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶ added in v0.8.0
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) Combine ¶
func (r *Resolver) Combine(ctx context.Context, srcs []*Source, ann map[exptypes.AnnotationKey]string, preferIndex bool, platforms []ocispecs.Platform) ([]byte, ocispecs.Descriptor, []DescWithSource, error)
func (*Resolver) GetDescriptor ¶
Click to show internal directories.
Click to hide internal directories.