artifact

package
v0.0.0-...-cc6d223 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GzipImages = Images{
	Compression: Gzip,
	Kernel:      "full_dev_part_KERN.bin.gz",
	Rootfs:      "full_dev_part_ROOT.bin.gz",
	Stateful:    "stateful.tgz",
}

GzipImages to flash.

See https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:chromite/lib/constants.py;l=697-704;drc=e94de9b6a35c961b92a9aa57fc3f7923525b9925

View Source
var ZstdImages = Images{
	Compression: Zstd,
	Kernel:      "full_KERN.bin.zst",
	Rootfs:      "full_ROOT.bin.zst",
	Stateful:    "stateful.zst",
}

ZstdImages to flash.

See https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:chromite/lib/constants.py;l=706-711;drc=e94de9b6a35c961b92a9aa57fc3f7923525b9925

Functions

This section is empty.

Types

type Compression

type Compression int

Compression type.

const (
	Gzip Compression = iota
	Zstd
)

List of compression types.

type GSArtifact

type GSArtifact struct {
	// Cloud storage bucket path.
	Bucket string
	Dir    string

	Images
}

type ImageID

type ImageID string

ImageID is used to

const (
	Kernel   ImageID = "kernel"
	Rootfs   ImageID = "rootfs"
	Stateful ImageID = "stateful"
)

type Images

type Images struct {
	Compression Compression

	Kernel   string
	Rootfs   string
	Stateful string
}

Images describes the image names in the artifact directory.

func (*Images) Name

func (i *Images) Name(id ImageID) string

Name of the image ID.

func (*Images) Names

func (i *Images) Names() []string

Names of images as a slice.

Jump to

Keyboard shortcuts

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