Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
Constructor is the function for every getter which creates a specific instance according to the configuration
type Getter ¶
type Getter interface {
// Get file content by url string
Get(url string, options ...Option) (*bytes.Buffer, error)
}
Getter gets stuff
func NewHTTPGetter ¶
NewHTTPGetter constructs a valid http/https client as a Getter
type HTTPGetter ¶
type HTTPGetter struct {
// contains filtered or unexported fields
}
HTTPGetter is the default HTTP(/S) backend handler
type Option ¶
type Option func(*options)
Option allows specifying various settings configurable by the user for overriding the defaults used when performing Get operations with the Getter.
func WithContextx ¶
func WithRegistryClient ¶
func WithRegistryClient(client *sdkman.RegistryService) Option
func WithTagName ¶
type Provider ¶
type Provider struct {
Schemes []string
New Constructor
}
Click to show internal directories.
Click to hide internal directories.