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, } }