bundle

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MaxArmCore = 48

Variables

This section is empty.

Functions

func New

func New(base v1.ImageIndex, entrypoints map[types.Architecture]*Entrypoint, commonfiles, srcfs fs.FS) (v1.ImageIndex, error)

func Podspec

func Podspec(task Task, ref name.Reference, arch, mFamily, sa, ns string) (*corev1.Pod, error)

Podspec returns bytes of yaml representing a podspec. This is a terrible API that we should change.

Types

type Bundles

type Bundles struct {
	Graph   Graph
	Tasks   []Task
	Runtime name.Digest
}

func Pull

func Pull(pull string) (*Bundles, error)

TODO: dependency injection

type Entrypoint

type Entrypoint struct {
	Flags         []string
	TestFlags     []string
	GCSFuseMounts []*GCSFuseMount
}

type GCSFuseMount added in v0.16.12

type GCSFuseMount struct {
	Bucket  string
	Mount   string
	OnlyDir string
}

func ParseGCSFuseMount added in v0.16.12

func ParseGCSFuseMount(s string) (*GCSFuseMount, error)

type Graph

type Graph = map[string]map[string]graph.Edge[string]

Yuck.

type Task added in v0.16.13

type Task struct {
	Package        string            `json:"package"`
	Version        string            `json:"version"`
	Epoch          uint64            `json:"epoch"`
	Path           string            `json:"path,omitempty"`
	SourceDir      string            `json:"sourceDir,omitempty"`
	Architectures  []string          `json:"architectures,omitempty"`
	Subpackages    []string          `json:"subpackages,omitempty"`
	Resources      *config.Resources `json:"resources,omitempty"`
	BuildDateEpoch time.Time         `json:"buildDateEpoch,omitempty"`
}

Jump to

Keyboard shortcuts

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