Documentation
¶
Overview ¶
Package cache contains common functions and names for test caching.
Index ¶
Constants ¶
View Source
const ( // Name is the top-level cache directory name. Name = `clair-testing` // Layer is the layer cache directory name. Layer = `layer` )
Variables ¶
This section is empty.
Functions ¶
func CheckedDirectory ¶
CheckedDirectory constructs a local filesystem path by joining additional path segments "p" to the top-level cache directory.
Additionally, it attempts to create all needed directories to be able to create files under the returned path.
func Path ¶
Path constructs a local filesystem path by joining additional path segments "p" to the top-level cache directory.
Only reports an error if os.UserCacheDir reports an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.