reboot

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRebooter

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

HTTPRebooter reboots one of more nodes calling the Reboot API via the provided http.Client.

func NewHTTPRebooter

func NewHTTPRebooter(c *http.Client, baseURL, username, password string) *HTTPRebooter

NewHTTPRebooter returns a HTTPRebooter with the provided fields.

func (*HTTPRebooter) Many

func (r *HTTPRebooter) Many(toReboot []node.Node) map[string]error

Many reboots an array of machines and returns a map of machineName -> error for each element for which the rebootMany failed.

Jump to

Keyboard shortcuts

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