Documentation ¶
Index ¶
- func InventoryAlreadyCreated() errors.BusinessError
- func NewInventoryCreatedDomainEvent(inventoryID InventoryID) base.DomainEvent
- func NewInventoryFlavorUpdatedDomainEvent(inventoryID InventoryID) base.DomainEvent
- type Inventory
- type InventoryAlreadyExist
- type InventoryCreatedDomainEvent
- type InventoryFlavorUpdatedDomainEvent
- type InventoryID
- type InventoryIDGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InventoryAlreadyCreated ¶
func InventoryAlreadyCreated() errors.BusinessError
func NewInventoryCreatedDomainEvent ¶
func NewInventoryCreatedDomainEvent( inventoryID InventoryID, ) base.DomainEvent
func NewInventoryFlavorUpdatedDomainEvent ¶
func NewInventoryFlavorUpdatedDomainEvent( inventoryID InventoryID, ) base.DomainEvent
Types ¶
type Inventory ¶
type Inventory struct { base.DomainEntity ID InventoryID UUID string Namespace string ProductSKU string SerialNumber string Sizes map[string]string NICs []metalv1alpha4.NICSpec }
func CreateInventory ¶
func CreateInventory( inventoryIDGenerator InventoryIDGenerator, inventoryAlreadyExist InventoryAlreadyExist, UUID string, namespace string, ) (Inventory, errors.BusinessError)
func NewInventory ¶
func NewInventory( ID InventoryID, UUID string, namespace string, productSKU string, serialNumber string, sizes map[string]string, NICs []metalv1alpha4.NICSpec, ) Inventory
type InventoryAlreadyExist ¶
type InventoryCreatedDomainEvent ¶
type InventoryCreatedDomainEvent struct {
// contains filtered or unexported fields
}
func (*InventoryCreatedDomainEvent) ID ¶
func (m *InventoryCreatedDomainEvent) ID() string
func (*InventoryCreatedDomainEvent) Type ¶
func (m *InventoryCreatedDomainEvent) Type() string
type InventoryFlavorUpdatedDomainEvent ¶
type InventoryFlavorUpdatedDomainEvent struct {
// contains filtered or unexported fields
}
func (*InventoryFlavorUpdatedDomainEvent) ID ¶
func (m *InventoryFlavorUpdatedDomainEvent) ID() string
func (*InventoryFlavorUpdatedDomainEvent) Type ¶
func (m *InventoryFlavorUpdatedDomainEvent) Type() string
type InventoryID ¶
type InventoryID struct {
// contains filtered or unexported fields
}
func NewInventoryID ¶
func NewInventoryID(id string) InventoryID
func (*InventoryID) String ¶
func (m *InventoryID) String() string
type InventoryIDGenerator ¶
type InventoryIDGenerator interface {
Generate() InventoryID
}
Click to show internal directories.
Click to hide internal directories.