Documentation ¶
Index ¶
- func GetManifests(ctx context.Context, provider content.Provider, desc ocispec.Descriptor, ...) ([]ocispec.Descriptor, error)
- func ReadJSON(ctx context.Context, cs content.Store, x interface{}, desc ocispec.Descriptor) (map[string]string, error)
- func UpdateLayerDiffID(ctx context.Context, cs content.Store, image ocispec.Descriptor, ...) error
- func WriteJSON(ctx context.Context, cs content.Store, x interface{}, ...) (*ocispec.Descriptor, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetManifests ¶ added in v0.1.1
func GetManifests(ctx context.Context, provider content.Provider, desc ocispec.Descriptor, platform platforms.MatchComparer) ([]ocispec.Descriptor, error)
func ReadJSON ¶
func ReadJSON(ctx context.Context, cs content.Store, x interface{}, desc ocispec.Descriptor) (map[string]string, error)
Ported from containerd project, copyright The containerd Authors. https://github.com/containerd/containerd/blob/26d356d09de89b609cb75562fd87da6aa3c70740/images/converter/default.go#L385
func UpdateLayerDiffID ¶ added in v0.2.0
func UpdateLayerDiffID(ctx context.Context, cs content.Store, image ocispec.Descriptor, platform platforms.MatchComparer) error
func WriteJSON ¶
func WriteJSON(ctx context.Context, cs content.Store, x interface{}, oldDesc ocispec.Descriptor, ref string, labels map[string]string) (*ocispec.Descriptor, error)
Modified from containerd project, copyright The containerd Authors. https://github.com/containerd/containerd/blob/26d356d09de89b609cb75562fd87da6aa3c70740/images/converter/default.go#L401
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.