Documentation ¶
Index ¶
- type CreateInventoryUseCase
- type CreateMachineUseCase
- type GetInventoryUseCase
- type GetMachineUseCase
- type GetServerUseCase
- type MachineOnboardingUseCase
- func (m *MachineOnboardingUseCase) Execute(machine domain.Machine, inventory invdomain.Inventory) error
- func (m *MachineOnboardingUseCase) FindSwitchAndAddInfo(machineInterface metalv1alpha4.Interface) (metalv1alpha4.Interface, error)
- func (m *MachineOnboardingUseCase) LoopbackAddress(machine domain.Machine) (domain.Loopbacks, error)
- func (m *MachineOnboardingUseCase) MachineInterfacesWithSwitchInfo(inventory invdomain.Inventory) []metalv1alpha4.Interface
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
type GetMachineUseCase ¶
type GetMachineUseCase struct {
// contains filtered or unexported fields
}
func NewGetMachineUseCase ¶
func NewGetMachineUseCase( machineExtractor providers.MachineExtractor, ) *GetMachineUseCase
type GetServerUseCase ¶
type GetServerUseCase struct {
// contains filtered or unexported fields
}
func NewGetServerUseCase ¶
func NewGetServerUseCase( serverExtractor providers.ServerExtractor, ) *GetServerUseCase
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) FindSwitchAndAddInfo ¶
func (m *MachineOnboardingUseCase) FindSwitchAndAddInfo( machineInterface metalv1alpha4.Interface, ) (metalv1alpha4.Interface, error)
func (*MachineOnboardingUseCase) LoopbackAddress ¶
func (*MachineOnboardingUseCase) MachineInterfacesWithSwitchInfo ¶
func (m *MachineOnboardingUseCase) MachineInterfacesWithSwitchInfo( inventory invdomain.Inventory, ) []metalv1alpha4.Interface
Click to show internal directories.
Click to hide internal directories.