Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterNestingServer(s grpc.ServiceRegistrar, srv NestingServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetName() string
- func (x *CreateRequest) GetSlot() int32
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetStompedVmId() string
- func (x *CreateResponse) GetVm() *VirtualMachine
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type DeleteRequest
- type DeleteResponse
- type InitRequest
- type InitResponse
- type ListRequest
- type ListResponse
- type NestingClient
- type NestingServer
- type ShutdownRequest
- type ShutdownResponse
- type UnimplementedNestingServer
- func (UnimplementedNestingServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedNestingServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedNestingServer) Init(context.Context, *InitRequest) (*InitResponse, error)
- func (UnimplementedNestingServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedNestingServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
- type UnsafeNestingServer
- type VirtualMachine
- func (*VirtualMachine) Descriptor() ([]byte, []int)deprecated
- func (x *VirtualMachine) GetAddr() string
- func (x *VirtualMachine) GetId() string
- func (x *VirtualMachine) GetName() string
- func (*VirtualMachine) ProtoMessage()
- func (x *VirtualMachine) ProtoReflect() protoreflect.Message
- func (x *VirtualMachine) Reset()
- func (x *VirtualMachine) String() string
Constants ¶
const ( Nesting_Init_FullMethodName = "/nesting.Nesting/Init" Nesting_Create_FullMethodName = "/nesting.Nesting/Create" Nesting_Delete_FullMethodName = "/nesting.Nesting/Delete" Nesting_List_FullMethodName = "/nesting.Nesting/List" Nesting_Shutdown_FullMethodName = "/nesting.Nesting/Shutdown" )
Variables ¶
var File_proto_nesting_proto protoreflect.FileDescriptor
var Nesting_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nesting.Nesting", HandlerType: (*NestingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Init", Handler: _Nesting_Init_Handler, }, { MethodName: "Create", Handler: _Nesting_Create_Handler, }, { MethodName: "Delete", Handler: _Nesting_Delete_Handler, }, { MethodName: "List", Handler: _Nesting_List_Handler, }, { MethodName: "Shutdown", Handler: _Nesting_Shutdown_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/nesting.proto", }
Nesting_ServiceDesc is the grpc.ServiceDesc for Nesting service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNestingServer ¶
func RegisterNestingServer(s grpc.ServiceRegistrar, srv NestingServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Slot *int32 `protobuf:"varint,2,opt,name=slot,proto3,oneof" json:"slot,omitempty"`
// contains filtered or unexported fields
}
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetName ¶
func (x *CreateRequest) GetName() string
func (*CreateRequest) GetSlot ¶
func (x *CreateRequest) GetSlot() int32
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct {
Vm *VirtualMachine `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
StompedVmId *string `protobuf:"bytes,2,opt,name=stompedVmId,proto3,oneof" json:"stompedVmId,omitempty"`
// contains filtered or unexported fields
}
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetStompedVmId ¶
func (x *CreateResponse) GetStompedVmId() string
func (*CreateResponse) GetVm ¶
func (x *CreateResponse) GetVm() *VirtualMachine
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type InitRequest ¶
type InitRequest struct {
Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) GetConfig ¶
func (x *InitRequest) GetConfig() []byte
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) ProtoReflect ¶
func (x *InitRequest) ProtoReflect() protoreflect.Message
func (*InitRequest) Reset ¶
func (x *InitRequest) Reset()
func (*InitRequest) String ¶
func (x *InitRequest) String() string
type InitResponse ¶
type InitResponse struct {
// contains filtered or unexported fields
}
func (*InitResponse) Descriptor
deprecated
func (*InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) ProtoReflect ¶
func (x *InitResponse) ProtoReflect() protoreflect.Message
func (*InitResponse) Reset ¶
func (x *InitResponse) Reset()
func (*InitResponse) String ¶
func (x *InitResponse) String() string
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct {
Vms []*VirtualMachine `protobuf:"bytes,1,rep,name=vms,proto3" json:"vms,omitempty"`
// contains filtered or unexported fields
}
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetVms ¶
func (x *ListResponse) GetVms() []*VirtualMachine
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type NestingClient ¶
type NestingClient interface {
Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
}
NestingClient is the client API for Nesting service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNestingClient ¶
func NewNestingClient(cc grpc.ClientConnInterface) NestingClient
type NestingServer ¶
type NestingServer interface {
Init(context.Context, *InitRequest) (*InitResponse, error)
Create(context.Context, *CreateRequest) (*CreateResponse, error)
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
List(context.Context, *ListRequest) (*ListResponse, error)
Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
// contains filtered or unexported methods
}
NestingServer is the server API for Nesting service. All implementations must embed UnimplementedNestingServer for forward compatibility.
type ShutdownRequest ¶
type ShutdownRequest struct {
// contains filtered or unexported fields
}
func (*ShutdownRequest) Descriptor
deprecated
func (*ShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) ProtoMessage ¶
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) ProtoReflect ¶
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
func (*ShutdownRequest) Reset ¶
func (x *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶
func (x *ShutdownRequest) String() string
type ShutdownResponse ¶
type ShutdownResponse struct {
// contains filtered or unexported fields
}
func (*ShutdownResponse) Descriptor
deprecated
func (*ShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) ProtoMessage ¶
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) ProtoReflect ¶
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message
func (*ShutdownResponse) Reset ¶
func (x *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶
func (x *ShutdownResponse) String() string
type UnimplementedNestingServer ¶
type UnimplementedNestingServer struct{}
UnimplementedNestingServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNestingServer) Create ¶
func (UnimplementedNestingServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedNestingServer) Delete ¶
func (UnimplementedNestingServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedNestingServer) Init ¶
func (UnimplementedNestingServer) Init(context.Context, *InitRequest) (*InitResponse, error)
func (UnimplementedNestingServer) List ¶
func (UnimplementedNestingServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedNestingServer) Shutdown ¶
func (UnimplementedNestingServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
type UnsafeNestingServer ¶
type UnsafeNestingServer interface {
// contains filtered or unexported methods
}
UnsafeNestingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NestingServer will result in compilation errors.
type VirtualMachine ¶
type VirtualMachine struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
// contains filtered or unexported fields
}
func (*VirtualMachine) Descriptor
deprecated
func (*VirtualMachine) Descriptor() ([]byte, []int)
Deprecated: Use VirtualMachine.ProtoReflect.Descriptor instead.
func (*VirtualMachine) GetAddr ¶
func (x *VirtualMachine) GetAddr() string
func (*VirtualMachine) GetId ¶
func (x *VirtualMachine) GetId() string
func (*VirtualMachine) GetName ¶
func (x *VirtualMachine) GetName() string
func (*VirtualMachine) ProtoMessage ¶
func (*VirtualMachine) ProtoMessage()
func (*VirtualMachine) ProtoReflect ¶
func (x *VirtualMachine) ProtoReflect() protoreflect.Message
func (*VirtualMachine) Reset ¶
func (x *VirtualMachine) Reset()
func (*VirtualMachine) String ¶
func (x *VirtualMachine) String() string