bundle

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package bundle is not meant for use outside of wolfictl and friends. Do not use it. Don't even look at it. Stop reading this!!

Or do whatever you want, I'm not a cop.

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, anns map[string]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

type GCSFuseMount struct {
	Bucket  string
	Mount   string
	OnlyDir string
}

func ParseGCSFuseMount

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

type Graph

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

Yuck.

type Task

type Task struct {
	BuildID        uuid.UUID         `json:"buildID"`
	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