repositories

package
v0.0.0-...-aa75306 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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