lifecycle

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Execute(lifecycle *Lifecycle) (bool, error)
}

Executor is a thing that can be executed.

...and I still think Rob is wrong

type GenerateTask

type GenerateTask struct {
	Options types.GenerateOptions
}

func (*GenerateTask) Execute

func (t *GenerateTask) Execute(l *Lifecycle) (bool, error)

type Lifecycle

type Lifecycle struct {
	GenerateTimeout    int
	SkipPrompts        bool
	GenerateBundlePath string
	UploadCustomerID   string
	GraphQLClient      *graphql.Client
	FileInfo           os.FileInfo
	BundleTasks        []types.Task
	// contains filtered or unexported fields
}

func (*Lifecycle) Build

func (l *Lifecycle) Build(tasks []types.LifecycleTask) error

func (*Lifecycle) Run

func (l *Lifecycle) Run() error

type MessageTask

type MessageTask struct {
	Options types.MessageOptions
}

func (*MessageTask) Execute

func (t *MessageTask) Execute(l *Lifecycle) (bool, error)

type UploadTask

type UploadTask struct {
	Options types.UploadOptions
}

func (*UploadTask) Execute

func (task *UploadTask) Execute(l *Lifecycle) (bool, error)

Jump to

Keyboard shortcuts

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