Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCannotCacheDownload = fmt.Errorf("cannot cache download") ErrCannotCheckLocalCache = fmt.Errorf("cannot check local cache") ErrCannotGetKeyFromURL = fmt.Errorf("cannot get key from url") ErrCannotCopyCacheToDestination = fmt.Errorf("cannot copy cache to destination") ErrCannotClearCache = errors.New("cannot clear cache") URLPrefixRegexp = regexp.MustCompile(`^[A-z0-9]+::`) )
View Source
var ( ErrInvalidIP = fmt.Errorf("invalid ip") ErrIPNetIsNil = fmt.Errorf("ipnet is nil") )
View Source
var ErrDNSQueryFailed = errors.New("DNS query failed")
View Source
var ErrDownloadOptionsExhausted = errors.New("downloading options exhausted")
Functions ¶
Types ¶
type Client ¶
func WithLocalCache ¶ added in v0.27.3
type GoGetterClient ¶
type GoGetterClient struct {
// contains filtered or unexported fields
}
func NewGoGetterClient ¶
func NewGoGetterClient() *GoGetterClient
func (*GoGetterClient) Clear ¶ added in v0.29.1
func (*GoGetterClient) Clear() error
func (*GoGetterClient) ClearItem ¶ added in v0.29.1
func (*GoGetterClient) ClearItem(_ string) error
func (*GoGetterClient) Download ¶
func (g *GoGetterClient) Download(src, dst string) error
func (*GoGetterClient) URLHasForcedProtocol ¶
func (g *GoGetterClient) URLHasForcedProtocol(url string) bool
URLHasForcedProtocol checks if the url has a forced protocol as described in hashicorp/go-getter.
type LocalCacheClientDecorator ¶ added in v0.27.3
type LocalCacheClientDecorator struct {
// contains filtered or unexported fields
}
func (*LocalCacheClientDecorator) Clear ¶ added in v0.29.1
func (d *LocalCacheClientDecorator) Clear() error
func (*LocalCacheClientDecorator) ClearItem ¶ added in v0.29.1
func (d *LocalCacheClientDecorator) ClearItem(src string) error
func (*LocalCacheClientDecorator) Download ¶ added in v0.27.3
func (d *LocalCacheClientDecorator) Download(src, dst string) error
Click to show internal directories.
Click to hide internal directories.