Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadManifests ¶
LoadManifests loads manifest from disk.
root/
manifest0 manifest1 00_subdir0/ manifest0 manifest1 01_subdir1/ manifest0 manifest1
LoadManifests(<abs path to>/root): returns map 000: [manifest0, manifest1] 00_subdir0: [manifest0, manifest1] 01_subdir1: [manifest0, manifest1]
It skips dirs that have not files. It only reads dir `p` and its direct subdirs.
Types ¶
type Manifest ¶
type Manifest struct { Raw []byte GVK schema.GroupVersionKind // contains filtered or unexported fields }
Manifest stores Kubernetes object in Raw from a file. It stores the GroupVersionKind for the manifest.
func (*Manifest) UnmarshalJSON ¶
UnmarshalJSON unmarshals bytes of single kubernetes object to Manifest.
Click to show internal directories.
Click to hide internal directories.