Documentation
¶
Index ¶
- func GetReader(url, token string) (io.ReadCloser, http.Header, error)
- func IsDirEmpty(path string) (bool, error)
- func Untar(dst string, r io.Reader) (err error)
- type HTTPError
- type ManifestCache
- func (c *ManifestCache) Expire(id string)
- func (c *ManifestCache) ExpiryWithJitter() time.Duration
- func (c *ManifestCache) Export() map[string]persist.ManifestRecord
- func (c *ManifestCache) Fetch(svc *console.ServiceDeploymentForAgent) (string, error)
- func (c *ManifestCache) Import(items map[string]persist.ManifestRecord)
- func (c *ManifestCache) Wipe()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDirEmpty ¶
Types ¶
type ManifestCache ¶
type ManifestCache struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(expiry time.Duration, token, consoleURL, cacheDir string) *ManifestCache
func (*ManifestCache) Expire ¶
func (c *ManifestCache) Expire(id string)
func (*ManifestCache) ExpiryWithJitter ¶
func (c *ManifestCache) ExpiryWithJitter() time.Duration
func (*ManifestCache) Export ¶ added in v0.6.59
func (c *ManifestCache) Export() map[string]persist.ManifestRecord
func (*ManifestCache) Fetch ¶
func (c *ManifestCache) Fetch(svc *console.ServiceDeploymentForAgent) (string, error)
func (*ManifestCache) Import ¶ added in v0.6.59
func (c *ManifestCache) Import(items map[string]persist.ManifestRecord)
func (*ManifestCache) Wipe ¶
func (c *ManifestCache) Wipe()
Click to show internal directories.
Click to hide internal directories.