@Experimental public static final class ChartRepository.Index extends Object
index.yaml
file.Modifier and Type | Class and Description |
---|---|
static class |
ChartRepository.Index.Entry
An entry in a Helm
chart repository index.
|
Modifier and Type | Method and Description |
---|---|
Map<String,SortedSet<ChartRepository.Index.Entry>> |
getEntries()
Returns a non-
null , immutable Map of
SortedSet s of ChartRepository.Index.Entry objects, indexed by the
name of the Helm chart they describe. |
ChartRepository.Index.Entry |
getEntry(String name,
String versionString)
Returns an
ChartRepository.Index.Entry identified by the supplied name and version , if there is one. |
static ChartRepository.Index |
loadFrom(InputStream stream)
Creates a new
ChartRepository.Index whose contents are sourced from the
Helm
chart repository index YAML contents represented by the
supplied InputStream . |
static ChartRepository.Index |
loadFrom(Path path)
Creates a new
ChartRepository.Index whose contents are sourced from the
YAML file located at the supplied Path . |
@Experimental ChartRepository.Index |
merge(ChartRepository.Index other)
Creates and returns a new
ChartRepository.Index consisting of all this
ChartRepository.Index instance's entries
augmented with those entries from the supplied ChartRepository.Index
that this ChartRepository.Index instance did not already contain. |
@Experimental public final @Experimental ChartRepository.Index merge(ChartRepository.Index other)
ChartRepository.Index
consisting of all this
ChartRepository.Index
instance's entries
augmented with those entries from the supplied ChartRepository.Index
that this ChartRepository.Index
instance did not already contain.other
- the ChartRepository.Index
to merge in; may be null
ChartRepository.Index
reflecting the merge operationpublic final Map<String,SortedSet<ChartRepository.Index.Entry>> getEntries()
null
, immutable Map
of
SortedSet
s of ChartRepository.Index.Entry
objects, indexed by the
name of the Helm chart they describe.null
, immutable Map
of
SortedSet
s of ChartRepository.Index.Entry
objects, indexed by the
name of the Helm chart they describepublic final ChartRepository.Index.Entry getEntry(String name, String versionString)
ChartRepository.Index.Entry
identified by the supplied name
and version
, if there is one.
This method may return null
.
name
- the name of the Helm chart whose related ChartRepository.Index.Entry
is desired; must not be null
versionString
- the version of the Helm chart whose
related ChartRepository.Index.Entry
is desired; may be null
in which
case "latest" semantics are impliedChartRepository.Index.Entry
, or null
NullPointerException
- if name
is null
public static final ChartRepository.Index loadFrom(Path path) throws IOException, URISyntaxException
ChartRepository.Index
whose contents are sourced from the
YAML file located at the supplied Path
.
This method never returns null
.
path
- the Path
to a YAML file whose contents are
those of a Helm
chart repository index; must not be null
ChartRepository.Index
; never null
IOException
- if there was a problem reading the fileURISyntaxException
- if one of the URIs in the file
was invalidNullPointerException
- if path
is null
loadFrom(InputStream)
public static final ChartRepository.Index loadFrom(InputStream stream) throws IOException, URISyntaxException
ChartRepository.Index
whose contents are sourced from the
Helm
chart repository index YAML contents represented by the
supplied InputStream
.
This method never returns null
.
stream
- the InputStream
to a YAML file whose contents are
those of a Helm
chart repository index; must not be null
ChartRepository.Index
; never null
IOException
- if there was a problem reading the fileURISyntaxException
- if one of the URIs in the file
was invalidNullPointerException
- if path
is null
Copyright © 2017–2018, microBean. All rights reserved.