Files
pack/core/plan/cache.go
T
2025-01-27 22:34:36 -05:00

22 lines
544 B
Go

package plan
const (
CacheTypeShared = "shared"
CacheTypeLocked = "locked"
)
type Cache struct {
// The directory to cache
Directory string `json:"directory,omitempty" jsonschema:"description=The directory to cache"`
// The type of cache (either "shared" or "locked")
Type string `json:"type,omitempty" jsonschema:"enum=shared,enum=locked,default=shared,description=The type of cache (either 'shared' or 'locked')"`
}
func NewCache(directory string) *Cache {
return &Cache{
Directory: directory,
Type: CacheTypeShared,
}
}