cache

package
v0.0.0-...-daf2a86 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockBlobCache

type BlockBlobCache struct {
	// contains filtered or unexported fields
}

func NewBlockBlobCache

func NewBlockBlobCache(bs cloud.BlobStore, dir string, cacheSize int64) (*BlockBlobCache, error)

func (*BlockBlobCache) Delete

func (c *BlockBlobCache) Delete(key string) error

func (*BlockBlobCache) Get

func (c *BlockBlobCache) Get(key string) (cloud.GetReader, error)

func (*BlockBlobCache) List

func (c *BlockBlobCache) List() ([]string, error)

func (*BlockBlobCache) Put

func (c *BlockBlobCache) Put(key string) (cloud.PutWriter, error)

func (*BlockBlobCache) Size

func (c *BlockBlobCache) Size(key string) (int64, error)

type OpenFileCache

type OpenFileCache struct {
	// contains filtered or unexported fields
}

func NewOpenFileCache

func NewOpenFileCache(maxEntries int) *OpenFileCache

func (*OpenFileCache) Open

func (c *OpenFileCache) Open(name string) (ReaderAtCloser, error)

func (*OpenFileCache) Remove

func (c *OpenFileCache) Remove(name string)

type ReaderAtCloser

type ReaderAtCloser interface {
	io.ReaderAt
	io.Closer
}

type StagedBlobUploader

type StagedBlobUploader struct {
	// contains filtered or unexported fields
}

func NewStagedBlobUploader

func NewStagedBlobUploader(bs cloud.BlobStore, dir string) (*StagedBlobUploader, error)

func (*StagedBlobUploader) Delete

func (u *StagedBlobUploader) Delete(key string) error

func (*StagedBlobUploader) Get

func (*StagedBlobUploader) List

func (u *StagedBlobUploader) List() ([]string, error)

func (*StagedBlobUploader) Put

func (*StagedBlobUploader) Size

func (u *StagedBlobUploader) Size(key string) (int64, error)

Jump to

Keyboard shortcuts

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