config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterParams

type FilterParams struct {
	Chassis   bool
	Blades    bool
	Discretes bool
	Servers   bool //Server is to replace Discrete, Blade.
	All       bool
	Serials   string //can be one or more serials separated by commas.
	Ips       string
}

type InventoryParams

type InventoryParams struct {
	Source        string //dora, csv, enc
	EncExecutable string
	ApiUrl        string
	File          string
}

type MetricsParams

type MetricsParams struct {
	Client        string //The metrics client.
	Host          string
	Port          int
	Prefix        string
	FlushInterval time.Duration
}

type Params

type Params struct {
	ButlersToSpawn       int
	Credentials          []map[string]string
	BmcPrimaryUser       string
	BmcPrimaryPassword   string
	BmcSecondaryUser     string
	BmcSecondaryPassword string
	BmcDefaultUser       string
	BmcDefaultPassword   string
	CfgFile              string
	Configure            bool //indicates configure was invoked
	DryRun               bool //when set, don't carry out any actions, just log.
	Setup                bool //indicates setup was invoked
	Execute              bool //indicates execute was invoked
	FilterParams         *FilterParams
	InventoryParams      *InventoryParams
	IgnoreLocation       bool
	Locations            []string
	MetricsParams        *MetricsParams
	Version              string
	Verbose              bool
}

func (*Params) GetDefaultCredentials

func (p *Params) GetDefaultCredentials(vendor string) (err error)

Reads in vendor default credentials based on given vendor.

func (*Params) Load

func (p *Params) Load(cfgFile string)

Config params constructor

Jump to

Keyboard shortcuts

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