Documentation ¶
Index ¶
Constants ¶
View Source
const FormatJSON = "json"
View Source
const (
FormatPogrebV1 = "pogreb.v1"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { registry.GRPCQuery CheckIntegrity(ctx context.Context, fbc fs.FS) error Build(ctx context.Context, fbc fs.FS) error Load(ctc context.Context) error Close() error }
func New ¶
func New(cacheDir string, cacheOpts ...CacheOption) (Cache, error)
New creates a new Cache. It chooses a cache implementation based on the files it finds in the cache directory, with a preference for the latest iteration of the cache implementation. If the cache directory is non-empty and a supported cache format is not found, an error is returned.
type CacheOption ¶ added in v1.41.0
type CacheOption func(*CacheOptions)
func WithFormat ¶ added in v1.47.0
func WithFormat(format string) CacheOption
func WithLog ¶ added in v1.41.0
func WithLog(log *logrus.Entry) CacheOption
type CacheOptions ¶ added in v1.41.0
Click to show internal directories.
Click to hide internal directories.