Files
pack/core/plan/cache.go
T
Michael BiancoandGitHub c3b8a45727 docs: minor docs and comments (#309)
* refactor: remove obvious comments

* docs: minor comments

* docs: make it clear that cache folders cannot be removed
2025-10-22 12:07:18 -06:00

19 lines
469 B
Go

package plan
const (
CacheTypeShared = "shared"
CacheTypeLocked = "locked"
)
type Cache struct {
Directory string `json:"directory,omitempty" jsonschema:"description=The directory to cache"`
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,
}
}