proto

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 5 Imported by: 3

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

plugin_interface.proto

It has these top-level messages:

ErrorStatus
DeployRequest
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPluginInterfaceServer

func RegisterPluginInterfaceServer(s *grpc.Server, srv PluginInterfaceServer)

Types

type DeployRequest

type DeployRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*DeployRequest) Descriptor

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

func (*DeployRequest) GetName

func (m *DeployRequest) GetName() string

func (*DeployRequest) ProtoMessage

func (*DeployRequest) ProtoMessage()

func (*DeployRequest) Reset

func (m *DeployRequest) Reset()

func (*DeployRequest) String

func (m *DeployRequest) String() string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type ErrorStatus

type ErrorStatus struct {
	// Types that are valid to be assigned to OptionalErr:
	//	*ErrorStatus_Error
	OptionalErr isErrorStatus_OptionalErr `protobuf_oneof:"optional_err"`
}

func (*ErrorStatus) Descriptor

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

func (*ErrorStatus) GetError

func (m *ErrorStatus) GetError() string

func (*ErrorStatus) GetOptionalErr

func (m *ErrorStatus) GetOptionalErr() isErrorStatus_OptionalErr

func (*ErrorStatus) ProtoMessage

func (*ErrorStatus) ProtoMessage()

func (*ErrorStatus) Reset

func (m *ErrorStatus) Reset()

func (*ErrorStatus) String

func (m *ErrorStatus) String() string

func (*ErrorStatus) XXX_OneofFuncs

func (*ErrorStatus) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ErrorStatus_Error

type ErrorStatus_Error struct {
	Error string `protobuf:"bytes,2,opt,name=error,oneof"`
}

type PluginInterfaceClient

type PluginInterfaceClient interface {
	Initialization(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ErrorStatus, error)
	Deploy(ctx context.Context, in *DeployRequest, opts ...grpc.CallOption) (*ErrorStatus, error)
	UnInitialization(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ErrorStatus, error)
}

func NewPluginInterfaceClient

func NewPluginInterfaceClient(cc *grpc.ClientConn) PluginInterfaceClient

type PluginInterfaceServer

type PluginInterfaceServer interface {
	Initialization(context.Context, *Empty) (*ErrorStatus, error)
	Deploy(context.Context, *DeployRequest) (*ErrorStatus, error)
	UnInitialization(context.Context, *Empty) (*ErrorStatus, error)
}

Jump to

Keyboard shortcuts

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