Documentation
¶
Index ¶
- Variables
- func New() resource.Driver
- type T
- func (t *T) Abort(ctx context.Context) bool
- func (t *T) DriverID() driver.ID
- func (t *T) Enter(ctx context.Context) error
- func (t *T) GetHostname() string
- func (t *T) Label(_ context.Context) string
- func (t *T) Manifest() *manifest.T
- func (t *T) Presync() error
- func (t *T) Start(ctx context.Context) error
- func (t *T) Status(ctx context.Context) status.T
- func (t *T) Stop(ctx context.Context) error
- func (t *T) SubDevices(ctx context.Context) device.L
- func (t *T) ToSync(ctx context.Context) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotRegistered = errors.New("vm is not registered")
)
Functions ¶
Types ¶
type T ¶
type T struct {
resource.T
resource.Restart
resource.SSH
resource.SCSIPersistentReservation
Path naming.Path `json:"path"`
ObjectID uuid.UUID `json:"object_id"`
Peers []string `json:"peers"`
DNS []string `json:"dns"`
Topology topology.T
Headless bool `json:"headless"`
SCSIReserv bool `json:"scsireserv"`
PromoteRW bool `json:"promote_rw"`
OsvcRootPath string `json:"osvc_root_path"`
GuestOS string `json:"guest_os"`
Name string `json:"name"`
Hostname string `json:"hostname"`
RCmd []string `json:"rcmd"`
StartTimeout *time.Duration `json:"start_timeout"`
StopTimeout *time.Duration `json:"stop_timeout"`
// contains filtered or unexported fields
}
func (*T) GetHostname ¶
func (*T) Label ¶
Label implements Label from resource.Driver interface, it returns a formatted short description of the Resource
Click to show internal directories.
Click to hide internal directories.