package registry
import "github.com/containerd/containerd/pkg/transfer/registry"
Index ¶
- type CredentialHelper
- type Credentials
- type OCIRegistry
- func NewOCIRegistry(ref string, headers http.Header, creds CredentialHelper) *OCIRegistry
- func (r *OCIRegistry) Fetcher(ctx context.Context, ref string) (transfer.Fetcher, error)
- func (r *OCIRegistry) Image() string
- func (r *OCIRegistry) MarshalAny(ctx context.Context, sm streaming.StreamCreator) (typeurl.Any, error)
- func (r *OCIRegistry) Pusher(ctx context.Context, desc ocispec.Descriptor) (transfer.Pusher, error)
- func (r *OCIRegistry) Resolve(ctx context.Context) (name string, desc ocispec.Descriptor, err error)
- func (r *OCIRegistry) String() string
- func (r *OCIRegistry) UnmarshalAny(ctx context.Context, sm streaming.StreamGetter, a typeurl.Any) error
Types ¶
type CredentialHelper ¶
type CredentialHelper interface { GetCredentials(ctx context.Context, ref, host string) (Credentials, error) }
From stream
type Credentials ¶
type OCIRegistry ¶
type OCIRegistry struct {
// contains filtered or unexported fields
}
OCI
func NewOCIRegistry ¶
func NewOCIRegistry(ref string, headers http.Header, creds CredentialHelper) *OCIRegistry
Initialize with hosts, authorizer callback, and headers
func (*OCIRegistry) Fetcher ¶
func (*OCIRegistry) Image ¶
func (r *OCIRegistry) Image() string
func (*OCIRegistry) MarshalAny ¶
func (r *OCIRegistry) MarshalAny(ctx context.Context, sm streaming.StreamCreator) (typeurl.Any, error)
func (*OCIRegistry) Pusher ¶
func (r *OCIRegistry) Pusher(ctx context.Context, desc ocispec.Descriptor) (transfer.Pusher, error)
func (*OCIRegistry) Resolve ¶
func (r *OCIRegistry) Resolve(ctx context.Context) (name string, desc ocispec.Descriptor, err error)
func (*OCIRegistry) String ¶
func (r *OCIRegistry) String() string
func (*OCIRegistry) UnmarshalAny ¶
func (r *OCIRegistry) UnmarshalAny(ctx context.Context, sm streaming.StreamGetter, a typeurl.Any) error
Source Files ¶
- Version
- v1.7.27 (latest)
- Published
- Mar 17, 2025
- Platform
- linux/amd64
- Imports
- 17 packages
- Last checked
- 16 hours ago –
Tools for package owners.