butler

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 16 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 passed by the user.
	ButlerChan <-chan Msg
	Log        *logrus.Logger
	StopChan   <-chan struct{}
	SyncWG     *sync.WaitGroup
	WorkerPool *workerpool.WorkerPool

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

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
}

Represents butler messages passed over the butlerChan. These 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