package
3.13.6+incompatible
Repository: https://github.com/digitalrebar/provision.git
Documentation: pkg.go.dev

# Functions

AndItems retuens a TestFunc that returns true if all the passed-in TestFuncs also return true.
DecodeYaml is a helper function for dealing with user input -- when accepting input from the user, we want to treat both YAML and JSON as first-class citizens.
EqualItem creates a test function to see if a value in the passed interface is equal.
No description provided by the author
GenPatch generates a JSON patch that will transform source into target.
NewTaskRunner creates a new TaskRunner for the passed-in machine.
NotItems returns a TestFunc that returns the opposite of the passed-in TestFunc.
OrItems returns a TestFunc that returns true if any of the passed-in TestFuncs return true.
Pretty marshals object acciording to the the fmt, in whatever passed for "pretty" according to fmt.
TokenSession creates a new api.Client that will use the passed-in Token for authentication.
UserSession creates a new api.Client that can act on behalf of a user.
UserSessionToken allows for the token conversion turned off.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIPATH is the base path for all API endpoints that digitalrebar provision provides.

# Structs

Client wraps *http.Client to include our authentication routines and routines for handling some of the biolerplate CRUD operations against digitalrebar provision.
EventStream receives events from the digitalrebar provider.
MachineAgent implements a new machine agent structured as a finite state machine.
R encapsulates a single Request/Response round trip.
RecievedEvent contains an event received from the digitalrebar provision server along with any errors that occurred while receiving the event.
TaskRunner is responsible for expanding templates and running scripts for a single task.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
TestFunc is a function type used to test if an item matches some sort of condition.