shad-go/distbuild/pkg/filecache/filecache.go
2022-03-15 23:49:56 +03:00

40 lines
801 B
Go

//go: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")
}