rootfsbuilder

package
v0.0.0-...-449daaf Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeChainID

func ComputeChainID(diffIDs []string) (string, error)

Types

type DiskfsLayerApplier

type DiskfsLayerApplier struct {
	FS       *ext4.FileSystem
	Symlinks map[string]bool
}

func (DiskfsLayerApplier) ApplyLayer

func (a DiskfsLayerApplier) ApplyLayer(ctx context.Context, compressedLayerPath string, expectedDiffID string) error

type LayerApplier

type LayerApplier struct {
	Root string
}

func (LayerApplier) ApplyLayer

func (a LayerApplier) ApplyLayer(ctx context.Context, compressedLayerPath string, expectedDiffID string) error

type Metadata

type Metadata struct {
	ChainID        string                `json:"chain_id"`
	ImageRef       string                `json:"image_ref"`
	ManifestDigest string                `json:"manifest_digest"`
	Platform       contentstore.Platform `json:"platform"`
	DiffIDs        []string              `json:"diff_ids"`
	SizeBytes      int64                 `json:"size_bytes"`
	FSType         string                `json:"fs_type"`
	CreatedAt      time.Time             `json:"created_at"`
}

type PureGoExt4Builder

type PureGoExt4Builder struct{}

func (PureGoExt4Builder) Build

func (PureGoExt4Builder) Build(ctx context.Context, img *oci.PulledImage, imagePath string, size int64) (err error)

type Rootfs

type Rootfs struct {
	ChainID string
	Path    string
}

type RootfsImageBuilder

type RootfsImageBuilder interface {
	Build(ctx context.Context, img *oci.PulledImage, imagePath string, size int64) error
}

type Store

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

func New

func New(storeDir string) *Store

func (*Store) EnsureRootfs

func (s *Store) EnsureRootfs(ctx context.Context, img *oci.PulledImage) (*Rootfs, error)

func (*Store) WriteMetadata

func (s *Store) WriteMetadata(img *oci.PulledImage, chainID string, sizeBytes int64) error

Jump to

Keyboard shortcuts

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