Documentation ¶
Index ¶
- Variables
- func DefaultingNamespace(u *unstructured.Unstructured) string
- func GVR(u *unstructured.Unstructured) schema.GroupVersionResource
- func LoadTextTemplate(o Object, variables variables.Variables) ([]unstructured.Unstructured, error)
- func NestedField(o interface{}, fields ...string) (interface{}, error)
- func ToUnstructured(o []byte) ([]unstructured.Unstructured, error)
- type Object
Constants ¶
This section is empty.
Variables ¶
View Source
var CAPICluster = Object{Text: templates.Cluster}
View Source
var ControlPlane = []Object{ {Text: templates.OCIManagedControlPlane}, }
View Source
var Workers = []Object{ {Text: templates.MachinePool}, {Text: templates.OCIManagedMachinePool}, }
Functions ¶
func DefaultingNamespace ¶
func DefaultingNamespace(u *unstructured.Unstructured) string
func GVR ¶
func GVR(u *unstructured.Unstructured) schema.GroupVersionResource
func LoadTextTemplate ¶
func LoadTextTemplate(o Object, variables variables.Variables) ([]unstructured.Unstructured, error)
func NestedField ¶
func ToUnstructured ¶
func ToUnstructured(o []byte) ([]unstructured.Unstructured, error)
Types ¶
type Object ¶
func CreateObjects ¶
func CreateObjects() []Object
func UpdateObjects ¶
func UpdateObjects() []Object
Click to show internal directories.
Click to hide internal directories.