Documentation ¶
Index ¶
- func RegisterAdminServer(s *grpc.Server, srv AdminServer)
- func RegisterImplantServer(s *grpc.Server, srv ImplantServer)
- type AdminClient
- type AdminServer
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetIn() string
- func (m *Command) GetOut() 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 Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type ImplantClient
- type ImplantServer
- type UnimplementedAdminServer
- type UnimplementedImplantServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAdminServer ¶
func RegisterAdminServer(s *grpc.Server, srv AdminServer)
func RegisterImplantServer ¶
func RegisterImplantServer(s *grpc.Server, srv ImplantServer)
Types ¶
type AdminClient ¶
type AdminClient interface {
RunCommand(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Command, error)
}
AdminClient is the client API for Admin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdminClient ¶
func NewAdminClient(cc grpc.ClientConnInterface) AdminClient
type AdminServer ¶
AdminServer is the server API for Admin service.
type Command ¶
type Command struct { In string `protobuf:"bytes,1,opt,name=In,proto3" json:"In,omitempty"` Out string `protobuf:"bytes,2,opt,name=Out,proto3" json:"Out,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Command) Descriptor ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_Unmarshal ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type ImplantClient ¶
type ImplantClient interface { FetchCommand(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Command, error) SendOutput(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Empty, error) }
ImplantClient is the client API for Implant service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewImplantClient ¶
func NewImplantClient(cc grpc.ClientConnInterface) ImplantClient
type ImplantServer ¶
type ImplantServer interface { FetchCommand(context.Context, *Empty) (*Command, error) SendOutput(context.Context, *Command) (*Empty, error) }
ImplantServer is the server API for Implant service.
type UnimplementedAdminServer ¶
type UnimplementedAdminServer struct { }
UnimplementedAdminServer can be embedded to have forward compatible implementations.
func (*UnimplementedAdminServer) RunCommand ¶
type UnimplementedImplantServer ¶
type UnimplementedImplantServer struct { }
UnimplementedImplantServer can be embedded to have forward compatible implementations.