internal

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPlatformV1ToCtrd

func ConvertPlatformV1ToCtrd(v1Platform *v1.Platform) platforms.Platform

func DescribePlatform

func DescribePlatform(platform platforms.Platform) string

func DescribePlatforms

func DescribePlatforms(plats ...platforms.Platform) string

func FindManifestForPlatform

func FindManifestForPlatform(findFor platforms.Platform, manifests []v1.Descriptor) *v1.Descriptor

func FindManifestForPlatforms

func FindManifestForPlatforms(findFor []platforms.Platform, manifests []v1.Descriptor) *v1.Descriptor

func WithPlatforms added in v0.6.0

func WithPlatforms(v1Platforms ...*v1.Platform) func(*PullOption)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cacheDir string) *Client

func (*Client) Pull

func (c *Client) Pull(ctx context.Context, ref name.Reference, opts ...func(*PullOption)) (string, error)

type DiskLayerWriter

type DiskLayerWriter struct {
}

func NewDiskLayerWriter

func NewDiskLayerWriter() *DiskLayerWriter

func (*DiskLayerWriter) Write

func (w *DiskLayerWriter) Write(layers []v1.Layer, outputDir string) error

type LayerWriter

type LayerWriter interface {
	Write(layers []v1.Layer, dir string) error
}

type PullOption

type PullOption struct {
	Platforms []platforms.Platform
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL