usecase

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InventoryAlreadyCreated

func InventoryAlreadyCreated(name string) error

func InventoryNotFound

func InventoryNotFound(err error) error

func IsAlreadyCreated

func IsAlreadyCreated(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func MachineAlreadCreated

func MachineAlreadCreated(name string) error

func MachineNotFound

func MachineNotFound(err error) error

func ServerNotFound

func ServerNotFound(err error) error

Types

type CreateInventory

type CreateInventory interface {
	Execute(inventoryInfo dto.InventoryInfo) error
}

type CreateMachine

type CreateMachine interface {
	Execute(machineInfo dto.MachineInfo) (domain.MachineID, error)
}

type GetInventory

type GetInventory interface {
	Execute(inventoryUUID string) (domain.Inventory, error)
}

type GetMachine

type GetMachine interface {
	Execute(machineUUID string) (domain.Machine, error)
}

type GetServer

type GetServer interface {
	Execute(uuid string) (domain.Server, error)
}

type MachineOnboarding

type MachineOnboarding interface {
	Execute(machine domain.Machine, inventory invdomain.Inventory) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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