ipc

package
v0.0.0-...-f0802c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProtocolVersion = 0
	ServiceName     = "SimpleVirt"
)

Functions

func RegisterHandlers

func RegisterHandlers(configDir string, runtimeDir string) (*monitor.Monitor, error)

Types

type ClientHandler

type ClientHandler struct {
	Client *rpc.Client
}

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) ResetVM

func (c *ClientHandler) ResetVM(name string) (int, error)

func (*ClientHandler) RestartVM

func (c *ClientHandler) RestartVM(name string) (int, error)

func (*ClientHandler) ShutdownVM

func (c *ClientHandler) ShutdownVM(name string) (int, error)

func (*ClientHandler) StartVM

func (c *ClientHandler) StartVM(name string) (int, error)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) GetProtocolVersion

func (h *Handler) GetProtocolVersion(_ struct{}, res *int) error

func (*Handler) GetVMStatus

func (h *Handler) GetVMStatus(args []string, res *string) error

func (*Handler) ListVMs

func (h *Handler) ListVMs(_ struct{}, res *[]string) error

func (*Handler) ResetVM

func (h *Handler) ResetVM(args []string, res *int) error

func (*Handler) RestartVM

func (h *Handler) RestartVM(args []string, res *int) error

func (*Handler) ShutdownVM

func (h *Handler) ShutdownVM(args []string, res *int) error

func (*Handler) StartVM

func (h *Handler) StartVM(args []string, res *int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL