Documentation ¶
Index ¶
- Constants
- func New() resource.Driver
- func WaitFor(fn func() bool, interval time.Duration, timeout time.Duration) error
- type T
- func (t *T) Abort(ctx context.Context) bool
- func (t T) Enter() error
- func (t T) HasEFI() (bool, error)
- func (t T) Label() string
- func (t T) Manifest() *manifest.T
- func (t T) ProvisionLeader(ctx context.Context) error
- func (t T) Provisioned() (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() device.L
- func (t T) ToSync() []string
- func (t T) Unprovision(ctx context.Context) error
- func (t *T) UnprovisionLeaded(ctx context.Context) error
- func (t *T) UnprovisionLeader(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.SCSIPersistentReservation Path naming.Path `json:"path"` ObjectID uuid.UUID `json:"object_id"` Peers []string `json:"peers"` 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"` // contains filtered or unexported fields }
func (T) Provisioned ¶
func (t T) Provisioned() (provisioned.T, error)
func (T) SubDevices ¶
Click to show internal directories.
Click to hide internal directories.