kubeparser

package
v0.0.131 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultipleFromReader

func MultipleFromReader(description string, r io.Reader) ([]kubedef.Apply, error)

Types

type ObjHeader

type ObjHeader struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
}

func (ObjHeader) GetName

func (obj ObjHeader) GetName() string

func (ObjHeader) GetNamespace

func (obj ObjHeader) GetNamespace() string

func (ObjHeader) GetObjectKind

func (obj ObjHeader) GetObjectKind() schema.ObjectKind

type Parsed

type Parsed struct {
	Kind      string
	Name      string
	Namespace string
	Resource  runtime.Object
}

func Single

func Single(contents []byte) (Parsed, error)

Jump to

Keyboard shortcuts

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