bundle

package
v0.16.13 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

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
	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