Documentation ¶
Index ¶
- Variables
- func RegisterHandlers(configDir string, runtimeDir string) (*monitor.Monitor, error)
- type ClientHandler
- func (c *ClientHandler) GetProtocolVersion() (int, error)
- func (c *ClientHandler) GetVMStatus(name string) (string, error)
- func (c *ClientHandler) ListVMs() ([]string, error)
- func (c *ClientHandler) ResetVM(name string) (int, error)
- func (c *ClientHandler) RestartVM(name string) (int, error)
- func (c *ClientHandler) ShutdownVM(name string) (int, error)
- func (c *ClientHandler) StartVM(name string) (int, error)
- type Handler
- func (h *Handler) GetProtocolVersion(_ struct{}, res *int) error
- func (h *Handler) GetVMStatus(args []string, res *string) error
- func (h *Handler) ListVMs(_ struct{}, res *[]string) error
- func (h *Handler) ResetVM(args []string, res *int) error
- func (h *Handler) RestartVM(args []string, res *int) error
- func (h *Handler) ShutdownVM(args []string, res *int) error
- func (h *Handler) StartVM(args []string, res *int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProtocolVersion = 0 ServiceName = "SimpleVirt" )
Functions ¶
Types ¶
type ClientHandler ¶
func NewClientHandler ¶
func NewClientHandler(client *rpc.Client) *ClientHandler
func (*ClientHandler) GetProtocolVersion ¶
func (c *ClientHandler) GetProtocolVersion() (int, error)
func (*ClientHandler) GetVMStatus ¶
func (c *ClientHandler) GetVMStatus(name string) (string, error)
func (*ClientHandler) ListVMs ¶
func (c *ClientHandler) ListVMs() ([]string, error)
func (*ClientHandler) ShutdownVM ¶
func (c *ClientHandler) ShutdownVM(name string) (int, error)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) GetProtocolVersion ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.