butler

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBmcConnectionFail = errors.New("Unable to login to bmc") //could be a timeout or just bad credentials.
	ErrUnkownAsset       = errors.New("Unknown asset type")
)

Functions

This section is empty.

Types

type Butler

type Butler struct {
	// contains filtered or unexported fields
}

func (*Butler) Run

func (b *Butler) Run()

butler recieves config, assets over channel iterate over assets and apply config

type ButlerManager

type ButlerManager struct {
	Log            *logrus.Logger
	SpawnCount     int
	SyncWG         sync.WaitGroup
	ButlerChan     <-chan ButlerMsg
	MetricsEmitter metrics.Emitter
	IgnoreLocation bool
}

func (*ButlerManager) SpawnButlers

func (bm *ButlerManager) SpawnButlers()

spawn a pool of butlers

func (*ButlerManager) Wait

func (bm *ButlerManager) Wait()

type ButlerMsg

type ButlerMsg struct {
	Asset   asset.Asset //Asset to be configured
	Config  []byte      //The BMC configuration read in from configuration.yml
	Setup   []byte      //The One time setup configuration read from setup.yml
	Execute string      //Commands to be executed on the BMC
}

type SetupAction

type SetupAction struct {
	Asset *asset.Asset
	Id    int
	Log   *logrus.Logger
}

func (*SetupAction) Chassis

func (s *SetupAction) Chassis(chassis devices.BmcChassis, config *cfgresources.ResourcesSetup) (configured bool)

func (*SetupAction) Post

func (s *SetupAction) Post(asset *asset.Asset)

Actions to be taken once a chassis was setup successfully.

Jump to

Keyboard shortcuts

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