Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MachineRepository ¶
type MachineRepository interface { // GetMachines returns all machines. // This returns empty list and no error if no machines were found. GetMachines(ctx context.Context) ([]*models.Machine, error) // RegisterMachine creates a record of the machine. // This returns error when the item has been created. RegisterMachine(ctx context.Context, machine *models.Machine) error // UpdateMachine updates the record of the machine. // This returns error when the item does not exist. UpdateMachine(ctx context.Context, machine *models.Machine) error // DeleteMachine deletes the record of the machine. // This returns error when the item does not exist. DeleteMachine(ctx context.Context, machine *models.Machine) error }
MachineRepository is a repository about Machine.
Click to show internal directories.
Click to hide internal directories.