Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEnricherServer(s grpc.ServiceRegistrar, srv EnricherServer)
- type AvcRequest
- type AvcResponse
- type AvcResponse_SelinuxAvc
- func (*AvcResponse_SelinuxAvc) Descriptor() ([]byte, []int)deprecated
- func (x *AvcResponse_SelinuxAvc) GetPerm() string
- func (x *AvcResponse_SelinuxAvc) GetScontext() string
- func (x *AvcResponse_SelinuxAvc) GetTclass() string
- func (x *AvcResponse_SelinuxAvc) GetTcontext() string
- func (*AvcResponse_SelinuxAvc) ProtoMessage()
- func (x *AvcResponse_SelinuxAvc) ProtoReflect() protoreflect.Message
- func (x *AvcResponse_SelinuxAvc) Reset()
- func (x *AvcResponse_SelinuxAvc) String() string
- type EmptyResponse
- type EnricherClient
- type EnricherServer
- type SyscallsRequest
- type SyscallsResponse
- func (*SyscallsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyscallsResponse) GetGoArch() string
- func (x *SyscallsResponse) GetSyscalls() []string
- func (*SyscallsResponse) ProtoMessage()
- func (x *SyscallsResponse) ProtoReflect() protoreflect.Message
- func (x *SyscallsResponse) Reset()
- func (x *SyscallsResponse) String() string
- type UnimplementedEnricherServer
- func (UnimplementedEnricherServer) Avcs(context.Context, *AvcRequest) (*AvcResponse, error)
- func (UnimplementedEnricherServer) ResetAvcs(context.Context, *AvcRequest) (*EmptyResponse, error)
- func (UnimplementedEnricherServer) ResetSyscalls(context.Context, *SyscallsRequest) (*EmptyResponse, error)
- func (UnimplementedEnricherServer) Syscalls(context.Context, *SyscallsRequest) (*SyscallsResponse, error)
- type UnsafeEnricherServer
Constants ¶
const ( Enricher_Syscalls_FullMethodName = "/api_enricher.Enricher/Syscalls" Enricher_ResetSyscalls_FullMethodName = "/api_enricher.Enricher/ResetSyscalls" Enricher_Avcs_FullMethodName = "/api_enricher.Enricher/Avcs" Enricher_ResetAvcs_FullMethodName = "/api_enricher.Enricher/ResetAvcs" )
Variables ¶
var Enricher_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api_enricher.Enricher", HandlerType: (*EnricherServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Syscalls", Handler: _Enricher_Syscalls_Handler, }, { MethodName: "ResetSyscalls", Handler: _Enricher_ResetSyscalls_Handler, }, { MethodName: "Avcs", Handler: _Enricher_Avcs_Handler, }, { MethodName: "ResetAvcs", Handler: _Enricher_ResetAvcs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/grpc/enricher/api.proto", }
Enricher_ServiceDesc is the grpc.ServiceDesc for Enricher service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_grpc_enricher_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEnricherServer ¶
func RegisterEnricherServer(s grpc.ServiceRegistrar, srv EnricherServer)
Types ¶
type AvcRequest ¶
type AvcRequest struct { Profile string `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*AvcRequest) Descriptor
deprecated
func (*AvcRequest) Descriptor() ([]byte, []int)
Deprecated: Use AvcRequest.ProtoReflect.Descriptor instead.
func (*AvcRequest) GetProfile ¶
func (x *AvcRequest) GetProfile() string
func (*AvcRequest) ProtoMessage ¶
func (*AvcRequest) ProtoMessage()
func (*AvcRequest) ProtoReflect ¶
func (x *AvcRequest) ProtoReflect() protoreflect.Message
func (*AvcRequest) Reset ¶
func (x *AvcRequest) Reset()
func (*AvcRequest) String ¶
func (x *AvcRequest) String() string
type AvcResponse ¶
type AvcResponse struct { Avc []*AvcResponse_SelinuxAvc `protobuf:"bytes,1,rep,name=avc,proto3" json:"avc,omitempty"` // contains filtered or unexported fields }
func (*AvcResponse) Descriptor
deprecated
func (*AvcResponse) Descriptor() ([]byte, []int)
Deprecated: Use AvcResponse.ProtoReflect.Descriptor instead.
func (*AvcResponse) GetAvc ¶
func (x *AvcResponse) GetAvc() []*AvcResponse_SelinuxAvc
func (*AvcResponse) ProtoMessage ¶
func (*AvcResponse) ProtoMessage()
func (*AvcResponse) ProtoReflect ¶
func (x *AvcResponse) ProtoReflect() protoreflect.Message
func (*AvcResponse) Reset ¶
func (x *AvcResponse) Reset()
func (*AvcResponse) String ¶
func (x *AvcResponse) String() string
type AvcResponse_SelinuxAvc ¶
type AvcResponse_SelinuxAvc struct { Perm string `protobuf:"bytes,1,opt,name=perm,proto3" json:"perm,omitempty"` Scontext string `protobuf:"bytes,2,opt,name=scontext,proto3" json:"scontext,omitempty"` Tcontext string `protobuf:"bytes,3,opt,name=tcontext,proto3" json:"tcontext,omitempty"` Tclass string `protobuf:"bytes,4,opt,name=tclass,proto3" json:"tclass,omitempty"` // contains filtered or unexported fields }
func (*AvcResponse_SelinuxAvc) Descriptor
deprecated
func (*AvcResponse_SelinuxAvc) Descriptor() ([]byte, []int)
Deprecated: Use AvcResponse_SelinuxAvc.ProtoReflect.Descriptor instead.
func (*AvcResponse_SelinuxAvc) GetPerm ¶
func (x *AvcResponse_SelinuxAvc) GetPerm() string
func (*AvcResponse_SelinuxAvc) GetScontext ¶
func (x *AvcResponse_SelinuxAvc) GetScontext() string
func (*AvcResponse_SelinuxAvc) GetTclass ¶
func (x *AvcResponse_SelinuxAvc) GetTclass() string
func (*AvcResponse_SelinuxAvc) GetTcontext ¶
func (x *AvcResponse_SelinuxAvc) GetTcontext() string
func (*AvcResponse_SelinuxAvc) ProtoMessage ¶
func (*AvcResponse_SelinuxAvc) ProtoMessage()
func (*AvcResponse_SelinuxAvc) ProtoReflect ¶
func (x *AvcResponse_SelinuxAvc) ProtoReflect() protoreflect.Message
func (*AvcResponse_SelinuxAvc) Reset ¶
func (x *AvcResponse_SelinuxAvc) Reset()
func (*AvcResponse_SelinuxAvc) String ¶
func (x *AvcResponse_SelinuxAvc) String() string
type EmptyResponse ¶
type EmptyResponse struct {
// contains filtered or unexported fields
}
func (*EmptyResponse) Descriptor
deprecated
func (*EmptyResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) ProtoReflect ¶
func (x *EmptyResponse) ProtoReflect() protoreflect.Message
func (*EmptyResponse) Reset ¶
func (x *EmptyResponse) Reset()
func (*EmptyResponse) String ¶
func (x *EmptyResponse) String() string
type EnricherClient ¶
type EnricherClient interface { Syscalls(ctx context.Context, in *SyscallsRequest, opts ...grpc.CallOption) (*SyscallsResponse, error) ResetSyscalls(ctx context.Context, in *SyscallsRequest, opts ...grpc.CallOption) (*EmptyResponse, error) Avcs(ctx context.Context, in *AvcRequest, opts ...grpc.CallOption) (*AvcResponse, error) ResetAvcs(ctx context.Context, in *AvcRequest, opts ...grpc.CallOption) (*EmptyResponse, error) }
EnricherClient is the client API for Enricher service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEnricherClient ¶
func NewEnricherClient(cc grpc.ClientConnInterface) EnricherClient
type EnricherServer ¶
type EnricherServer interface { Syscalls(context.Context, *SyscallsRequest) (*SyscallsResponse, error) ResetSyscalls(context.Context, *SyscallsRequest) (*EmptyResponse, error) Avcs(context.Context, *AvcRequest) (*AvcResponse, error) ResetAvcs(context.Context, *AvcRequest) (*EmptyResponse, error) // contains filtered or unexported methods }
EnricherServer is the server API for Enricher service. All implementations must embed UnimplementedEnricherServer for forward compatibility
type SyscallsRequest ¶
type SyscallsRequest struct { Profile string `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*SyscallsRequest) Descriptor
deprecated
func (*SyscallsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyscallsRequest.ProtoReflect.Descriptor instead.
func (*SyscallsRequest) GetProfile ¶
func (x *SyscallsRequest) GetProfile() string
func (*SyscallsRequest) ProtoMessage ¶
func (*SyscallsRequest) ProtoMessage()
func (*SyscallsRequest) ProtoReflect ¶
func (x *SyscallsRequest) ProtoReflect() protoreflect.Message
func (*SyscallsRequest) Reset ¶
func (x *SyscallsRequest) Reset()
func (*SyscallsRequest) String ¶
func (x *SyscallsRequest) String() string
type SyscallsResponse ¶
type SyscallsResponse struct { Syscalls []string `protobuf:"bytes,1,rep,name=syscalls,proto3" json:"syscalls,omitempty"` GoArch string `protobuf:"bytes,2,opt,name=go_arch,json=goArch,proto3" json:"go_arch,omitempty"` // contains filtered or unexported fields }
func (*SyscallsResponse) Descriptor
deprecated
func (*SyscallsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyscallsResponse.ProtoReflect.Descriptor instead.
func (*SyscallsResponse) GetGoArch ¶
func (x *SyscallsResponse) GetGoArch() string
func (*SyscallsResponse) GetSyscalls ¶
func (x *SyscallsResponse) GetSyscalls() []string
func (*SyscallsResponse) ProtoMessage ¶
func (*SyscallsResponse) ProtoMessage()
func (*SyscallsResponse) ProtoReflect ¶
func (x *SyscallsResponse) ProtoReflect() protoreflect.Message
func (*SyscallsResponse) Reset ¶
func (x *SyscallsResponse) Reset()
func (*SyscallsResponse) String ¶
func (x *SyscallsResponse) String() string
type UnimplementedEnricherServer ¶
type UnimplementedEnricherServer struct { }
UnimplementedEnricherServer must be embedded to have forward compatible implementations.
func (UnimplementedEnricherServer) Avcs ¶
func (UnimplementedEnricherServer) Avcs(context.Context, *AvcRequest) (*AvcResponse, error)
func (UnimplementedEnricherServer) ResetAvcs ¶
func (UnimplementedEnricherServer) ResetAvcs(context.Context, *AvcRequest) (*EmptyResponse, error)
func (UnimplementedEnricherServer) ResetSyscalls ¶
func (UnimplementedEnricherServer) ResetSyscalls(context.Context, *SyscallsRequest) (*EmptyResponse, error)
func (UnimplementedEnricherServer) Syscalls ¶
func (UnimplementedEnricherServer) Syscalls(context.Context, *SyscallsRequest) (*SyscallsResponse, error)
type UnsafeEnricherServer ¶
type UnsafeEnricherServer interface {
// contains filtered or unexported methods
}
UnsafeEnricherServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EnricherServer will result in compilation errors.