minions

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworkDriver added in v0.2.0

func NewNetworkDriver(flow string) func(*zap.Logger, *types.Services, *types.Metadata) Minion

NewNetworkDriver returns a function that will ensure that the correct INGRESS or EGRESS type is used.

Types

type Minion

type Minion interface {

	// Do will execute the minions job against the given step at the correct mode
	Do(ctx context.Context, step types.Step, mode string)

	// Restore ensures all the resources are put back in place
	// it should only be able to execute if the do function has finished
	Restore()
}

Minion defines a task that targets one part of the cloud Each minion needs to keep an internal lock to ensure the restore doesn't happen at the same time as the Do

func NewInstance

func NewInstance(log *zap.Logger, svc *types.Services, meta *types.Metadata) Minion

NewInstance returns a minion that is configured to inspect instances

Jump to

Keyboard shortcuts

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