internal

package
v0.0.0-...-52740e6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 16 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

Types

type DiskLayerWriter

type DiskLayerWriter struct {
}

func NewDiskLayerWriter

func NewDiskLayerWriter() *DiskLayerWriter

func (*DiskLayerWriter) Write

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

type GetEnv

type GetEnv func(key string) string

type Inputs

type Inputs struct {
	RemoteImageRef name.Reference
	StepPath       string
	LogLevel       slog.Level
	OutputFile     string
}

func ParseInputs

func ParseInputs(args []string, getenv GetEnv) (*Inputs, error)

type LayerWriter

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

type OutputValue

type OutputValue struct {
	Name  string `json:"name"`
	Value any    `json:"value"`
}

type Outputs

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

func NewOutputs

func NewOutputs(outputFile string) *Outputs

func (*Outputs) Write

func (o *Outputs) Write(downloadDir string, imgRef name.Reference, stepPath string) error

Jump to

Keyboard shortcuts

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