lib

package
v3.11.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadManifests

func LoadManifests(p string) (map[string][]Manifest, error)

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) Object

func (m *Manifest) Object() metav1.Object

Object returns underlying metav1.Object

func (*Manifest) UnmarshalJSON

func (m *Manifest) UnmarshalJSON(in []byte) error

UnmarshalJSON unmarshals bytes of single kubernetes object to Manifest.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL