bundle

package
v0.0.0-...-f22496c Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TypeName = "go2chef.step.bundle"

TypeName is the name of this step plugin

Variables

This section is empty.

Functions

func Loader

func Loader(config map[string]interface{}) (go2chef.Step, error)

Loader provides an instantiation function for this step

Types

type Bundle

type Bundle struct {
	BundleName string `mapstructure:"name"`

	ConfigName     string `mapstructure:"config_name"`
	TimeoutSeconds int    `mapstructure:"timeout_seconds"`
	// contains filtered or unexported fields
}

Bundle represents an executable bundle of files that can be downloaded from a go2chef.Source

func (*Bundle) Download

func (b *Bundle) Download() error

Download fetches resources required for this bundle's execution

func (*Bundle) Execute

func (b *Bundle) Execute() error

Execute loads the bundle.json and executes the command specified therein

func (*Bundle) Name

func (b *Bundle) Name() string

Name returns the name of this bundle step

func (*Bundle) SetName

func (b *Bundle) SetName(n string)

SetName sets the name of this bundle step

func (*Bundle) String

func (b *Bundle) String() string

func (*Bundle) Type

func (b *Bundle) Type() string

Type returns "bundle"

type BundleEntrypointFinder

type BundleEntrypointFinder func(fullPath string, ctx context.Context) *exec.Cmd

Jump to

Keyboard shortcuts

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