object

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: UPL-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CAPICluster = Object{Text: templates.Cluster}

Functions

func DefaultingNamespace added in v0.20.0

func DefaultingNamespace(u *unstructured.Unstructured) string

func GVR added in v0.2.0

func LoadTextTemplate added in v0.22.0

func LoadTextTemplate(o Object, variables variables.Variables) ([]unstructured.Unstructured, error)

func NestedField

func NestedField(o interface{}, fields ...string) (interface{}, error)

func ToUnstructured added in v0.22.0

func ToUnstructured(o []byte) ([]unstructured.Unstructured, error)

Types

type Object

type Object struct {
	Text         string
	LockedFields map[string]bool
}

func CreateObjects

func CreateObjects() []Object

func Modules added in v0.3.0

func Modules(v *variables.Variables) []Object

func ToObjects added in v0.22.0

func ToObjects(yamlDocuments []string) []Object

ToObjects adapts a slice of yaml documents into an object array

func UpdateObjects

func UpdateObjects() []Object

Jump to

Keyboard shortcuts

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