cnabprovider

package
v0.9.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSigned = errors.New("bundle is not signed")

TODO: Export everything in this file from duffle cmd/duffle/pull.go

Functions

This section is empty.

Types

type ActionArguments

type ActionArguments struct {
	// Name of the claim.
	Claim string

	// Either a filepath to the bundle or the name of the bundle.
	BundleIdentifier string

	// BundleIdentifier is a filepath.
	BundleIsFile bool

	// Insecure bundle uninstallation allowed.
	Insecure bool

	// Params is the set of parameters to pass to the bundle.
	Params map[string]string

	// Either a filepath to a credential file or the name of a set of a credentials.
	CredentialIdentifiers []string

	// Driver is the CNAB-compliant driver used to run bundle actions.
	Driver string
}

Shared arguments for all CNAB actions supported by duffle

type Duffle

type Duffle struct {
	*config.Config
}

func NewDuffle

func NewDuffle(c *config.Config) *Duffle

func (*Duffle) Install

func (d *Duffle) Install(args InstallArguments) error

func (*Duffle) LoadBundle

func (d *Duffle) LoadBundle(bundleFile string, insecure bool) (*bundle.Bundle, error)

func (*Duffle) NewClaimStore

func (d *Duffle) NewClaimStore() claim.Store

func (*Duffle) Uninstall

func (d *Duffle) Uninstall(args UninstallArguments) error

func (*Duffle) Upgrade

func (d *Duffle) Upgrade(args UpgradeArguments) error

type InstallArguments

type InstallArguments struct {
	ActionArguments
}

type UninstallArguments

type UninstallArguments struct {
	ActionArguments
}

type UpgradeArguments

type UpgradeArguments struct {
	ActionArguments
}

Jump to

Keyboard shortcuts

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