exec

package
v0.0.0-...-fd6794a Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExecCommandServer

func RegisterExecCommandServer(s *grpc.Server, srv ExecCommandServer)

Types

type Command

type Command struct {
	Uuid                 string   `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Command              string   `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	Arguments            []string `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"`
	Environment          []string `protobuf:"bytes,4,rep,name=environment,proto3" json:"environment,omitempty"`
	User                 string   `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"`
	Group                string   `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"`
	Directory            string   `protobuf:"bytes,7,opt,name=directory,proto3" json:"directory,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Command) Descriptor

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

func (*Command) GetArguments

func (m *Command) GetArguments() []string

func (*Command) GetCommand

func (m *Command) GetCommand() string

func (*Command) GetDirectory

func (m *Command) GetDirectory() string

func (*Command) GetEnvironment

func (m *Command) GetEnvironment() []string

func (*Command) GetGroup

func (m *Command) GetGroup() string

func (*Command) GetUser

func (m *Command) GetUser() string

func (*Command) GetUuid

func (m *Command) GetUuid() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command) XXX_Merge

func (m *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

func (m *Command) XXX_Unmarshal(b []byte) error

type ExecCommandClient

type ExecCommandClient interface {
	Exec(ctx context.Context, in *Command, opts ...grpc.CallOption) (ExecCommand_ExecClient, error)
}

ExecCommandClient is the client API for ExecCommand service.

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

func NewExecCommandClient

func NewExecCommandClient(cc *grpc.ClientConn) ExecCommandClient

type ExecCommandServer

type ExecCommandServer interface {
	Exec(*Command, ExecCommand_ExecServer) error
}

ExecCommandServer is the server API for ExecCommand service.

type ExecCommand_ExecClient

type ExecCommand_ExecClient interface {
	Recv() (*Message, error)
	grpc.ClientStream
}

type ExecCommand_ExecServer

type ExecCommand_ExecServer interface {
	Send(*Message) error
	grpc.ServerStream
}

type Message

type Message struct {
	Timestamp            *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Line                 uint32               `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	Message              string               `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) FmtString

func (m *Message) FmtString() string

func (*Message) FmtStringColor

func (m *Message) FmtStringColor(col int, addr string) string

func (*Message) GetLine

func (m *Message) GetLine() uint32

func (*Message) GetMessage

func (m *Message) GetMessage() string

func (*Message) GetTimestamp

func (m *Message) GetTimestamp() *timestamp.Timestamp

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type UnimplementedExecCommandServer

type UnimplementedExecCommandServer struct {
}

UnimplementedExecCommandServer can be embedded to have forward compatible implementations.

func (*UnimplementedExecCommandServer) Exec

Jump to

Keyboard shortcuts

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