Documentation
¶
Index ¶
- Variables
- func GetMachineByName(ctx context.Context, c client.Client, namespace, name string) (*machinev1.Machine, error)
- func GetOwnerMachine(ctx context.Context, c client.Client, obj metav1.ObjectMeta) (*machinev1.Machine, error)
- func MachineToInfrastructureMapFunc(gvk schema.GroupVersionKind) handler.ToRequestsFunc
- func UnstructuredUnmarshalField(obj *unstructured.Unstructured, v interface{}, fields ...string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnstructuredFieldNotFound = fmt.Errorf("field not found")
)
Functions ¶
func GetMachineByName ¶
func GetMachineByName(ctx context.Context, c client.Client, namespace, name string) (*machinev1.Machine, error)
GetMachineByName finds and return a Machine object using the specified params.
func GetOwnerMachine ¶
func GetOwnerMachine(ctx context.Context, c client.Client, obj metav1.ObjectMeta) (*machinev1.Machine, error)
GetOwnerMachine returns the Machine object owning the current resource.
func MachineToInfrastructureMapFunc ¶
func MachineToInfrastructureMapFunc(gvk schema.GroupVersionKind) handler.ToRequestsFunc
MachineToInfrastructureMapFunc returns a handler.ToRequestsFunc that watches for Machine events and returns reconciliation requests for an infrastructure provider object.
func UnstructuredUnmarshalField ¶
func UnstructuredUnmarshalField(obj *unstructured.Unstructured, v interface{}, fields ...string) error
UnstructuredUnmarshalField is a wrapper around json and unstructured objects to decode and copy a specific field value into an object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.