statescript

package
v0.0.0-...-5331e25 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 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 {
	ExecuteAll(state, action string, ignoreError bool, report *client.StatusReportWrapper) error
	CheckRootfsScriptsVersion() error
}

type Launcher

type Launcher struct {
	ArtScriptsPath          string
	RootfsScriptsPath       string
	SupportedScriptVersions []int
	Timeout                 int
	RetryInterval           int
	RetryTimeout            int
}

func (Launcher) CheckRootfsScriptsVersion

func (l Launcher) CheckRootfsScriptsVersion() error

TODO: we can optimize for reading directories once and then creating a map with all the scripts that needs to be executed.

func (Launcher) ExecuteAll

func (l Launcher) ExecuteAll(state, action string, ignoreError bool,
	report *client.StatusReportWrapper) error

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(destination string) *Store

func (*Store) Clear

func (s *Store) Clear() error

func (Store) Finalize

func (s Store) Finalize(ver int) error

func (*Store) StoreScript

func (s *Store) StoreScript(r io.Reader, name string) error

Jump to

Keyboard shortcuts

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