bundles

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package bundles is a collection of different bundle methods that translate some amount of user-configuration into a "bundle" image. The contract of the bundle image is similar to the idea of a "self-extracting zip". it is a single container which when executed expands a source context into the working directory it is run against.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map(ctx context.Context, base name.Reference, tag name.Tag, fn Mutator) (name.Digest, error)

Map loads the base reference, applies the Mutator function to all of the images contained within, and publishes it to tag. The digest of the resulting image or image index is returned upon success, or an error on failure.

Types

type Mutator

type Mutator func(ctx context.Context, img v1.Image) (v1.Image, error)

Mutator is the signature of the callback supplied to Map. This function will be called on each of the images that comprise the referenced base, and the function maybe be called once (if an image) or many times (is an image index).

Directories

Path Synopsis
Package git implements the bundle contract from a source git repository.
Package git implements the bundle contract from a source git repository.
Package kontext is a set of utilities for bundling up a local directory context within CLIs into a self-extracting container image that when run will expand its payload into the working directory.
Package kontext is a set of utilities for bundling up a local directory context within CLIs into a self-extracting container image that when run will expand its payload into the working directory.

Jump to

Keyboard shortcuts

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