local

package
v0.0.0-...-5f7c61f Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Options Options
	State   State
}

func NewManager

func NewManager(opts Options) *Manager

func (*Manager) CreatePipeline

func (l *Manager) CreatePipeline(p tasks.Pipeline, environmentName string) error

func (Manager) DeletePipeline

func (l Manager) DeletePipeline(name string) (tasks.Pipeline, error)

func (Manager) ReadPipeline

func (l Manager) ReadPipeline(name string) (tasks.Pipeline, error)

func (*Manager) ResetState

func (l *Manager) ResetState() error

type Options

type Options struct {
	// RestartExecutor restarts the local Wiz Executor even if it is already running. Useful for development
	RestartExecutor bool

	// the location that the local manager persists state to
	StorageLocation string

	// PreserveRunIDs allows existing RunIDs in the spec to be used
	PreserveRunIDs bool
	// OverwritePipelines allows the manager to overwrite an existing pipleline
	OverwritePipelines bool

	// UseExistingExecutor allows us to use an already running executor assumed to be running on port
	UseExistingExecutor bool

	ExecutorPort int
}

type State

type State struct {
	Pipelines          map[string]tasks.Pipeline
	Environments       map[string]environment.SerializableEnv
	CurrentEnvironment string
}

State represents the manager state. It needs to be serializable to a file

Jump to

Keyboard shortcuts

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