# Functions

ConvertURLsToStrings converts a slice of *url.URL to a slice of string.
DefaultHTTPClient returns a default http client.
IsHTTPURL returns true if a string is an HTTP URL.
LogAndReturnError logs the given error and status to stderr, and then returns them as the HTTP response.
LogHandlerEntry logs the start of the given handler handling the given request.
LogHandlerExit logs the response from the given handler with the given results.
LogHandlerExitWithJSON marshals the given object as JSON, writes it to the response body, returns the given status, and then logs the response.
LogHandlerExitWithText converts the given string to []byte, writes it to the response body, returns the given status, and then logs the response.
LogHandlerExitWithYAML marshals the given object as YAML, writes it to the response body, returns the given status, and then logs the response.
No description provided by the author
MarshalAndWriteJSON marshals the given object as JSON, writes it to the response body, and then returns the given status.
MarshalAndWriteYAML marshals the given object as YAML, writes it to the response body, and then returns the given status.
NewHandlerTester creates and returns a new HandlerTester for an http.Handler.
NewHTTPClient returns a new HTTPClient.
NewKubernetesKubectl creates a new Kubernetes kubectl wrapper.
NewServerTester creates and returns a new NewServerTester for an http.Handler.
NewSleeper returns a new Sleeper.
NewTemplateFromArchive creates and returns a new template whose content and imported files are read from the supplied archive.
NewTemplateFromFileNames creates and returns a new template whose content and imported files are read from the supplied file names.
NewTemplateFromReader creates and returns a new template whose content is read from the supplied reader.
NewTemplateFromRootTemplate creates and returns a new template whose content and imported files are constructed from reading the root template, parsing out the imports section and reading the imports from there.
NewTemplateFromType creates and returns a new template whose content is a YAML marshaled resource assembled from the supplied arguments.
ParseKubernetesObject parses a Kubernetes API object in YAML format.
TestHandlerWithURL creates a HandlerTester with the given handler, and tests it with the given HTTP method and URL string using HandlerTester.TestWithURL.
ToJSONOrError marshals the given object to JSON and returns either the resulting YAML or an error message.
ToYAMLOrError marshals the given object to YAML and returns either the resulting YAML or an error message.
TrimURLScheme removes the scheme, if any, from an URL.
WriteJSON writes the given bytes to the response body, sets the content type to "application/json; charset=UTF-8", and then returns the given status.
WriteResponse writes the given bytes to the response body, sets the content type to the given value, and then returns the given status.
WriteYAML writes the given bytes to the response body, sets the content type to "application/x-yaml; charset=UTF-8", and then returns the given status.

# Structs

KubernetesConfig defines the configuration options for talking to Kubernetes master.
KubernetesKubectl implements the interface for talking to Kubernetes by wrapping calls via kubectl.

# Interfaces

HTTPClient is a higher level HTTP client which takes a URL and returns the response body as a string, along with the resulting status code and any errors.
HTTPDoer is an interface for something that can 'Do' an http.Request and return an http.Response and error.
Kubernetes defines the interface for talking to Kubernetes.
Sleeper exposes a Sleep func which causes the current goroutine to sleep for the requested duration.

# Type aliases

A HandlerTester is a function that takes an HTTP method, an URL path, and a reader for a request body, creates a request from them, and serves it to the handler to which it was bound and returns a response recorder describing the outcome.
A ServerTester is a function that takes an HTTP method, an URL path, and a reader for a request body, creates a request from them, and serves it to a test server using the handler to which it was bound and returns the response.