Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hosts ¶
type Hosts interface { AddHost(context.Context, *model.Host) (uuid.UUID, error) ListHosts(context.Context) ([]model.Host, error) HostByID(context.Context, uuid.UUID) (model.Host, error) HostByAddress(context.Context, string) (*model.Host, error) HostByName(context.Context, string) (*model.Host, error) UpdateHost(context.Context, *model.Host) error }
func NewHostsRepository ¶
NewHostsRepository create a new host repository
type VMs ¶
type VMs interface { AddVM(context.Context, model.VM) (uuid.UUID, error) ListVMs(context.Context) ([]model.VM, error) VMByID(context.Context, uuid.UUID) (model.VM, error) UpdateVM(context.Context, model.VM) error }
func NewVMsRepository ¶
NewVMsRepository create a new vm repository
Click to show internal directories.
Click to hide internal directories.