Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyNamespace ¶
ApplyNamespace applies the given namespaces to the resources in the yamlText.
func JoinString ¶
JoinString joins the given yaml parts into a single multipart document.
func SplitString ¶
SplitString splits the given yaml doc if it's multipart document.
Types ¶
type Descriptor ¶
type Descriptor struct { Kind string `json:"kind"` Group string `json:"group"` APIVersion string `json:"apiVersion"` Metadata Metadata `json:"metadata"` }
Descriptor a descriptor for a kubernetes resource.
func ParseDescriptor ¶
func ParseDescriptor(yamlText string) (Descriptor, error)
ParseDescriptor parses the given single-part yaml and generates the descriptor.
Click to show internal directories.
Click to hide internal directories.