exec

package
v0.0.0-...-e218867 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package exec is a generated protocol buffer package.

It is generated from these files:

pkg/protobuf/exec/exec.proto

It has these top-level messages:

CommandRequest
CommandResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExecServer

func RegisterExecServer(s *grpc.Server, srv ExecServer)

Types

type CommandRequest

type CommandRequest struct {
	AppName string   `protobuf:"bytes,1,opt,name=app_name,json=appName" json:"app_name,omitempty"`
	Command []string `protobuf:"bytes,2,rep,name=command" json:"command,omitempty"`
}

func (*CommandRequest) Descriptor

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

func (*CommandRequest) GetAppName

func (m *CommandRequest) GetAppName() string

func (*CommandRequest) GetCommand

func (m *CommandRequest) GetCommand() []string

func (*CommandRequest) ProtoMessage

func (*CommandRequest) ProtoMessage()

func (*CommandRequest) Reset

func (m *CommandRequest) Reset()

func (*CommandRequest) String

func (m *CommandRequest) String() string

type CommandResponse

type CommandResponse struct {
	Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}

func (*CommandResponse) Descriptor

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

func (*CommandResponse) GetText

func (m *CommandResponse) GetText() string

func (*CommandResponse) ProtoMessage

func (*CommandResponse) ProtoMessage()

func (*CommandResponse) Reset

func (m *CommandResponse) Reset()

func (*CommandResponse) String

func (m *CommandResponse) String() string

type ExecClient

type ExecClient interface {
	Command(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (Exec_CommandClient, error)
}

func NewExecClient

func NewExecClient(cc *grpc.ClientConn) ExecClient

type ExecServer

type ExecServer interface {
	Command(*CommandRequest, Exec_CommandServer) error
}

type Exec_CommandClient

type Exec_CommandClient interface {
	Recv() (*CommandResponse, error)
	grpc.ClientStream
}

type Exec_CommandServer

type Exec_CommandServer interface {
	Send(*CommandResponse) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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