worktracev1

package
v0.63.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorktraceControllerService_GetVersionInfo_FullMethodName = "/worktrace.v1.WorktraceControllerService/GetVersionInfo"
	WorktraceControllerService_GetRules_FullMethodName       = "/worktrace.v1.WorktraceControllerService/GetRules"
)

Variables

View Source
var File_worktrace_v1_worktrace_proto protoreflect.FileDescriptor
View Source
var WorktraceControllerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "worktrace.v1.WorktraceControllerService",
	HandlerType: (*WorktraceControllerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVersionInfo",
			Handler:    _WorktraceControllerService_GetVersionInfo_Handler,
		},
		{
			MethodName: "GetRules",
			Handler:    _WorktraceControllerService_GetRules_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "worktrace/v1/worktrace.proto",
}

WorktraceControllerService_ServiceDesc is the grpc.ServiceDesc for WorktraceControllerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterWorktraceControllerServiceServer

func RegisterWorktraceControllerServiceServer(s grpc.ServiceRegistrar, srv WorktraceControllerServiceServer)

Types

type GetRulesRequest

type GetRulesRequest struct {

	// current_version is the version of the rule set the caller currently runs,
	// as returned by an earlier GetRules call. Empty if the caller has none.
	CurrentVersion string `protobuf:"bytes,1,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
	// node_name is the Kubernetes node the detector runs on. Informational
	// (logging, and a future per-node or per-scope rule selection).
	NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	// contains filtered or unexported fields
}

GetRulesRequest asks for the current rule set.

func (*GetRulesRequest) Descriptor deprecated

func (*GetRulesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRulesRequest.ProtoReflect.Descriptor instead.

func (*GetRulesRequest) GetCurrentVersion

func (x *GetRulesRequest) GetCurrentVersion() string

func (*GetRulesRequest) GetNodeName

func (x *GetRulesRequest) GetNodeName() string

func (*GetRulesRequest) ProtoMessage

func (*GetRulesRequest) ProtoMessage()

func (*GetRulesRequest) ProtoReflect

func (x *GetRulesRequest) ProtoReflect() protoreflect.Message

func (*GetRulesRequest) Reset

func (x *GetRulesRequest) Reset()

func (*GetRulesRequest) String

func (x *GetRulesRequest) String() string

type GetRulesResponse

type GetRulesResponse struct {

	// version identifies the rule set: a content hash of all files, so equal
	// content always yields an equal version across controller replicas.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// not_modified is true when the caller's current_version equals version. In
	// that case files is empty and the caller keeps its current rules.
	NotModified bool `protobuf:"varint,2,opt,name=not_modified,json=notModified,proto3" json:"not_modified,omitempty"`
	// files maps a relative file name (e.g. "other-malicious/reverse_shell.yaml")
	// to its YAML content. It is always a complete snapshot, never a delta.
	Files map[string][]byte `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

GetRulesResponse carries the current rule set, or just its version.

func (*GetRulesResponse) Descriptor deprecated

func (*GetRulesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetRulesResponse.ProtoReflect.Descriptor instead.

func (*GetRulesResponse) GetFiles

func (x *GetRulesResponse) GetFiles() map[string][]byte

func (*GetRulesResponse) GetNotModified

func (x *GetRulesResponse) GetNotModified() bool

func (*GetRulesResponse) GetVersion

func (x *GetRulesResponse) GetVersion() string

func (*GetRulesResponse) ProtoMessage

func (*GetRulesResponse) ProtoMessage()

func (*GetRulesResponse) ProtoReflect

func (x *GetRulesResponse) ProtoReflect() protoreflect.Message

func (*GetRulesResponse) Reset

func (x *GetRulesResponse) Reset()

func (*GetRulesResponse) String

func (x *GetRulesResponse) String() string

type UnimplementedWorktraceControllerServiceServer

type UnimplementedWorktraceControllerServiceServer struct{}

UnimplementedWorktraceControllerServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedWorktraceControllerServiceServer) GetRules

func (UnimplementedWorktraceControllerServiceServer) GetVersionInfo

type UnsafeWorktraceControllerServiceServer

type UnsafeWorktraceControllerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeWorktraceControllerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorktraceControllerServiceServer will result in compilation errors.

type WorktraceControllerServiceClient

type WorktraceControllerServiceClient interface {
	// GetVersionInfo returns build and version metadata for the controller.
	GetVersionInfo(ctx context.Context, in *v1.GetVersionInfoRequest, opts ...grpc.CallOption) (*v1.GetVersionInfoResponse, error)
	// GetRules returns the current detection rule set. Detectors call it
	// periodically with the version they currently run; when it still matches,
	// the controller answers with not_modified and no payload.
	GetRules(ctx context.Context, in *GetRulesRequest, opts ...grpc.CallOption) (*GetRulesResponse, error)
}

WorktraceControllerServiceClient is the client API for WorktraceControllerService 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.

WorktraceControllerService is the gRPC API served by the worktrace controller to its detector instances.

type WorktraceControllerServiceServer

type WorktraceControllerServiceServer interface {
	// GetVersionInfo returns build and version metadata for the controller.
	GetVersionInfo(context.Context, *v1.GetVersionInfoRequest) (*v1.GetVersionInfoResponse, error)
	// GetRules returns the current detection rule set. Detectors call it
	// periodically with the version they currently run; when it still matches,
	// the controller answers with not_modified and no payload.
	GetRules(context.Context, *GetRulesRequest) (*GetRulesResponse, error)
	// contains filtered or unexported methods
}

WorktraceControllerServiceServer is the server API for WorktraceControllerService service. All implementations must embed UnimplementedWorktraceControllerServiceServer for forward compatibility.

WorktraceControllerService is the gRPC API served by the worktrace controller to its detector instances.

Jump to

Keyboard shortcuts

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