physicalmachine

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectPhysicalMachines

func SelectPhysicalMachines(ctx context.Context, c client.Client, r client.Reader,
	selector v1alpha1.PhysicalMachineSelectorSpec,
	clusterScoped bool, targetNamespace string, enableFilterNamespace bool) ([]v1alpha1.PhysicalMachine, error)

Types

type Params

type Params struct {
	fx.In

	Client client.Client
	Reader client.Reader `name:"no-cache"`
}

type PhysicalMachine

type PhysicalMachine struct {
	v1alpha1.PhysicalMachine
	Address string
}

func SelectAndFilterPhysicalMachines

func SelectAndFilterPhysicalMachines(ctx context.Context, c client.Client, r client.Reader, spec *v1alpha1.PhysicalMachineSelector, clusterScoped bool, targetNamespace string, enableFilterNamespace bool) ([]*PhysicalMachine, error)

SelectAndFilterPhysicalMachines returns the list of physical machines that filtered by selector and SelectorMode

func (*PhysicalMachine) Id

func (pm *PhysicalMachine) Id() string

type SelectImpl

type SelectImpl struct {
	generic.Option
	// contains filtered or unexported fields
}

func New

func New(params Params) *SelectImpl

func (*SelectImpl) Select

func (impl *SelectImpl) Select(ctx context.Context, physicalMachineSelector *v1alpha1.PhysicalMachineSelector) ([]*PhysicalMachine, error)

Jump to

Keyboard shortcuts

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