Documentation
¶
Index ¶
- func NewHandler(service Service, cacheDir string, opts ServeOptions) http.Handler
- func ParseOlderDuration(value string) (time.Duration, error)
- func ValidRoot(root string) bool
- type CacheScanOptions
- type CleanOptions
- type CleanResult
- type CleanSkip
- type Entry
- type Kind
- type Manifest
- type ManifestCache
- type ManifestFile
- type ManifestServer
- type ServeOptions
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(service Service, cacheDir string, opts ServeOptions) http.Handler
Types ¶
type CacheScanOptions ¶
type CleanOptions ¶
type CleanResult ¶
type CleanResult struct {
CacheDir string
MatchedFiles int
RemovedFiles int
MatchedSize int64
RemovedSize int64
Skipped []CleanSkip
}
func (CleanResult) NeedsConfirmation ¶
func (r CleanResult) NeedsConfirmation() bool
type Manifest ¶
type Manifest struct {
Schema int `json:"schema"`
Server ManifestServer `json:"server"`
Cache ManifestCache `json:"cache"`
Files []ManifestFile `json:"files"`
}
type ManifestCache ¶
type ManifestFile ¶
type ManifestServer ¶
type ServeOptions ¶
type Service ¶
func (Service) Clean ¶
func (s Service) Clean(cacheDir string, opts CleanOptions) (CleanResult, error)
func (Service) PreviewClean ¶
func (s Service) PreviewClean(cacheDir string, opts CleanOptions) (CleanResult, error)
func (Service) ResolveCacheDir ¶
Click to show internal directories.
Click to hide internal directories.