lifecycle

package
v0.30.7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 15 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
	ConfirmUploadPrompt bool
	DenyUploadPrompt    bool
	Quiet               bool
	GenerateBundlePath  string
	UploadCustomerID    string // deprecated
	UploadChannelID     string
	UploadWatchID       string
	GraphQLClient       *graphql.Client
	FileInfo            os.FileInfo
	// RealGeneratedBundlePath is the actual path the bundle was written to.
	// it will be different from GenerateBundlePath if a URL or `-` (stdout)
	// was passed in.
	RealGeneratedBundlePath string
	BundleTasks             []types.Task

	Notes string
	// 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 NotesTask

type NotesTask struct {
	Options types.NotesOptions
}

func (*NotesTask) Execute

func (task *NotesTask) 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