Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyInitialized = status.Error(codes.FailedPrecondition, "already initialized") ErrNotInitialized = status.Error(codes.FailedPrecondition, "not initialized") )
Functions ¶
func DefaultConn ¶
func DefaultConn() (*grpc.ClientConn, error)
func NewClientConn ¶
func NewClientConn(target string, dialer Dialer) (*grpc.ClientConn, error)
func Serve ¶
func Serve(ctx context.Context, hv hypervisor.Hypervisor) error
Types ¶
type Client ¶
type Client interface { Init(ctx context.Context, config []byte) error Shutdown(ctx context.Context) error Create(ctx context.Context, name string, slot *int32) (vm hypervisor.VirtualMachine, stompedVmId *string, err error) Delete(ctx context.Context, id string) error List(ctx context.Context) ([]hypervisor.VirtualMachine, error) Close() error }
func New ¶
func New(c *grpc.ClientConn) Client
Click to show internal directories.
Click to hide internal directories.