Documentation ¶
Index ¶
- type Cache
- 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) GetContent(ctx context.Context, cachePath string) ([]byte, error)
- func (c *Cache) GetManifestContent(ctx context.Context, host, image, tagOrBlob string) ([]byte, 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) (int64, string, 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, ip string) (string, error)
- func (c *Cache) RedirectBlob(ctx context.Context, blob string, referer string, ip string) (string, error)
- func (c *Cache) Stat(ctx context.Context, cachePath string) (storagedriver.FileInfo, error)
- func (c *Cache) StatBlob(ctx context.Context, blob string) (storagedriver.FileInfo, error)
- 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) GetBlobContent ¶
func (*Cache) GetContent ¶
func (*Cache) GetManifestContent ¶
func (*Cache) PutBlobContent ¶
func (*Cache) PutContent ¶
func (*Cache) PutManifestContent ¶
func (*Cache) PutWithHash ¶
func (*Cache) RedirectBlob ¶
type Option ¶
type Option func(c *Cache)
func WithLinkExpires ¶
func WithRedirectLinks ¶
func WithStorageDriver ¶
func WithStorageDriver(storageDriver storagedriver.StorageDriver) Option
Click to show internal directories.
Click to hide internal directories.