repository

package
v0.0.0-...-4982e5b Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	New(device models.Device) error
	GetByID(id int) (models.Device, error)
	GetByHostname(hostname string) (models.Device, error)
	GetAll() ([]models.Device, error)
	Update(device models.Device) error
	Delete(id int) error
}

type Model

type Model interface {
	New(model models.Model) error
	GetByID(id int) (models.Model, error)
	GetByName(name string) (models.Model, error)
	GetAll() ([]models.Model, error)
	Update(vendor models.Model) error
	Delete(id int) error
}

type Vendor

type Vendor interface {
	New(name string) error
	GetByID(id int) (models.Vendor, error)
	GetByName(name string) (models.Vendor, error)
	GetAll() ([]models.Vendor, error)
	Update(vendor models.Vendor) error
	Delete(id int) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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