Documentation ¶
Index ¶
- Variables
- func RegisterMetricsServer(s grpc.ServiceRegistrar, srv MetricsServer)
- type AuditRequest
- func (*AuditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuditRequest) GetContainer() string
- func (x *AuditRequest) GetExecutable() string
- func (x *AuditRequest) GetNamespace() string
- func (x *AuditRequest) GetNode() string
- func (x *AuditRequest) GetPod() string
- func (x *AuditRequest) GetSyscall() string
- func (x *AuditRequest) GetType() AuditRequest_Type
- func (*AuditRequest) ProtoMessage()
- func (x *AuditRequest) ProtoReflect() protoreflect.Message
- func (x *AuditRequest) Reset()
- func (x *AuditRequest) String() string
- type AuditRequest_Type
- func (AuditRequest_Type) Descriptor() protoreflect.EnumDescriptor
- func (x AuditRequest_Type) Enum() *AuditRequest_Type
- func (AuditRequest_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuditRequest_Type) Number() protoreflect.EnumNumber
- func (x AuditRequest_Type) String() string
- func (AuditRequest_Type) Type() protoreflect.EnumType
- type BpfRequest
- func (*BpfRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BpfRequest) GetMountNamespace() uint64
- func (x *BpfRequest) GetNode() string
- func (x *BpfRequest) GetProfile() string
- func (*BpfRequest) ProtoMessage()
- func (x *BpfRequest) ProtoReflect() protoreflect.Message
- func (x *BpfRequest) Reset()
- func (x *BpfRequest) String() string
- type EmptyResponse
- type MetricsClient
- type MetricsServer
- type Metrics_AuditIncClient
- type Metrics_AuditIncServer
- type Metrics_BpfIncClient
- type Metrics_BpfIncServer
- type UnimplementedMetricsServer
- type UnsafeMetricsServer
Constants ¶
This section is empty.
Variables ¶
var ( AuditRequest_Type_name = map[int32]string{ 0: "SECCOMP", 1: "SELINUX", } AuditRequest_Type_value = map[string]int32{ "SECCOMP": 0, "SELINUX": 1, } )
Enum value maps for AuditRequest_Type.
var File_api_grpc_metrics_api_proto protoreflect.FileDescriptor
var Metrics_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api_metrics.Metrics", HandlerType: (*MetricsServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "AuditInc", Handler: _Metrics_AuditInc_Handler, ClientStreams: true, }, { StreamName: "BpfInc", Handler: _Metrics_BpfInc_Handler, ClientStreams: true, }, }, Metadata: "api/grpc/metrics/api.proto", }
Metrics_ServiceDesc is the grpc.ServiceDesc for Metrics service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetricsServer ¶
func RegisterMetricsServer(s grpc.ServiceRegistrar, srv MetricsServer)
Types ¶
type AuditRequest ¶
type AuditRequest struct { Type AuditRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=api_metrics.AuditRequest_Type" json:"type,omitempty"` Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` Pod string `protobuf:"bytes,4,opt,name=pod,proto3" json:"pod,omitempty"` Container string `protobuf:"bytes,5,opt,name=container,proto3" json:"container,omitempty"` Executable string `protobuf:"bytes,6,opt,name=executable,proto3" json:"executable,omitempty"` Syscall string `protobuf:"bytes,7,opt,name=syscall,proto3" json:"syscall,omitempty"` // contains filtered or unexported fields }
func (*AuditRequest) Descriptor
deprecated
func (*AuditRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuditRequest.ProtoReflect.Descriptor instead.
func (*AuditRequest) GetContainer ¶
func (x *AuditRequest) GetContainer() string
func (*AuditRequest) GetExecutable ¶
func (x *AuditRequest) GetExecutable() string
func (*AuditRequest) GetNamespace ¶
func (x *AuditRequest) GetNamespace() string
func (*AuditRequest) GetNode ¶
func (x *AuditRequest) GetNode() string
func (*AuditRequest) GetPod ¶
func (x *AuditRequest) GetPod() string
func (*AuditRequest) GetSyscall ¶
func (x *AuditRequest) GetSyscall() string
func (*AuditRequest) GetType ¶
func (x *AuditRequest) GetType() AuditRequest_Type
func (*AuditRequest) ProtoMessage ¶
func (*AuditRequest) ProtoMessage()
func (*AuditRequest) ProtoReflect ¶
func (x *AuditRequest) ProtoReflect() protoreflect.Message
func (*AuditRequest) Reset ¶
func (x *AuditRequest) Reset()
func (*AuditRequest) String ¶
func (x *AuditRequest) String() string
type AuditRequest_Type ¶
type AuditRequest_Type int32
const ( AuditRequest_SECCOMP AuditRequest_Type = 0 AuditRequest_SELINUX AuditRequest_Type = 1 )
func (AuditRequest_Type) Descriptor ¶
func (AuditRequest_Type) Descriptor() protoreflect.EnumDescriptor
func (AuditRequest_Type) Enum ¶
func (x AuditRequest_Type) Enum() *AuditRequest_Type
func (AuditRequest_Type) EnumDescriptor
deprecated
func (AuditRequest_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuditRequest_Type.Descriptor instead.
func (AuditRequest_Type) Number ¶
func (x AuditRequest_Type) Number() protoreflect.EnumNumber
func (AuditRequest_Type) String ¶
func (x AuditRequest_Type) String() string
func (AuditRequest_Type) Type ¶
func (AuditRequest_Type) Type() protoreflect.EnumType
type BpfRequest ¶
type BpfRequest struct { Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` MountNamespace uint64 `protobuf:"varint,2,opt,name=mount_namespace,json=mountNamespace,proto3" json:"mount_namespace,omitempty"` Profile string `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*BpfRequest) Descriptor
deprecated
func (*BpfRequest) Descriptor() ([]byte, []int)
Deprecated: Use BpfRequest.ProtoReflect.Descriptor instead.
func (*BpfRequest) GetMountNamespace ¶
func (x *BpfRequest) GetMountNamespace() uint64
func (*BpfRequest) GetNode ¶
func (x *BpfRequest) GetNode() string
func (*BpfRequest) GetProfile ¶
func (x *BpfRequest) GetProfile() string
func (*BpfRequest) ProtoMessage ¶
func (*BpfRequest) ProtoMessage()
func (*BpfRequest) ProtoReflect ¶
func (x *BpfRequest) ProtoReflect() protoreflect.Message
func (*BpfRequest) Reset ¶
func (x *BpfRequest) Reset()
func (*BpfRequest) String ¶
func (x *BpfRequest) 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 MetricsClient ¶
type MetricsClient interface { AuditInc(ctx context.Context, opts ...grpc.CallOption) (Metrics_AuditIncClient, error) BpfInc(ctx context.Context, opts ...grpc.CallOption) (Metrics_BpfIncClient, error) }
MetricsClient is the client API for Metrics 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 NewMetricsClient ¶
func NewMetricsClient(cc grpc.ClientConnInterface) MetricsClient
type MetricsServer ¶
type MetricsServer interface { AuditInc(Metrics_AuditIncServer) error BpfInc(Metrics_BpfIncServer) error // contains filtered or unexported methods }
MetricsServer is the server API for Metrics service. All implementations must embed UnimplementedMetricsServer for forward compatibility
type Metrics_AuditIncClient ¶
type Metrics_AuditIncClient interface { Send(*AuditRequest) error CloseAndRecv() (*EmptyResponse, error) grpc.ClientStream }
type Metrics_AuditIncServer ¶
type Metrics_AuditIncServer interface { SendAndClose(*EmptyResponse) error Recv() (*AuditRequest, error) grpc.ServerStream }
type Metrics_BpfIncClient ¶
type Metrics_BpfIncClient interface { Send(*BpfRequest) error CloseAndRecv() (*EmptyResponse, error) grpc.ClientStream }
type Metrics_BpfIncServer ¶
type Metrics_BpfIncServer interface { SendAndClose(*EmptyResponse) error Recv() (*BpfRequest, error) grpc.ServerStream }
type UnimplementedMetricsServer ¶
type UnimplementedMetricsServer struct { }
UnimplementedMetricsServer must be embedded to have forward compatible implementations.
func (UnimplementedMetricsServer) AuditInc ¶
func (UnimplementedMetricsServer) AuditInc(Metrics_AuditIncServer) error
func (UnimplementedMetricsServer) BpfInc ¶
func (UnimplementedMetricsServer) BpfInc(Metrics_BpfIncServer) error
type UnsafeMetricsServer ¶
type UnsafeMetricsServer interface {
// contains filtered or unexported methods
}
UnsafeMetricsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetricsServer will result in compilation errors.