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.OCNEControlPlane}, {Text: templates.OCIControlPlaneMachineTemplate}, }
View Source
var Workers = []Object{ {Text: templates.MachineDeployment}, {Text: templates.OCIMachineTemplate}, }
Functions ¶
func DefaultingNamespace ¶ added in v0.20.0
func DefaultingNamespace(u *unstructured.Unstructured) string
func GVR ¶ added in v0.2.0
func GVR(u *unstructured.Unstructured) schema.GroupVersionResource
func LoadTextTemplate ¶ added in v0.22.0
func LoadTextTemplate(o Object, variables variables.Variables) ([]unstructured.Unstructured, error)
func NestedField ¶
func ToUnstructured ¶ added in v0.22.0
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.