Documentation ¶
Index ¶
- func RegisterExecCommandServer(s *grpc.Server, srv ExecCommandServer)
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetArguments() []string
- func (m *Command) GetCommand() string
- func (m *Command) GetDirectory() string
- func (m *Command) GetEnvironment() []string
- func (m *Command) GetGroup() string
- func (m *Command) GetUser() string
- func (m *Command) GetUuid() string
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Command) XXX_Merge(src proto.Message)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type ExecCommandClient
- type ExecCommandServer
- type ExecCommand_ExecClient
- type ExecCommand_ExecServer
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) FmtString() string
- func (m *Message) FmtStringColor(col int, addr string) string
- func (m *Message) GetLine() uint32
- func (m *Message) GetMessage() string
- func (m *Message) GetTimestamp() *timestamp.Timestamp
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type UnimplementedExecCommandServer
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) GetArguments ¶
func (*Command) GetCommand ¶
func (*Command) GetDirectory ¶
func (*Command) GetEnvironment ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_Unmarshal ¶
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) GetMessage ¶
func (*Message) GetTimestamp ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type UnimplementedExecCommandServer ¶
type UnimplementedExecCommandServer struct { }
UnimplementedExecCommandServer can be embedded to have forward compatible implementations.
func (*UnimplementedExecCommandServer) Exec ¶
func (*UnimplementedExecCommandServer) Exec(req *Command, srv ExecCommand_ExecServer) error
Click to show internal directories.
Click to hide internal directories.