public class Manifests extends Object
FilePath into a list of
descriptive wrappers, Manifests.ManifestObject.| Modifier and Type | Class and Description |
|---|---|
static class |
Manifests.ManifestObject
ManifestObject wrapper that encapsulates an object spec loaded from a supplied manifest.
|
| Modifier and Type | Method and Description |
|---|---|
static Manifests |
fromFile(FilePath file)
Factory method for single
FilePath. |
static Manifests |
fromFileList(List<FilePath> files)
Factory method for list of
FilePath objects. |
List<Manifests.ManifestObject> |
getObjectManifests() |
List<Manifests.ManifestObject> |
getObjectManifestsOfKinds(Set<String> includedKinds)
Get the list of
Manifests.ManifestObject that match the given kind. |
void |
write()
Writes the contents of this
Manifests's objects back to their corresponding files. |
public static Manifests fromFile(FilePath file) throws IOException, InterruptedException
FilePath.file - The FilePath containing the manifests.Manifests object containing the individual manifests contained at the file
path.IOException - If an error occurred while loading the file.InterruptedException - If a threading error occurred while loading the file.public static Manifests fromFileList(List<FilePath> files) throws IOException, InterruptedException
FilePath objects.files - The list of FilePath objects containing the manifests.FilePath's.IOException - If an error occurred while loading the file.InterruptedException - If a threading error occurred while loading the file.public List<Manifests.ManifestObject> getObjectManifests()
Manifests.ManifestObject's that were loaded.public List<Manifests.ManifestObject> getObjectManifestsOfKinds(Set<String> includedKinds)
Manifests.ManifestObject that match the given kind.includedKinds - The kinds of Kubernetes objects to include in the list.public void write()
throws InterruptedException,
IOException
Manifests's objects back to their corresponding files.InterruptedException - If an error occurred while dumping to YAML.IOException - If an error occurred while writing the file contents.Copyright © 2016–2020 Google. All rights reserved.