Documentation ¶
Index ¶
- Constants
- type Backend
- func (b *Backend) AddUploadPart(repoKey string, id int, part s.CachePart) error
- func (b *Backend) CreateCache(repoKey, key, version string, scopes []s.Scope, backend string) (int, error)
- func (b *Backend) FinishCache(repoKey string, id int, path string) error
- func (b *Backend) Migrate() error
- func (b *Backend) SearchCache(repoKey, key, version string, scopes []s.Scope, restoreKeys []string) (s.Cache, error)
- func (b *Backend) Type() string
- func (b *Backend) ValidateUpload(repoKey string, id int, size int64) ([]s.CachePart, error)
Constants ¶
View Source
const ( SetCacheFinished = `UPDATE cache SET finished = TRUE, storage_path = $1 WHERE repository = $2 AND cache_id = $3;` SearchCacheExact = `` /* 170-byte string literal not displayed */ SearchCachePartial = `` /* 175-byte string literal not displayed */ InsertPart = `` /* 129-byte string literal not displayed */ GetAllParts = `` /* 136-byte string literal not displayed */ )
View Source
const InsertNewCache = `` /* 148-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewPostgresBackend ¶
func (*Backend) AddUploadPart ¶
func (*Backend) CreateCache ¶
func (*Backend) FinishCache ¶
func (*Backend) SearchCache ¶
Click to show internal directories.
Click to hide internal directories.