rpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_coordinator_proto protoreflect.FileDescriptor

Functions

func RegisterMarbleServer

func RegisterMarbleServer(s *grpc.Server, srv MarbleServer)

Types

type ActivationReq

type ActivationReq struct {

	// TODO: sending the quote via metadata/context would be cleaner.
	Quote      []byte `protobuf:"bytes,1,opt,name=Quote,proto3" json:"Quote,omitempty"`
	CSR        []byte `protobuf:"bytes,2,opt,name=CSR,proto3" json:"CSR,omitempty"`
	MarbleType string `protobuf:"bytes,3,opt,name=MarbleType,proto3" json:"MarbleType,omitempty"`
	UUID       string `protobuf:"bytes,4,opt,name=UUID,proto3" json:"UUID,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivationReq) Descriptor deprecated

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

Deprecated: Use ActivationReq.ProtoReflect.Descriptor instead.

func (*ActivationReq) GetCSR

func (x *ActivationReq) GetCSR() []byte

func (*ActivationReq) GetMarbleType

func (x *ActivationReq) GetMarbleType() string

func (*ActivationReq) GetQuote

func (x *ActivationReq) GetQuote() []byte

func (*ActivationReq) GetUUID

func (x *ActivationReq) GetUUID() string

func (*ActivationReq) ProtoMessage

func (*ActivationReq) ProtoMessage()

func (*ActivationReq) ProtoReflect

func (x *ActivationReq) ProtoReflect() protoreflect.Message

func (*ActivationReq) Reset

func (x *ActivationReq) Reset()

func (*ActivationReq) String

func (x *ActivationReq) String() string

type ActivationResp

type ActivationResp struct {
	Parameters *Parameters `protobuf:"bytes,1,opt,name=Parameters,proto3" json:"Parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivationResp) Descriptor deprecated

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

Deprecated: Use ActivationResp.ProtoReflect.Descriptor instead.

func (*ActivationResp) GetParameters

func (x *ActivationResp) GetParameters() *Parameters

func (*ActivationResp) ProtoMessage

func (*ActivationResp) ProtoMessage()

func (*ActivationResp) ProtoReflect

func (x *ActivationResp) ProtoReflect() protoreflect.Message

func (*ActivationResp) Reset

func (x *ActivationResp) Reset()

func (*ActivationResp) String

func (x *ActivationResp) String() string

type MarbleClient

type MarbleClient interface {
	// Activate activates a marble in the mesh.
	Activate(ctx context.Context, in *ActivationReq, opts ...grpc.CallOption) (*ActivationResp, error)
}

MarbleClient is the client API for Marble service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMarbleClient

func NewMarbleClient(cc grpc.ClientConnInterface) MarbleClient

type MarbleServer

type MarbleServer interface {
	// Activate activates a marble in the mesh.
	Activate(context.Context, *ActivationReq) (*ActivationResp, error)
}

MarbleServer is the server API for Marble service.

type Parameters

type Parameters struct {
	Files map[string]string `` /* 151-byte string literal not displayed */
	Env   map[string]string `` /* 147-byte string literal not displayed */
	Argv  []string          `protobuf:"bytes,3,rep,name=Argv,proto3" json:"Argv,omitempty"`
	// contains filtered or unexported fields
}

func (*Parameters) Descriptor deprecated

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

Deprecated: Use Parameters.ProtoReflect.Descriptor instead.

func (*Parameters) GetArgv

func (x *Parameters) GetArgv() []string

func (*Parameters) GetEnv

func (x *Parameters) GetEnv() map[string]string

func (*Parameters) GetFiles

func (x *Parameters) GetFiles() map[string]string

func (*Parameters) ProtoMessage

func (*Parameters) ProtoMessage()

func (*Parameters) ProtoReflect

func (x *Parameters) ProtoReflect() protoreflect.Message

func (*Parameters) Reset

func (x *Parameters) Reset()

func (*Parameters) String

func (x *Parameters) String() string

type UnimplementedMarbleServer

type UnimplementedMarbleServer struct {
}

UnimplementedMarbleServer can be embedded to have forward compatible implementations.

func (*UnimplementedMarbleServer) Activate

Jump to

Keyboard shortcuts

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