object

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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}
View Source
var ControlPlane = []Object{
	{Text: templates.OCIManagedControlPlane},
}

Functions

func DefaultingNamespace

func DefaultingNamespace(u *unstructured.Unstructured) string

func LoadTextTemplate

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

func NestedField

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

func ToUnstructured

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

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

func ToObjects

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