lib

package
v0.0.0-...-a45fa12 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	// OriginalFilename is set to the filename this manifest was loaded from.
	// It is not guaranteed to be set or be unique, but we will set it when
	// loading from disk to provide better debuggability.
	OriginalFilename string

	Raw []byte
	GVK schema.GroupVersionKind

	Obj *unstructured.Unstructured
}

Manifest stores Kubernetes object in Raw from a file. It stores the GroupVersionKind for the manifest.

func ManifestsFromFiles

func ManifestsFromFiles(files []string) ([]Manifest, error)

ManifestsFromFiles reads files and returns Manifests in the same order. files should be list of absolute paths for the manifests on disk.

func ParseManifests

func ParseManifests(r io.Reader) ([]Manifest, error)

ParseManifests parses a YAML or JSON document that may contain one or more kubernetes resources.

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