29 lines
652 B
Go
29 lines
652 B
Go
package simulator
|
|
|
|
// Simulator interface for a single device
|
|
type Simulator interface {
|
|
Info
|
|
|
|
// Start the simulator
|
|
Start() error
|
|
|
|
// Stop the simulator
|
|
Stop() error
|
|
}
|
|
|
|
// Info of the simulator
|
|
type Info interface {
|
|
// DeviceUID assigned to the simulator
|
|
DeviceUID() string
|
|
// Path returns the location where the template files are located.
|
|
Path() string
|
|
// Name returns the name of the template.
|
|
Name() string
|
|
// Version is the semantic version of the template.
|
|
Version() string
|
|
// Key is the unique identifier of this template.
|
|
Key() string
|
|
// Author is the e-mail address of the author who created the template.
|
|
Author() string
|
|
}
|