providers

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopySizeLabels

func CopySizeLabels(
	machineLabels, sizeLabels map[string]string,
) map[string]string

func NetworkRedundancy

func NetworkRedundancy(
	machineInterfaces []metalv1alpha4.Interface,
) string

func NetworkStatus

func NetworkStatus(
	domainMachine domain.Machine,
) metalv1alpha4.Network

func UnknownPortCount

func UnknownPortCount(machineInterfaces []metalv1alpha4.Interface) int

Types

type FakeServerExecutor

type FakeServerExecutor struct {
	// contains filtered or unexported fields
}

func NewFakeServerExecutor

func NewFakeServerExecutor(log logr.Logger) *FakeServerExecutor

func (*FakeServerExecutor) Enable

func (f *FakeServerExecutor) Enable(serverInfo domain.Server) error

type InventoryRepository

type InventoryRepository struct {
	// contains filtered or unexported fields
}

func NewInventoryRepository

func NewInventoryRepository(
	client ctrlclient.Client,
	domainEventPublisher events.DomainEventPublisher,
) *InventoryRepository

func (*InventoryRepository) ByID

func (*InventoryRepository) ByUUID

func (r *InventoryRepository) ByUUID(uuid string) (domain.Inventory, error)

func (*InventoryRepository) Save

func (r *InventoryRepository) Save(inventory domain.Inventory) error

type KubernetesInventoryIDGenerator

type KubernetesInventoryIDGenerator struct{}

func NewKubernetesInventoryIDGenerator

func NewKubernetesInventoryIDGenerator() *KubernetesInventoryIDGenerator

func (*KubernetesInventoryIDGenerator) Generate

type KubernetesMachineIDGenerator

type KubernetesMachineIDGenerator struct{}

func NewKubernetesMachineIDGenerator

func NewKubernetesMachineIDGenerator() *KubernetesMachineIDGenerator

func (*KubernetesMachineIDGenerator) Generate

type LoopbackAddressRepository

type LoopbackAddressRepository struct {
	// contains filtered or unexported fields
}

func NewLoopbackAddressRepository

func NewLoopbackAddressRepository(
	client ctrlclient.Client,
) *LoopbackAddressRepository

func (*LoopbackAddressRepository) IPv4ByMachineUUID

func (l *LoopbackAddressRepository) IPv4ByMachineUUID(
	uuid string,
) (domain.Address, error)

func (*LoopbackAddressRepository) IPv6ByMachineUUID

func (l *LoopbackAddressRepository) IPv6ByMachineUUID(
	uuid string,
) (domain.Address, error)

func (*LoopbackAddressRepository) Save

func (l *LoopbackAddressRepository) Save(address domain.Address) error

func (*LoopbackAddressRepository) Try

type LoopbackSubnetRepository

type LoopbackSubnetRepository struct {
	// contains filtered or unexported fields
}

func NewLoopbackSubnetRepository

func NewLoopbackSubnetRepository(
	client ctrlclient.Client,
	subnetLabelValue string,
) *LoopbackSubnetRepository

func (*LoopbackSubnetRepository) ByType

func (s *LoopbackSubnetRepository) ByType(ipType string) (dto.SubnetInfo, error)

func (*LoopbackSubnetRepository) IPv6ByName

func (s *LoopbackSubnetRepository) IPv6ByName(name string) (dto.SubnetInfo, error)

func (*LoopbackSubnetRepository) Save

type MachineRepository

type MachineRepository struct {
	// contains filtered or unexported fields
}

func NewMachineRepository

func NewMachineRepository(
	client ctrlclient.Client,
	domainEventPublisher events.DomainEventPublisher,
) *MachineRepository

func (*MachineRepository) ByID

func (*MachineRepository) ByUUID

func (r *MachineRepository) ByUUID(uuid string) (domain.Machine, error)

func (*MachineRepository) Create

func (r *MachineRepository) Create(machine domain.Machine) error

func (*MachineRepository) Save

func (r *MachineRepository) Save(machine domain.Machine) error

func (*MachineRepository) Update

func (r *MachineRepository) Update(machine domain.Machine) error

type ServerRepository

type ServerRepository struct {
	// contains filtered or unexported fields
}

func NewServerRepository

func NewServerRepository(
	client ctrlclient.Client,
) *ServerRepository

func (*ServerRepository) ByUUID

func (s *ServerRepository) ByUUID(
	uuid string,
) (domain.Server, error)

func (*ServerRepository) Get

func (s *ServerRepository) Get(
	request dto.Request,
) (domain.Server, error)

type SwitchRepository

type SwitchRepository struct {
	// contains filtered or unexported fields
}

func NewSwitchRepository

func NewSwitchRepository(
	client ctrlclient.Client,
) *SwitchRepository

func (*SwitchRepository) ByChassisID

func (s *SwitchRepository) ByChassisID(chassisID string) (dto.SwitchInfo, error)

Directories

Path Synopsis
nolint
nolint

Jump to

Keyboard shortcuts

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