public class CacheConfiguration extends Object
| Modifier and Type | Method and Description |
|---|---|
static CacheConfiguration |
forDefaultUserLevelCacheDirectory()
The cache is at the default user-level cache directory.
|
static CacheConfiguration |
forPath(Path cacheDirectory)
The cache is at an arbitrary path.
|
Path |
getCacheDirectory()
Gets the path to the cache directory.
|
static CacheConfiguration |
makeTemporary()
The cache is a temporary directory that is deleted afterwards.
|
boolean |
shouldEnsureOwnership()
Gets whether or not the cache directory should be checked for write safety.
|
public static CacheConfiguration forPath(Path cacheDirectory)
cacheDirectory - the path to the cache directory. This must be a non-existent directory or
a previously-used cache directory.CacheConfigurationpublic static CacheConfiguration makeTemporary() throws CacheDirectoryCreationException
CacheConfigurationCacheDirectoryCreationException - if a temporary directory cannot be createdpublic static CacheConfiguration forDefaultUserLevelCacheDirectory()
[user cache home]/google-cloud-tools-java/jib.CacheConfigurationpublic Path getCacheDirectory()
public boolean shouldEnsureOwnership()
true if ownership by Jib should be checkedCopyright © 2018. All rights reserved.