类 ChartRepository.Index
- java.lang.Object
-
- org.microbean.helm.chart.repository.ChartRepository.Index
-
- 封闭类:
- ChartRepository
@Experimental public static final class ChartRepository.Index extends Object
A class representing certain of the contents of a Helm chart repository'sindex.yamlfile.- 作者:
- Laird Nelson
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classChartRepository.Index.EntryAn entry in a Helm chart repository index.
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<String,SortedSet<ChartRepository.Index.Entry>>getEntries()Returns a non-null, immutableMapofSortedSets ofChartRepository.Index.Entryobjects, indexed by the name of the Helm chart they describe.ChartRepository.Index.EntrygetEntry(String name, String versionString)Returns anChartRepository.Index.Entryidentified by the suppliednameandversion, if there is one.static ChartRepository.IndexloadFrom(InputStream stream)Creates a newChartRepository.Indexwhose contents are sourced from the Helm chart repository index YAML contents represented by the suppliedInputStream.static ChartRepository.IndexloadFrom(Path path)Creates a newChartRepository.Indexwhose contents are sourced from the YAML file located at the suppliedPath.@Experimental ChartRepository.Indexmerge(ChartRepository.Index other)Creates and returns a newChartRepository.Indexconsisting of all thisChartRepository.Indexinstance's entries augmented with those entries from the suppliedChartRepository.Indexthat thisChartRepository.Indexinstance did not already contain.
-
-
-
方法详细资料
-
merge
@Experimental public final @Experimental ChartRepository.Index merge(ChartRepository.Index other)
Creates and returns a newChartRepository.Indexconsisting of all thisChartRepository.Indexinstance's entries augmented with those entries from the suppliedChartRepository.Indexthat thisChartRepository.Indexinstance did not already contain.- 参数:
other- theChartRepository.Indexto merge in; may benull- 返回:
- a new
ChartRepository.Indexreflecting the merge operation
-
getEntries
public final Map<String,SortedSet<ChartRepository.Index.Entry>> getEntries()
Returns a non-null, immutableMapofSortedSets ofChartRepository.Index.Entryobjects, indexed by the name of the Helm chart they describe.- 返回:
- a non-
null, immutableMapofSortedSets ofChartRepository.Index.Entryobjects, indexed by the name of the Helm chart they describe
-
getEntry
public final ChartRepository.Index.Entry getEntry(String name, String versionString)
Returns anChartRepository.Index.Entryidentified by the suppliednameandversion, if there is one.This method may return
null.- 参数:
name- the name of the Helm chart whose relatedChartRepository.Index.Entryis desired; must not benullversionString- the version of the Helm chart whose relatedChartRepository.Index.Entryis desired; may benullin which case "latest" semantics are implied- 返回:
- an
ChartRepository.Index.Entry, ornull - 抛出:
NullPointerException- ifnameisnull
-
loadFrom
public static final ChartRepository.Index loadFrom(Path path) throws IOException, URISyntaxException
Creates a newChartRepository.Indexwhose contents are sourced from the YAML file located at the suppliedPath.This method never returns
null.- 参数:
path- thePathto a YAML file whose contents are those of a Helm chart repository index; must not benull- 返回:
- a new
ChartRepository.Index; nevernull - 抛出:
IOException- if there was a problem reading the fileURISyntaxException- if one of the URIs in the file was invalidNullPointerException- ifpathisnull- 另请参阅:
loadFrom(InputStream)
-
loadFrom
public static final ChartRepository.Index loadFrom(InputStream stream) throws IOException, URISyntaxException
Creates a newChartRepository.Indexwhose contents are sourced from the Helm chart repository index YAML contents represented by the suppliedInputStream.This method never returns
null.- 参数:
stream- theInputStreamto a YAML file whose contents are those of a Helm chart repository index; must not benull- 返回:
- a new
ChartRepository.Index; nevernull - 抛出:
IOException- if there was a problem reading the fileURISyntaxException- if one of the URIs in the file was invalidNullPointerException- ifpathisnull
-
-