cachestore

package
v0.0.0-...-10736ee Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package cachestore provides the interface CacheStore. It's in its own package to break a dependency loop.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheStore

type CacheStore interface {
	// GetActionResult gets the action result of the action identified by the digest.
	GetActionResult(context.Context, digest.Digest) (*rpb.ActionResult, error)
	// SetActionResult gets the action result of the action identified by the digest.
	// If a failing action is provided, caching will be skipped.
	SetActionResult(context.Context, digest.Digest, *rpb.ActionResult) error

	// GetContent gets the content of the file identified by the digest.
	GetContent(context.Context, digest.Digest, string) ([]byte, error)
	// SetContent sets the content of the file identified by the digest.
	SetContent(context.Context, digest.Digest, string, []byte) error
	// HasContent checks whether content of the digest exists in the cache.
	HasContent(context.Context, digest.Digest) bool

	// Source returns digest source for the name identified by the digest.
	Source(context.Context, digest.Digest, string) digest.Source
}

CacheStore is an interface of cache store.

Jump to

Keyboard shortcuts

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