cnab

package
v0.9.1-beta3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBundle

func GetBundle(dockerCli command.Cli, imageStore appstore.ImageStore, name string) (*image.AppImage, reference.Reference, error)

GetBundle searches for the bundle locally and tries to pull it if not found

func PullBundle

func PullBundle(dockerCli command.Cli, imageStore appstore.ImageStore, tagRef reference.Named) (*image.AppImage, error)

PullBundle pulls the bundle and stores it into the bundle store

func ResolveBundle

func ResolveBundle(dockerCli command.Cli, imageStore appstore.ImageStore, name string) (*image.AppImage, string, error)

ResolveBundle looks for a CNAB bundle which can be in a Docker App Package format or a bundle stored locally or in the bundle store. It returns a built or found bundle, a reference to the bundle if it is found in the imageStore, and an error.

func SetupDriver

func SetupDriver(installation *store.Installation, dockerCli command.Cli, opts *cliopts.InstallerContextOptions, stdout io.Writer) (driver.Driver, *bytes.Buffer, error)

func WithRelocationMap

func WithRelocationMap(installation *store.Installation) func(op *driver.Operation) error

Types

type BindMount

type BindMount struct {
	// contains filtered or unexported fields
}

BindMount

func RequiredBindMount

func RequiredBindMount(targetContextName string, targetOrchestrator string, s cliContext.Store) (BindMount, error)

RequiredBindMount Returns the path required to bind mount when running the invocation image.

func RequiredClaimBindMount

func RequiredClaimBindMount(c claim.Claim, dockerCli command.Cli) (BindMount, error)

Jump to

Keyboard shortcuts

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