Documentation
¶
Index ¶
- type Cache
- func (c *Cache) BlobWriter(ctx context.Context, blob string, append bool) (sss.FileWriter, error)
- func (c *Cache) CleanCacheStatBlob(blob string)
- func (c *Cache) CleanCacheStatManifest(manifest string)
- func (c *Cache) CleanCacheStatManifestTag(manifest string)
- func (c *Cache) Delete(ctx context.Context, cachePath string) error
- func (c *Cache) DeleteBlob(ctx context.Context, blob string) error
- func (c *Cache) Get(ctx context.Context, cachePath string) (io.ReadCloser, error)
- func (c *Cache) GetBlob(ctx context.Context, blob string) (io.ReadCloser, error)
- func (c *Cache) GetBlobContent(ctx context.Context, blob string) ([]byte, error)
- func (c *Cache) GetBlobWithOffset(ctx context.Context, blob string, offset int64) (io.ReadCloser, error)
- func (c *Cache) GetContent(ctx context.Context, cachePath string) ([]byte, error)
- func (c *Cache) GetManifestContent(ctx context.Context, host, image, tagOrBlob string) (manifest *Manifest, err error)
- func (c *Cache) GetWithOffset(ctx context.Context, cachePath string, offset int64) (io.ReadCloser, error)
- func (c *Cache) List(ctx context.Context, cachePath string) ([]string, error)
- func (c *Cache) ListTags(ctx context.Context, host, image string) ([]string, error)
- func (c *Cache) Put(ctx context.Context, cachePath string, r io.Reader) (int64, error)
- func (c *Cache) PutBlob(ctx context.Context, blob string, r io.Reader) (int64, error)
- func (c *Cache) PutBlobContent(ctx context.Context, blob string, content []byte) (int64, error)
- func (c *Cache) PutContent(ctx context.Context, cachePath string, content []byte) error
- func (c *Cache) PutManifestContent(ctx context.Context, host, image, tagOrBlob string, content []byte) error
- func (c *Cache) PutWithHash(ctx context.Context, cachePath string, r io.Reader, cacheHash string, ...) (int64, error)
- func (c *Cache) Redirect(ctx context.Context, blobPath string, referer string) (string, error)
- func (c *Cache) RedirectBlob(ctx context.Context, blob string, referer string) (string, error)
- func (c *Cache) RelinkManifest(ctx context.Context, host, image, tag string, blob string) error
- func (c *Cache) Stat(ctx context.Context, cachePath string) (sss.FileInfo, error)
- func (c *Cache) StatBlob(ctx context.Context, blob string) (sss.FileInfo, error)
- func (c *Cache) Walk(ctx context.Context, cachePath string, fun fs.WalkDirFunc) error
- func (c *Cache) WalkTags(ctx context.Context, host, image string, tagCb func(tag string) bool) error
- func (c *Cache) Writer(ctx context.Context, cachePath string, append bool) (sss.FileWriter, error)
- type Manifest
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) BlobWriter ¶
func (*Cache) CleanCacheStatBlob ¶ added in v0.0.39
func (*Cache) CleanCacheStatManifest ¶ added in v0.0.39
func (*Cache) CleanCacheStatManifestTag ¶ added in v0.0.31
func (*Cache) GetBlobContent ¶
func (*Cache) GetBlobWithOffset ¶
func (*Cache) GetContent ¶
func (*Cache) GetManifestContent ¶
func (*Cache) GetWithOffset ¶
func (*Cache) PutBlobContent ¶
func (*Cache) PutContent ¶
func (*Cache) PutManifestContent ¶
func (*Cache) PutWithHash ¶
func (*Cache) RedirectBlob ¶
func (*Cache) RelinkManifest ¶
type Option ¶
type Option func(c *Cache)
func WithBlobCache ¶ added in v0.0.31
func WithLinkExpires ¶
func WithManifestCache ¶ added in v0.0.31
func WithRedirectLinks ¶
func WithSignLink ¶
func WithStorageDriver ¶
Click to show internal directories.
Click to hide internal directories.