Documentation
¶
Index ¶
- Constants
- func New() resource.Driver
- type T
- func (t *T) Abort(ctx context.Context) bool
- func (t *T) DriverID() driver.ID
- func (t *T) EncapCmd(ctx context.Context, args []string, envs []string, stdin io.Reader) (resource.Commander, error)
- func (t *T) EncapCmdWithQGA(ctx context.Context, args []string, envs []string, stdin io.Reader) (*qgaCommand, error)
- func (t *T) EncapCmdWithRCmd(ctx context.Context, args []string, envs []string, stdin io.Reader) (*exec.Cmd, error)
- func (t *T) EncapCp(ctx context.Context, src, dst string) error
- func (t *T) Enter(ctx context.Context) error
- func (t *T) GetHostname() string
- func (t *T) GetOsvcRootPath() string
- func (t *T) HasEFI() (bool, error)
- func (t *T) Label(_ context.Context) string
- func (t *T) Manifest() *manifest.T
- func (t *T) Move(ctx context.Context, to string) (err error)
- func (t *T) ProvisionAsLeader(ctx context.Context) error
- func (t *T) Provisioned(ctx context.Context) (provisioned.T, 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
- func (t *T) Unprovision(ctx context.Context) error
- func (t *T) UnprovisionAsFollower(ctx context.Context) error
- func (t *T) UnprovisionAsLeader(ctx context.Context) error
Constants ¶
View Source
const ( DomStateBlocked = "blocked" DomStateCrashed = "crashed" DomStateNone = "no state" DomStatePaused = "paused" DomStateRunning = "running" DomStateShutOff = "shut off" )
Variables ¶
This section is empty.
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"`
EncapNodes []string `json:"encapnodes"`
DNS []string `json:"dns"`
Topology topology.T
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"`
VirtInst []string `json:"virtinst"`
QGA bool `json:"qga"`
QGAOperationalDelay *time.Duration `json:"qga_operational_delay"`
// contains filtered or unexported fields
}
func (*T) EncapCmdWithQGA ¶
func (*T) EncapCmdWithRCmd ¶
func (*T) GetHostname ¶
func (*T) GetOsvcRootPath ¶
func (*T) Label ¶
Label implements Label from resource.Driver interface, it returns a formatted short description of the Resource
func (*T) Provisioned ¶
Click to show internal directories.
Click to hide internal directories.