group

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: 5 Imported by: 0

Documentation

Index

Constants

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

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 plugin

Types

type StepGroup

type StepGroup struct {
	GroupName string `mapstructure:"name"`

	Steps []go2chef.Step
	// contains filtered or unexported fields
}

StepGroup defines a step that consists of other steps

StepGroups download all resources in parallel and then execute steps sequentially. If you're doing a bunch of steps you probably want to use a `step_group` for it.

func (*StepGroup) Download

func (g *StepGroup) Download() (err error)

Download runs the Download function of each substep in parallel

func (*StepGroup) Execute

func (g *StepGroup) Execute() (err error)

Execute runs the Execute function of each substep in sequence

func (*StepGroup) Name

func (g *StepGroup) Name() string

Name gets the name of this step instance

func (*StepGroup) SetName

func (g *StepGroup) SetName(n string)

SetName sets the name of this step instance

func (*StepGroup) String

func (g *StepGroup) String() string

func (*StepGroup) Type

func (g *StepGroup) Type() string

Type returns the type of this step instance

Jump to

Keyboard shortcuts

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