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: 8 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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