localprovider

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 5 Imported by: 0

Documentation

Overview

Package localprovider is a generated protocol buffer package.

It is generated from these files:

local.proto

It has these top-level messages:

StartRequest
StartReply
DeleteRequest
DeleteReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLocalServer

func RegisterLocalServer(s *grpc.Server, srv LocalServer)

Types

type DeleteReply

type DeleteReply struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

The response message containing the message of the delete operation.

func (*DeleteReply) Descriptor

func (*DeleteReply) Descriptor() ([]byte, []int)

func (*DeleteReply) GetMessage

func (m *DeleteReply) GetMessage() string

func (*DeleteReply) ProtoMessage

func (*DeleteReply) ProtoMessage()

func (*DeleteReply) Reset

func (m *DeleteReply) Reset()

func (*DeleteReply) String

func (m *DeleteReply) String() string

type DeleteRequest

type DeleteRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}

The request containing the id of the machine to delete.

func (*DeleteRequest) Descriptor

func (*DeleteRequest) Descriptor() ([]byte, []int)

func (*DeleteRequest) GetId

func (m *DeleteRequest) GetId() int32

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

type LocalClient

type LocalClient interface {
	// Starts a VM
	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartReply, error)
	// Deletes a VM
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteReply, error)
}

func NewLocalClient

func NewLocalClient(cc *grpc.ClientConn) LocalClient

type LocalServer

type LocalServer interface {
	// Starts a VM
	Start(context.Context, *StartRequest) (*StartReply, error)
	// Deletes a VM
	Delete(context.Context, *DeleteRequest) (*DeleteReply, error)
}

type StartReply

type StartReply struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

The response message containing the message of the creation operation.

func (*StartReply) Descriptor

func (*StartReply) Descriptor() ([]byte, []int)

func (*StartReply) GetMessage

func (m *StartReply) GetMessage() string

func (*StartReply) ProtoMessage

func (*StartReply) ProtoMessage()

func (*StartReply) Reset

func (m *StartReply) Reset()

func (*StartReply) String

func (m *StartReply) String() string

type StartRequest

type StartRequest struct {
	Cloudconfig string `protobuf:"bytes,1,opt,name=cloudconfig" json:"cloudconfig,omitempty"`
	Id          int32  `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
}

The request cloudconfig containing cloud-config data.

func (*StartRequest) Descriptor

func (*StartRequest) Descriptor() ([]byte, []int)

func (*StartRequest) GetCloudconfig

func (m *StartRequest) GetCloudconfig() string

func (*StartRequest) GetId

func (m *StartRequest) GetId() int32

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) Reset

func (m *StartRequest) Reset()

func (*StartRequest) String

func (m *StartRequest) String() string

Jump to

Keyboard shortcuts

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