api_metrics

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_api_grpc_metrics_api_proto protoreflect.FileDescriptor
View Source
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) Enum

func (AuditRequest_Type) EnumDescriptor deprecated

func (AuditRequest_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuditRequest_Type.Descriptor instead.

func (AuditRequest_Type) Number

func (AuditRequest_Type) String

func (x AuditRequest_Type) String() string

func (AuditRequest_Type) Type

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) BpfInc

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.

Jump to

Keyboard shortcuts

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