manifests

package
v0.6.64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReader

func GetReader(url, token string) (io.ReadCloser, http.Header, error)

func IsDirEmpty

func IsDirEmpty(path string) (bool, error)

func Untar

func Untar(dst string, r io.Reader) (err error)

Types

type HTTPError

type HTTPError struct {
	StatusCode int
	URL        string
	Msg        string
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

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 (*ManifestCache) Import added in v0.6.59

func (c *ManifestCache) Import(items map[string]persist.ManifestRecord)

func (*ManifestCache) Wipe

func (c *ManifestCache) Wipe()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL