installer

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseOperation

type BaseOperation func(options configmanager.RawOptions) error

BaseOperation reads options and executes operation

type ExecuteOperations

type ExecuteOperations []BaseOperation

type Installer

type Installer interface {
	Execute(options configmanager.RawOptions) (statemanager.ResourceStatus, error)
}

type MutableOperation

type MutableOperation func(options configmanager.RawOptions) (configmanager.RawOptions, error)

MutableOperation can be used to change options if it is needed

type Operator

type Operator struct {
	PreExecuteOperations PreExecuteOperations
	ExecuteOperations    ExecuteOperations
	TerminateOperations  TerminateOperations
	GetStatusOperation   StatusGetterOperation
}

Operator knows all the operations and can execute them in order

func (*Operator) Execute

Execute will sequentially execute all operations in Operator

type PreExecuteOperations

type PreExecuteOperations []MutableOperation

type StatusGetterOperation

type StatusGetterOperation func(options configmanager.RawOptions) (statemanager.ResourceStatus, error)

StatusGetterOperation reads options and executes operation, then returns the status map

type TerminateOperations

type TerminateOperations []BaseOperation

Directories

Path Synopsis
ci

Jump to

Keyboard shortcuts

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