package
4.8.0-alpha00
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.
No description provided by the author
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.
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 according to the the fmt, in whatever passed for "pretty" according to fmt.
PrettyColor marshals object according 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.
TokenSessionProxy 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.
UserSessionContext creates a new api.Client that can act on behalf of a user.
UserSessionToken allows for the token conversion turned off.
UserSessionTokenContext allows for the token conversion turned off.
UserSessionTokenProxy allows for the token conversion turned off and turn off local proxy.
UserSessionTokenProxy allows for the token conversion turned off and turn off local proxy, along with passing in a context.Context to allow for faster connect timeouts.
ValueInList parses a list string for matches with escapes.

# Constants

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 boilerplate CRUD operations against digitalrebar provision.
EventStream receives events from the digitalrebar provider.
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.

# Interfaces

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

# Type aliases

TestFunc is a function type used to test if an item matches some sort of condition.