Documentation
¶
Index ¶
- func CheckBoltIteration(goRoutineBoltIteration int) (bool, error)
- func CloseDoneChan()
- func FilterPayload(p *gabs.Container, keys []string) (*gabs.Container, error)
- func GetBoltIteration() int
- func GetDoneChannel() chan bool
- func GetLocalIP() string
- func GetLocalIPs() ([]string, error)
- func GetResDoneChan() chan bool
- func IncrementBoltIteration()
- func InitBoltIteration()
- func InitDoneChan()
- func NilString(val interface{}, ifnil string) string
- func SignalResDoneChan()
- func StringInSlice(a string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBoltIteration ¶
CheckBoltIteration checks to see if the current boltIteration matches the go routines boltIteration, if not close the go routines
func FilterPayload ¶
FilterPayload recieves a gabs.Container and checks it against []keys, an array of strings. Any top-level children of the payload that aren't in []keys are removed. Returns the modified gabs.Container
func GetBoltIteration ¶
func GetBoltIteration() int
GetBoltIteration returns the current bolt iteration
func GetDoneChannel ¶
func GetDoneChannel() chan bool
GetDoneChannel returns the done channel, for use in other packages
func GetLocalIP ¶
func GetLocalIP() string
GetLocalIP returns the first non loopback local IP of the host.
func GetLocalIPs ¶
GetLocalIPs returns all local IPs of the host, including loopbacks.
func IncrementBoltIteration ¶
func IncrementBoltIteration()
IncrementBoltIteration increments boltIteration to hold the current number of bolt itterations for closing go routines on reboot
func InitBoltIteration ¶
func InitBoltIteration()
InitBoltIteration initializes the variable that holds the bolt engines current itterations
func NilString ¶
NilString takes in an interface as val, and if its nil, returns ifnil, otherwise returns the val cast as a string
func SignalResDoneChan ¶
func SignalResDoneChan()
SignalResDoneChan sends the done signal to continue the reboot process
func StringInSlice ¶
StringInSlice takes a string, and slice of strings, and checks if the slice contains it. Returns true if found
Types ¶
This section is empty.