butler

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 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 Butler

type Butler struct {
	Config     *config.Params //bmcbutler config, cli params
	ButlerChan <-chan Msg
	Log        *logrus.Logger
	StopChan   <-chan struct{}
	SyncWG     *sync.WaitGroup
	WorkerPool *workerpool.WorkerPool

	Secrets *secrets.Store
	// contains filtered or unexported fields
}

Butler struct holds attributes required to spawn butlers.

func (*Butler) Runner added in v0.0.7

func (b *Butler) Runner()

Runner spawns a pool of butlers, waits until they are done.

type Msg added in v0.0.7

type Msg struct {
	Asset        asset.Asset //Asset to be configured
	AssetConfig  []byte      //The BMC configuration read in from configuration.yml
	AssetSetup   []byte      //The One time setup configuration read from setup.yml
	AssetExecute string      //Commands to be executed on the BMC
}

Msg (butler messages) are passed over the butlerChan they declare assets for butlers to carry actions on.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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