Documentation ¶
Index ¶
- Variables
- type EsxVmdkCmd
- type MockVmdkCmd
- type VmdkCmdRunner
- type VmdkOps
- func (v VmdkOps) Attach(name string, opts map[string]string) (*fs.VolumeDevSpec, error)
- func (v VmdkOps) Create(name string, opts map[string]string) error
- func (v VmdkOps) Detach(name string, opts map[string]string) error
- func (v VmdkOps) Get(name string) (map[string]interface{}, error)
- func (v VmdkOps) List() ([]VolumeData, error)
- func (v VmdkOps) RawAttach(name string, opts map[string]string) ([]byte, error)
- func (v VmdkOps) Remove(name string, opts map[string]string) error
- type VolumeData
- type VolumeInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var EsxPort int
EsxPort used to connect to ESX, passed in as command line param
Functions ¶
This section is empty.
Types ¶
type EsxVmdkCmd ¶
EsxVmdkCmd struct - empty , we use it only to implement VmdkCmdRunner interface
type VmdkCmdRunner ¶
type VmdkCmdRunner interface {
Run(cmd string, name string, opts map[string]string) ([]byte, error)
}
VmdkCmdRunner interface for sending Vmdk Commands to an ESX server.
type VmdkOps ¶
type VmdkOps struct {
Cmd VmdkCmdRunner // see *_vmdkcmd.go for implementations.
}
VmdkOps struct
type VolumeData ¶
VolumeData we return to the caller
type VolumeInfo ¶
type VolumeInfo struct { Name string `json:"Name"` Options map[string]string `json:"Opts,omitempty"` }
VolumeInfo we get about the volume from upstairs
Click to show internal directories.
Click to hide internal directories.