manifest

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

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 ListFromYamlDocs

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

func MustFromYAML

func MustFromYAML(yamlOrJson string) Manifest

func New

func New(apiVersion, kind, name string) Manifest

func NewFromYAML

func NewFromYAML(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) Unstructured

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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