41 lines
821 B
Go
41 lines
821 B
Go
//go:build !solution
|
|
// +build !solution
|
|
|
|
package filecache
|
|
|
|
import (
|
|
"errors"
|
|
"io"
|
|
|
|
"gitlab.com/slon/shad-go/distbuild/pkg/build"
|
|
)
|
|
|
|
var (
|
|
ErrNotFound = errors.New("file not found")
|
|
ErrExists = errors.New("file exists")
|
|
ErrWriteLocked = errors.New("file is locked for write")
|
|
ErrReadLocked = errors.New("file is locked for read")
|
|
)
|
|
|
|
type Cache struct {
|
|
}
|
|
|
|
func New(rootDir string) (*Cache, error) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (c *Cache) Range(fileFn func(file build.ID) error) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (c *Cache) Remove(file build.ID) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (c *Cache) Write(file build.ID) (w io.WriteCloser, abort func() error, err error) {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (c *Cache) Get(file build.ID) (path string, unlock func(), err error) {
|
|
panic("implement me")
|
|
}
|