@FunctionalInterface public static interface ChartRepositoryRepository.ChartRepositoryFactory
ChartRepository
instances.ChartRepository
Modifier and Type | Method and Description |
---|---|
ChartRepository |
createChartRepository(String name,
URI uri,
Path archiveCacheDirectory,
Path indexCacheDirectory,
Path cachedIndexPath)
Creates a new
ChartRepository and returns it. |
ChartRepository createChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath)
ChartRepository
and returns it.name
- the name of the chart repository; must not be
null
uri
- the URI
to the root of the chart repository;
must not be null
archiveCacheDirectory
- an absolute Path
representing a directory where Helm chart
archives may be stored; if null
then often a Path
beginning with the absolute directory represented by the value of
the helm.home
system property, or the value of the HELM_HOME
environment variable, appended with cache/archive
will be used insteadindexCacheDirectory
- an absolute Path
representing a directory that the supplied
cachedIndexPath
parameter value will be considered to be
relative to; will be ignored and hence may be null
if the supplied cachedIndexPath
parameter
value is absolutecachedIndexPath
- a Path
naming the file that will
store a copy of the chart repository's index.yaml
file;
if null
then a Path
relative to the absolute
directory represented by the value of the helm.home
system property, or the value of the HELM_HOME
environment variable, and bearing a name consisting of the
supplied name
suffixed with -index.yaml
will
often be used insteadnull
ChartRepository
NullPointerException
- if either name
or uri
is null
IllegalArgumentException
- if uri
is not absolute, or if there is no existing "Helm
home" directory, or if archiveCacheDirectory
is
non-null
and either empty or not Path.isAbsolute()ChartRepository.ChartRepository(String, URI, Path, Path,
Path)
Copyright © 2017–2018, microBean. All rights reserved.