machinehandler

package
v0.0.0-...-d3b6e4b Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrApiGroupNotFound = errors.New("failed to find API group")
)

Functions

This section is empty.

Types

type Machine

type Machine struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Status            MachineStatus `json:"status,omitempty"`
}

func FindMatchingMachineFromInternalDNS

func FindMatchingMachineFromInternalDNS(machines []Machine, nodeName string) (*Machine, error)

FindMatchingMachineFromInternalDNS find matching machine for node using internal DNS

func FindMatchingMachineFromNodeRef

func FindMatchingMachineFromNodeRef(machines []Machine, nodeName string) (*Machine, error)

FindMatchingMachineFromNodeRef find matching machine for node using node ref

type MachineHandler

type MachineHandler struct {
	Client    client.Client
	Config    *rest.Config
	Ctx       context.Context
	Namespace string
}

func (*MachineHandler) ListMachines

func (m *MachineHandler) ListMachines(apiGroupVersion schema.GroupVersion) ([]Machine, error)

ListMachines list all machines using given client

type MachineStatus

type MachineStatus struct {
	NodeRef   *corev1.ObjectReference `json:"nodeRef,omitempty"`
	Addresses []corev1.NodeAddress    `json:"addresses,omitempty"`
}

Jump to

Keyboard shortcuts

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