scenarios

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInventoryUseCase

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

func NewCreateInventoryUseCase

func NewCreateInventoryUseCase(
	inventoryAlreadyExist domain.InventoryAlreadyExist,
	inventoryIDGenerator domain.InventoryIDGenerator,
	inventoryRepository providers.InventoryPersister,
) *CreateInventoryUseCase

func (*CreateInventoryUseCase) Execute

func (o *CreateInventoryUseCase) Execute(
	inventoryInfo dto.InventoryInfo,
) error

type CreateMachineUseCase

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

func NewCreateMachineUseCase

func NewCreateMachineUseCase(
	machinePersister providers.MachinePersister,
	machineIDGenerator domain.MachineIDGenerator,
	machineAlreadyExist domain.MachineAlreadyExist,
) *CreateMachineUseCase

func (*CreateMachineUseCase) Execute

func (a *CreateMachineUseCase) Execute(
	machineInfo dto.MachineInfo,
) (domain.MachineID, error)

type GetInventoryUseCase

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

func NewGetInventoryUseCase

func NewGetInventoryUseCase(
	inventoryExtractor providers.InventoryExtractor,
) *GetInventoryUseCase

func (*GetInventoryUseCase) Execute

func (g *GetInventoryUseCase) Execute(
	inventoryUUID string,
) (domain.Inventory, error)

type GetMachineUseCase

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

func NewGetMachineUseCase

func NewGetMachineUseCase(
	machineExtractor providers.MachineExtractor,
) *GetMachineUseCase

func (*GetMachineUseCase) Execute

func (g *GetMachineUseCase) Execute(
	machineUUID string,
) (domain.Machine, error)

type GetServerUseCase

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

func NewGetServerUseCase

func NewGetServerUseCase(
	serverExtractor providers.ServerExtractor,
) *GetServerUseCase

func (*GetServerUseCase) Execute

func (g *GetServerUseCase) Execute(
	uuid string,
) (domain.Server, error)

type MachineOnboardingUseCase

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

func NewMachineOnboardingUseCase

func NewMachineOnboardingUseCase(
	machinePersister providers.MachinePersister,
	machineExtractor providers.MachineExtractor,
	switchExtractor providers.SwitchExtractor,
	loopbackRepository providers.LoopbackAddressExtractor,
	log logr.Logger,
) *MachineOnboardingUseCase

func (*MachineOnboardingUseCase) Execute

func (m *MachineOnboardingUseCase) Execute(machine domain.Machine, inventory invdomain.Inventory) error

func (*MachineOnboardingUseCase) FindSwitchAndAddInfo

func (m *MachineOnboardingUseCase) FindSwitchAndAddInfo(
	machineInterface metalv1alpha4.Interface,
) (metalv1alpha4.Interface, error)

func (*MachineOnboardingUseCase) LoopbackAddress

func (m *MachineOnboardingUseCase) LoopbackAddress(machine domain.Machine) (domain.Loopbacks, error)

func (*MachineOnboardingUseCase) MachineInterfacesWithSwitchInfo

func (m *MachineOnboardingUseCase) MachineInterfacesWithSwitchInfo(
	inventory invdomain.Inventory,
) []metalv1alpha4.Interface

Jump to

Keyboard shortcuts

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