bundle

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 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(cfg *config.Configuration, ref name.Reference, arch string) *corev1.Pod

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

Types

type Bundle

type Bundle struct {
	Package       string
	Version       string
	Epoch         uint64
	Architectures []string
	// contains filtered or unexported fields
}

type Bundles

type Bundles struct {
	Graph    Graph
	Packages map[string]name.Digest
	// contains filtered or unexported fields
}

func Pull

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

TODO: dependency injection

func (*Bundles) Bundle

func (b *Bundles) Bundle(want string) (*Bundle, error)

type Entrypoint

type Entrypoint struct {
	File  string
	Flags []string
}

type Graph

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

Yuck.

Jump to

Keyboard shortcuts

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