Documentation
¶
Index ¶
- type DnsClient
- type LVMStorage
- type Server
- func (s Server) Create(ctx context.Context, in *pb.CreateRequest) (*pb.VM, error)
- func (s Server) Destroy(ctx context.Context, in *pb.DestroyRequest) (*pb.DestroyReply, error)
- func (s Server) Find(ctx context.Context, req *pb.FindRequest) (*pb.VM, error)
- func (s Server) List(ctx context.Context, req *pb.ListVMRequest) (*pb.ListVMReply, error)
- type StorageManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LVMStorage ¶
type LVMStorage struct {
// contains filtered or unexported fields
}
func (LVMStorage) CreateStorage ¶
func (LVMStorage) RemoveStorage ¶
func (s LVMStorage) RemoveStorage(ctx context.Context, name string) error
func (LVMStorage) StorageBlockDevice ¶
func (s LVMStorage) StorageBlockDevice(name string) string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is GRPC server.
func NewServer ¶
func NewServer(conn *libvirt.Connect, storage StorageManager, vmNet *net.IPNet, dnsCli *DnsClient, xmlTemplate *template.Template) Server
NewServer creates a new server instance.
func (Server) Destroy ¶
func (s Server) Destroy(ctx context.Context, in *pb.DestroyRequest) (*pb.DestroyReply, error)
Destroy is GRPC handler for Destroy API.
func (Server) List ¶
func (s Server) List(ctx context.Context, req *pb.ListVMRequest) (*pb.ListVMReply, error)
List is GRPC handler for List API.
Click to show internal directories.
Click to hide internal directories.