action

package
v0.0.0-...-7013275 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Name() string
	GetInitConfig() map[string]interface{}
	Weight() int
	Execute(config.LetItGoConfig) error
}

Action is the action interface

type Actions

type Actions []Action

Actions is a slice of Actions.

func (Actions) Len

func (s Actions) Len() int

Len returns the length of the slice.

func (Actions) Swap

func (s Actions) Swap(i, j int)

Swap swaps two items from position.

type ByWeight

type ByWeight struct {
	Actions
}

ByWeight allows to sort Actions by Weight.

func (ByWeight) Less

func (s ByWeight) Less(i, j int) bool

Less Compares weights of each action.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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