Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTFTPTransport ¶ added in v0.4.0
func NewTFTPTransport() http.RoundTripper
NewTFTPTransport returns an http.RoundTripper capable of handling the TFTP protocol.
Types ¶
type Option ¶
type Option func(*downloadOptions)
Option configures the download options.
func WithErrorOnEmptyResponse ¶ added in v0.8.0
WithErrorOnEmptyResponse provides specific error to return when response is empty.
func WithErrorOnNotFound ¶ added in v0.8.0
WithErrorOnNotFound provides specific error to return when response has HTTP 404 error.
func WithFormat ¶
WithFormat specifies the source format. This ultimately will be a yaml but may be represented in different formats. For example, the config may be base64 encoded.
func WithHeaders ¶
WithHeaders specifies any http headers that are needed for downloading the config.
Click to show internal directories.
Click to hide internal directories.