manifest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 4 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 map[string]interface{}

func GetManifestListFromYamlDocuments

func GetManifestListFromYamlDocuments(rawManifests string) ([]Manifest, error)

func MustManifestFromYaml

func MustManifestFromYaml(yamlOrJson string) Manifest

func NewManifest

func NewManifest(apiVersion, kind, name string) Manifest

func NewManifestFromYaml

func NewManifestFromYaml(yamlOrJson string) (Manifest, error)

func (Manifest) ApiVersion

func (m Manifest) ApiVersion() string

func (Manifest) HasBasicFields

func (m Manifest) HasBasicFields() bool

HasBasicFields is true if Template has version, kind and metadata.name fields

func (Manifest) Id

func (m Manifest) Id() string

func (Manifest) Kind

func (m Manifest) Kind() string

func (Manifest) Metadata

func (m Manifest) Metadata() map[string]interface{}

func (Manifest) Name

func (m Manifest) Name() string

func (Manifest) Namespace

func (m Manifest) Namespace(defaultNs string) string

func (Manifest) SetNamespace

func (m Manifest) SetNamespace(ns string)

func (Manifest) ToUnstructured

func (m Manifest) ToUnstructured() *unstructured.Unstructured

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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