Documentation ¶
Index ¶
- Constants
- Variables
- type ActionArguments
- type Duffle
- func (d *Duffle) AddFiles(args ActionArguments) action.OperationConfigFunc
- func (d *Duffle) ApplyConfig(args ActionArguments) action.OperationConfigs
- func (d *Duffle) FetchClaim(name string) (*claim.Claim, error)
- func (d *Duffle) Install(args ActionArguments) error
- func (d *Duffle) Invoke(action string, args ActionArguments) error
- func (d *Duffle) LoadBundle(bundleFile string, insecure bool) (*bundle.Bundle, error)
- func (d *Duffle) NewClaimStore() (claim.Store, error)
- func (d *Duffle) SetOutput() action.OperationConfigFunc
- func (d *Duffle) Uninstall(args ActionArguments) error
- func (d *Duffle) Upgrade(args ActionArguments) error
- func (d *Duffle) WriteClaimOutputs(c *claim.Claim, action string) error
Constants ¶
View Source
const (
// ClaimsDirectory represents the name of the directory where claims are stored
ClaimsDirectory = "claims"
)
View Source
const (
// CredentialsDirectory represents the name of the directory where credentials are stored
CredentialsDirectory = "credentials"
)
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 instance. Claim string // Either a filepath to the bundle or the name of the bundle. BundlePath string // Additional files to copy into the bundle // Target Path => File Contents Files map[string]string // Insecure bundle action 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 ¶
func (*Duffle) AddFiles ¶
func (d *Duffle) AddFiles(args ActionArguments) action.OperationConfigFunc
func (*Duffle) ApplyConfig ¶
func (d *Duffle) ApplyConfig(args ActionArguments) action.OperationConfigs
func (*Duffle) FetchClaim ¶
FetchClaim fetches a claim from the given CNABProvider's claim store
func (*Duffle) Install ¶
func (d *Duffle) Install(args ActionArguments) error
func (*Duffle) LoadBundle ¶
func (*Duffle) SetOutput ¶
func (d *Duffle) SetOutput() action.OperationConfigFunc
func (*Duffle) Uninstall ¶
func (d *Duffle) Uninstall(args ActionArguments) error
func (*Duffle) Upgrade ¶
func (d *Duffle) Upgrade(args ActionArguments) error
Click to show internal directories.
Click to hide internal directories.