Documentation ¶
Index ¶
- func SplitMultiDocumentYAML(multidoc string) (documents []string, err error)
- type Manifest
- func (m *Manifest) AsYAML() (string, error)
- func (m *Manifest) GetAPIVersion() string
- func (m *Manifest) GetKind() string
- func (m *Manifest) GetName() string
- func (m *Manifest) GetNamespace() string
- func (m *Manifest) GetSelfLink() string
- func (m *Manifest) GetUID() string
- func (m *Manifest) HasNamespace() bool
- func (m *Manifest) SetNamespace(namespace string)
- func (m *Manifest) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitMultiDocumentYAML ¶
Types ¶
type Manifest ¶
type Manifest struct {
Raw *meta_v1_unstruct.Unstructured
}
func NewFromUnstructured ¶
func NewFromUnstructured(raw *meta_v1_unstruct.Unstructured) *Manifest
func ParseYAML ¶
ParseYAML parses a yaml string into an Manifest.
To make things play nice we need the JSON representation of the object as the `RawObj` 1. UnMarshal YAML into map 2. Marshal map into JSON 3. UnMarshal JSON into the Unstructured type so we get some K8s checking
func (*Manifest) AsYAML ¶
AsYAML will produce a yaml representation of the manifest. We do this by serializing to json and back again to ensure values and comments are cleansed
func (*Manifest) GetAPIVersion ¶
func (*Manifest) GetNamespace ¶
func (*Manifest) GetSelfLink ¶
func (*Manifest) HasNamespace ¶
func (*Manifest) SetNamespace ¶
Click to show internal directories.
Click to hide internal directories.