Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTFTPTransport ¶
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 WithEndpointFunc ¶
WithEndpointFunc provides a function that sets the endpoint of the download options.
func WithErrorOnEmptyResponse ¶
WithErrorOnEmptyResponse provides specific error to return when response is empty.
func WithErrorOnNotFound ¶
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.
func WithLowSrcPort ¶
func WithLowSrcPort() Option
WithLowSrcPort sets low source port to download the config.