Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagRetriever ¶
FlagRetriever is an interface that force to have a Retrieve() function for different way of getting the config file.
func NewHTTPRetriever ¶
func NewHTTPRetriever(httpClient internal.HTTPClient, url string, method string, body string, header http.Header) FlagRetriever
NewHTTPRetriever return a new HTTPRetriever to get the file from an HTTP endpoint.
func NewLocalRetriever ¶
func NewLocalRetriever(path string) FlagRetriever
NewLocalRetriever is the retriever for local file.
func NewS3Retriever ¶
func NewS3Retriever(downloader s3manageriface.DownloaderAPI, bucket string, item string) FlagRetriever
NewS3Retriever return a new S3Retriever to get the file from S3.
Click to show internal directories.
Click to hide internal directories.