Documentation ¶
Index ¶
- func WithAllMetadata(s *Store)
- type CredentialHelper
- type Credentials
- type 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
- type Store
- func (is *Store) Get(ctx context.Context, store images.Store) (images.Image, error)
- func (is *Store) ImageFilter(h images.HandlerFunc, cs content.Store) images.HandlerFunc
- func (is *Store) MarshalAny(context.Context, streaming.StreamCreator) (typeurl.Any, error)
- func (is *Store) Store(ctx context.Context, desc ocispec.Descriptor, store images.Store) (images.Image, error)
- func (is *Store) String() string
- func (is *Store) UnmarshalAny(ctx context.Context, sm streaming.StreamGetter, a typeurl.Any) error
- func (is *Store) UnpackPlatforms() []unpack.Platform
- type StoreOpt
- func WithDigestRefs(always bool) StoreOpt
- func WithImageLabels(labels map[string]string) StoreOpt
- func WithManifestLimit(limit int) StoreOpt
- func WithNamePrefix(prefix string, check bool) StoreOpt
- func WithPlatforms(p ...ocispec.Platform) StoreOpt
- func WithUnpack(p ocispec.Platform, snapshotter string) StoreOpt
- type UnpackConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAllMetadata ¶
func WithAllMetadata(s *Store)
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) 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
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ImageFilter ¶
func (is *Store) ImageFilter(h images.HandlerFunc, cs content.Store) images.HandlerFunc
func (*Store) MarshalAny ¶
func (*Store) UnmarshalAny ¶
func (*Store) UnpackPlatforms ¶
type StoreOpt ¶
type StoreOpt func(*Store)
StoreOpt defines options when configuring an image store source or destination
func WithDigestRefs ¶
WithDigestRefs sets digest refs for imported images, if always is enabled, then digest refs are added even if a non-digest image name is added for the same image.
func WithImageLabels ¶
WithImageLabels are the image labels to apply to a new image
func WithManifestLimit ¶
WithManifestLimit defines the max number of manifests to fetch
func WithNamePrefix ¶
WithNamePrefix sets the name prefix for imported images, if check is enabled, then only images with the prefix are stored.
func WithPlatforms ¶
WithPlatforms specifies which platforms to fetch content for
type UnpackConfiguration ¶
UnpackConfiguration specifies the platform and snapshotter to use for resolving the unpack Platform, if snapshotter is not specified the platform default will be used.