Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterKVMServer(s grpc.ServiceRegistrar, srv KVMServer)
- func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer)
- func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer)
- func RegisterProbeServiceServer(s grpc.ServiceRegistrar, srv ProbeServiceServer)
- func RegisterStateAgentServer(s grpc.ServiceRegistrar, srv StateAgentServer)
- type AgentIdentity
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)deprecated
- func (x *Alert) GetATags() []string
- func (x *Alert) GetAction() string
- func (x *Alert) GetClusterName() string
- func (x *Alert) GetContainerID() string
- func (x *Alert) GetContainerImage() string
- func (x *Alert) GetContainerName() string
- func (x *Alert) GetCwd() string
- func (x *Alert) GetData() string
- func (x *Alert) GetDroppingAlertsInterval() int32
- func (x *Alert) GetEnforcer() string
- func (x *Alert) GetHostName() string
- func (x *Alert) GetHostPID() int32
- func (x *Alert) GetHostPPID() int32
- func (x *Alert) GetLabels() string
- func (x *Alert) GetMaxAlertsPerSec() int32
- func (x *Alert) GetMessage() string
- func (x *Alert) GetNamespaceName() string
- func (x *Alert) GetOperation() string
- func (x *Alert) GetOwner() *Podowner
- func (x *Alert) GetPID() int32
- func (x *Alert) GetPPID() int32
- func (x *Alert) GetParentProcessName() string
- func (x *Alert) GetPodName() string
- func (x *Alert) GetPolicyName() string
- func (x *Alert) GetProcessName() string
- func (x *Alert) GetResource() string
- func (x *Alert) GetResult() string
- func (x *Alert) GetSeverity() string
- func (x *Alert) GetSource() string
- func (x *Alert) GetTTY() string
- func (x *Alert) GetTags() string
- func (x *Alert) GetTimestamp() int64
- func (x *Alert) GetType() string
- func (x *Alert) GetUID() int32
- func (x *Alert) GetUpdatedTime() string
- func (*Alert) ProtoMessage()
- func (x *Alert) ProtoReflect() protoreflect.Message
- func (x *Alert) Reset()
- func (x *Alert) String() string
- type ContainerData
- func (*ContainerData) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerData) GetPolicyDataList() []*Policy
- func (x *ContainerData) GetPolicyEnabled() int32
- func (x *ContainerData) GetPolicyList() []string
- func (*ContainerData) ProtoMessage()
- func (x *ContainerData) ProtoReflect() protoreflect.Message
- func (x *ContainerData) Reset()
- func (x *ContainerData) String() string
- type Empty
- type HostSecurityPolicies
- func (*HostSecurityPolicies) Descriptor() ([]byte, []int)deprecated
- func (x *HostSecurityPolicies) GetPolicyDataList() []*Policy
- func (x *HostSecurityPolicies) GetPolicyList() []string
- func (*HostSecurityPolicies) ProtoMessage()
- func (x *HostSecurityPolicies) ProtoReflect() protoreflect.Message
- func (x *HostSecurityPolicies) Reset()
- func (x *HostSecurityPolicies) String() string
- type KVMClient
- type KVMServer
- type KVM_SendPolicyClient
- type KVM_SendPolicyServer
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetClusterName() string
- func (x *Log) GetContainerID() string
- func (x *Log) GetContainerImage() string
- func (x *Log) GetContainerName() string
- func (x *Log) GetCwd() string
- func (x *Log) GetData() string
- func (x *Log) GetHostName() string
- func (x *Log) GetHostPID() int32
- func (x *Log) GetHostPPID() int32
- func (x *Log) GetLabels() string
- func (x *Log) GetNamespaceName() string
- func (x *Log) GetOperation() string
- func (x *Log) GetOwner() *Podowner
- func (x *Log) GetPID() int32
- func (x *Log) GetPPID() int32
- func (x *Log) GetParentProcessName() string
- func (x *Log) GetPodName() string
- func (x *Log) GetProcessName() string
- func (x *Log) GetResource() string
- func (x *Log) GetResult() string
- func (x *Log) GetSource() string
- func (x *Log) GetTTY() string
- func (x *Log) GetTimestamp() int64
- func (x *Log) GetType() string
- func (x *Log) GetUID() int32
- func (x *Log) GetUpdatedTime() string
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type LogServiceClient
- type LogServiceServer
- type LogService_WatchAlertsClient
- type LogService_WatchAlertsServer
- type LogService_WatchLogsClient
- type LogService_WatchLogsServer
- type LogService_WatchMessagesClient
- type LogService_WatchMessagesServer
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetClusterName() string
- func (x *Message) GetHostIP() string
- func (x *Message) GetHostName() string
- func (x *Message) GetLevel() string
- func (x *Message) GetMessage() string
- func (x *Message) GetTimestamp() int64
- func (x *Message) GetType() string
- func (x *Message) GetUpdatedTime() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type NonceMessage
- type Podowner
- func (*Podowner) Descriptor() ([]byte, []int)deprecated
- func (x *Podowner) GetName() string
- func (x *Podowner) GetNamespace() string
- func (x *Podowner) GetRef() string
- func (*Podowner) ProtoMessage()
- func (x *Podowner) ProtoReflect() protoreflect.Message
- func (x *Podowner) Reset()
- func (x *Podowner) String() string
- type Policy
- type PolicyData
- type PolicyServiceClient
- type PolicyServiceServer
- type PolicyStatus
- func (PolicyStatus) Descriptor() protoreflect.EnumDescriptor
- func (x PolicyStatus) Enum() *PolicyStatus
- func (PolicyStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x PolicyStatus) Number() protoreflect.EnumNumber
- func (x PolicyStatus) String() string
- func (PolicyStatus) Type() protoreflect.EnumType
- type ProbeResponse
- func (*ProbeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeResponse) GetContainerList() []string
- func (x *ProbeResponse) GetContainerMap() map[string]*ContainerData
- func (x *ProbeResponse) GetHostMap() map[string]*HostSecurityPolicies
- func (*ProbeResponse) ProtoMessage()
- func (x *ProbeResponse) ProtoReflect() protoreflect.Message
- func (x *ProbeResponse) Reset()
- func (x *ProbeResponse) String() string
- type ProbeServiceClient
- type ProbeServiceServer
- type ReplyMessage
- type RequestMessage
- type Response
- type StateAgentClient
- type StateAgentServer
- type StateAgent_GetStateClient
- type StateAgent_GetStateServer
- type StateAgent_WatchStateClient
- type StateAgent_WatchStateServer
- type StateEvent
- func (*StateEvent) Descriptor() ([]byte, []int)deprecated
- func (x *StateEvent) GetKind() string
- func (x *StateEvent) GetName() string
- func (x *StateEvent) GetObject() []byte
- func (x *StateEvent) GetType() string
- func (*StateEvent) ProtoMessage()
- func (x *StateEvent) ProtoReflect() protoreflect.Message
- func (x *StateEvent) Reset()
- func (x *StateEvent) String() string
- type StateEvents
- type Status
- type UnimplementedKVMServer
- type UnimplementedLogServiceServer
- func (UnimplementedLogServiceServer) HealthCheck(context.Context, *NonceMessage) (*ReplyMessage, error)
- func (UnimplementedLogServiceServer) WatchAlerts(*RequestMessage, LogService_WatchAlertsServer) error
- func (UnimplementedLogServiceServer) WatchLogs(*RequestMessage, LogService_WatchLogsServer) error
- func (UnimplementedLogServiceServer) WatchMessages(*RequestMessage, LogService_WatchMessagesServer) error
- type UnimplementedPolicyServiceServer
- type UnimplementedProbeServiceServer
- type UnimplementedStateAgentServer
- type UnsafeKVMServer
- type UnsafeLogServiceServer
- type UnsafePolicyServiceServer
- type UnsafeProbeServiceServer
- type UnsafeStateAgentServer
Constants ¶
const ( KVM_RegisterAgentIdentity_FullMethodName = "/kvm.KVM/registerAgentIdentity" KVM_SendPolicy_FullMethodName = "/kvm.KVM/sendPolicy" )
const ( PolicyService_ContainerPolicy_FullMethodName = "/policy.PolicyService/containerPolicy" PolicyService_HostPolicy_FullMethodName = "/policy.PolicyService/hostPolicy" )
const ( StateAgent_WatchState_FullMethodName = "/state_agent.StateAgent/WatchState" StateAgent_GetState_FullMethodName = "/state_agent.StateAgent/GetState" )
const (
ProbeService_GetProbeData_FullMethodName = "/policy.ProbeService/getProbeData"
)
Variables ¶
var ( PolicyStatus_name = map[int32]string{ 0: "Failure", 1: "Applied", 2: "Deleted", 3: "Modified", 4: "NotExist", 5: "Invalid", 6: "NotEnabled", } PolicyStatus_value = map[string]int32{ "Failure": 0, "Applied": 1, "Deleted": 2, "Modified": 3, "NotExist": 4, "Invalid": 5, "NotEnabled": 6, } )
Enum value maps for PolicyStatus.
var File_kubearmor_proto protoreflect.FileDescriptor
var File_kvm_proto protoreflect.FileDescriptor
var File_policy_proto protoreflect.FileDescriptor
var File_state_proto protoreflect.FileDescriptor
var KVM_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kvm.KVM", HandlerType: (*KVMServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "registerAgentIdentity", Handler: _KVM_RegisterAgentIdentity_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "sendPolicy", Handler: _KVM_SendPolicy_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "kvm.proto", }
KVM_ServiceDesc is the grpc.ServiceDesc for KVM service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var LogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "feeder.LogService", HandlerType: (*LogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HealthCheck", Handler: _LogService_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchMessages", Handler: _LogService_WatchMessages_Handler, ServerStreams: true, }, { StreamName: "WatchAlerts", Handler: _LogService_WatchAlerts_Handler, ServerStreams: true, }, { StreamName: "WatchLogs", Handler: _LogService_WatchLogs_Handler, ServerStreams: true, }, }, Metadata: "kubearmor.proto", }
LogService_ServiceDesc is the grpc.ServiceDesc for LogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PolicyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "policy.PolicyService", HandlerType: (*PolicyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "containerPolicy", Handler: _PolicyService_ContainerPolicy_Handler, }, { MethodName: "hostPolicy", Handler: _PolicyService_HostPolicy_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "policy.proto", }
PolicyService_ServiceDesc is the grpc.ServiceDesc for PolicyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ProbeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "policy.ProbeService", HandlerType: (*ProbeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getProbeData", Handler: _ProbeService_GetProbeData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "policy.proto", }
ProbeService_ServiceDesc is the grpc.ServiceDesc for ProbeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var StateAgent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "state_agent.StateAgent", HandlerType: (*StateAgentServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "WatchState", Handler: _StateAgent_WatchState_Handler, ServerStreams: true, }, { StreamName: "GetState", Handler: _StateAgent_GetState_Handler, ServerStreams: true, }, }, Metadata: "state.proto", }
StateAgent_ServiceDesc is the grpc.ServiceDesc for StateAgent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKVMServer ¶
func RegisterKVMServer(s grpc.ServiceRegistrar, srv KVMServer)
func RegisterLogServiceServer ¶
func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer)
func RegisterPolicyServiceServer ¶
func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer)
func RegisterProbeServiceServer ¶
func RegisterProbeServiceServer(s grpc.ServiceRegistrar, srv ProbeServiceServer)
func RegisterStateAgentServer ¶
func RegisterStateAgentServer(s grpc.ServiceRegistrar, srv StateAgentServer)
Types ¶
type AgentIdentity ¶
type AgentIdentity struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // contains filtered or unexported fields }
func (*AgentIdentity) Descriptor
deprecated
func (*AgentIdentity) Descriptor() ([]byte, []int)
Deprecated: Use AgentIdentity.ProtoReflect.Descriptor instead.
func (*AgentIdentity) GetIdentity ¶
func (x *AgentIdentity) GetIdentity() string
func (*AgentIdentity) ProtoMessage ¶
func (*AgentIdentity) ProtoMessage()
func (*AgentIdentity) ProtoReflect ¶
func (x *AgentIdentity) ProtoReflect() protoreflect.Message
func (*AgentIdentity) Reset ¶
func (x *AgentIdentity) Reset()
func (*AgentIdentity) String ¶
func (x *AgentIdentity) String() string
type Alert ¶
type Alert struct { Timestamp int64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` UpdatedTime string `protobuf:"bytes,2,opt,name=UpdatedTime,proto3" json:"UpdatedTime,omitempty"` ClusterName string `protobuf:"bytes,3,opt,name=ClusterName,proto3" json:"ClusterName,omitempty"` HostName string `protobuf:"bytes,4,opt,name=HostName,proto3" json:"HostName,omitempty"` NamespaceName string `protobuf:"bytes,5,opt,name=NamespaceName,proto3" json:"NamespaceName,omitempty"` Owner *Podowner `protobuf:"bytes,31,opt,name=Owner,proto3" json:"Owner,omitempty"` PodName string `protobuf:"bytes,6,opt,name=PodName,proto3" json:"PodName,omitempty"` Labels string `protobuf:"bytes,29,opt,name=Labels,proto3" json:"Labels,omitempty"` ContainerID string `protobuf:"bytes,7,opt,name=ContainerID,proto3" json:"ContainerID,omitempty"` ContainerName string `protobuf:"bytes,8,opt,name=ContainerName,proto3" json:"ContainerName,omitempty"` ContainerImage string `protobuf:"bytes,24,opt,name=ContainerImage,proto3" json:"ContainerImage,omitempty"` HostPPID int32 `protobuf:"varint,27,opt,name=HostPPID,proto3" json:"HostPPID,omitempty"` HostPID int32 `protobuf:"varint,9,opt,name=HostPID,proto3" json:"HostPID,omitempty"` PPID int32 `protobuf:"varint,10,opt,name=PPID,proto3" json:"PPID,"` PID int32 `protobuf:"varint,11,opt,name=PID,proto3" json:"PID,omitempty"` UID int32 `protobuf:"varint,12,opt,name=UID,proto3" json:"UID,"` ParentProcessName string `protobuf:"bytes,25,opt,name=ParentProcessName,proto3" json:"ParentProcessName,omitempty"` ProcessName string `protobuf:"bytes,26,opt,name=ProcessName,proto3" json:"ProcessName,omitempty"` PolicyName string `protobuf:"bytes,13,opt,name=PolicyName,proto3" json:"PolicyName,omitempty"` Severity string `protobuf:"bytes,14,opt,name=Severity,proto3" json:"Severity,omitempty"` Tags string `protobuf:"bytes,15,opt,name=Tags,proto3" json:"Tags,omitempty"` ATags []string `protobuf:"bytes,30,rep,name=ATags,proto3" json:"ATags,omitempty"` Message string `protobuf:"bytes,16,opt,name=Message,proto3" json:"Message,omitempty"` Type string `protobuf:"bytes,17,opt,name=Type,proto3" json:"Type,omitempty"` Source string `protobuf:"bytes,18,opt,name=Source,proto3" json:"Source,omitempty"` Operation string `protobuf:"bytes,19,opt,name=Operation,proto3" json:"Operation,omitempty"` Resource string `protobuf:"bytes,20,opt,name=Resource,proto3" json:"Resource,omitempty"` Data string `protobuf:"bytes,21,opt,name=Data,proto3" json:"Data,omitempty"` Enforcer string `protobuf:"bytes,28,opt,name=Enforcer,proto3" json:"Enforcer,omitempty"` Action string `protobuf:"bytes,22,opt,name=Action,proto3" json:"Action,omitempty"` Result string `protobuf:"bytes,23,opt,name=Result,proto3" json:"Result,omitempty"` Cwd string `protobuf:"bytes,32,opt,name=Cwd,proto3" json:"Cwd,omitempty"` TTY string `protobuf:"bytes,33,opt,name=TTY,proto3" json:"TTY,omitempty"` MaxAlertsPerSec int32 `protobuf:"varint,34,opt,name=MaxAlertsPerSec,proto3" json:"MaxAlertsPerSec,omitempty"` DroppingAlertsInterval int32 `protobuf:"varint,35,opt,name=DroppingAlertsInterval,proto3" json:"DroppingAlertsInterval,omitempty"` // contains filtered or unexported fields }
alert struct
func (*Alert) Descriptor
deprecated
func (*Alert) GetClusterName ¶
func (*Alert) GetContainerID ¶
func (*Alert) GetContainerImage ¶
func (*Alert) GetContainerName ¶
func (*Alert) GetDroppingAlertsInterval ¶
func (*Alert) GetEnforcer ¶
func (*Alert) GetHostName ¶
func (*Alert) GetHostPID ¶
func (*Alert) GetHostPPID ¶
func (*Alert) GetMaxAlertsPerSec ¶
func (*Alert) GetMessage ¶
func (*Alert) GetNamespaceName ¶
func (*Alert) GetOperation ¶
func (*Alert) GetParentProcessName ¶
func (*Alert) GetPodName ¶
func (*Alert) GetPolicyName ¶
func (*Alert) GetProcessName ¶
func (*Alert) GetResource ¶
func (*Alert) GetSeverity ¶
func (*Alert) GetTimestamp ¶
func (*Alert) GetUpdatedTime ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶
func (x *Alert) ProtoReflect() protoreflect.Message
type ContainerData ¶
type ContainerData struct { PolicyList []string `protobuf:"bytes,1,rep,name=policyList,proto3" json:"policyList,omitempty"` PolicyEnabled int32 `protobuf:"varint,2,opt,name=policyEnabled,proto3" json:"policyEnabled,omitempty"` PolicyDataList []*Policy `protobuf:"bytes,3,rep,name=policyDataList,proto3" json:"policyDataList,omitempty"` // contains filtered or unexported fields }
func (*ContainerData) Descriptor
deprecated
func (*ContainerData) Descriptor() ([]byte, []int)
Deprecated: Use ContainerData.ProtoReflect.Descriptor instead.
func (*ContainerData) GetPolicyDataList ¶
func (x *ContainerData) GetPolicyDataList() []*Policy
func (*ContainerData) GetPolicyEnabled ¶
func (x *ContainerData) GetPolicyEnabled() int32
func (*ContainerData) GetPolicyList ¶
func (x *ContainerData) GetPolicyList() []string
func (*ContainerData) ProtoMessage ¶
func (*ContainerData) ProtoMessage()
func (*ContainerData) ProtoReflect ¶
func (x *ContainerData) ProtoReflect() protoreflect.Message
func (*ContainerData) Reset ¶
func (x *ContainerData) Reset()
func (*ContainerData) String ¶
func (x *ContainerData) String() string
type HostSecurityPolicies ¶
type HostSecurityPolicies struct { PolicyList []string `protobuf:"bytes,1,rep,name=policyList,proto3" json:"policyList,omitempty"` PolicyDataList []*Policy `protobuf:"bytes,2,rep,name=policyDataList,proto3" json:"policyDataList,omitempty"` // contains filtered or unexported fields }
func (*HostSecurityPolicies) Descriptor
deprecated
func (*HostSecurityPolicies) Descriptor() ([]byte, []int)
Deprecated: Use HostSecurityPolicies.ProtoReflect.Descriptor instead.
func (*HostSecurityPolicies) GetPolicyDataList ¶
func (x *HostSecurityPolicies) GetPolicyDataList() []*Policy
func (*HostSecurityPolicies) GetPolicyList ¶
func (x *HostSecurityPolicies) GetPolicyList() []string
func (*HostSecurityPolicies) ProtoMessage ¶
func (*HostSecurityPolicies) ProtoMessage()
func (*HostSecurityPolicies) ProtoReflect ¶
func (x *HostSecurityPolicies) ProtoReflect() protoreflect.Message
func (*HostSecurityPolicies) Reset ¶
func (x *HostSecurityPolicies) Reset()
func (*HostSecurityPolicies) String ¶
func (x *HostSecurityPolicies) String() string
type KVMClient ¶
type KVMClient interface { RegisterAgentIdentity(ctx context.Context, in *AgentIdentity, opts ...grpc.CallOption) (*Status, error) SendPolicy(ctx context.Context, opts ...grpc.CallOption) (KVM_SendPolicyClient, error) }
KVMClient is the client API for KVM 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 NewKVMClient ¶
func NewKVMClient(cc grpc.ClientConnInterface) KVMClient
type KVMServer ¶
type KVMServer interface { RegisterAgentIdentity(context.Context, *AgentIdentity) (*Status, error) SendPolicy(KVM_SendPolicyServer) error }
KVMServer is the server API for KVM service. All implementations should embed UnimplementedKVMServer for forward compatibility
type KVM_SendPolicyClient ¶
type KVM_SendPolicyClient interface { Send(*Status) error Recv() (*PolicyData, error) grpc.ClientStream }
type KVM_SendPolicyServer ¶
type KVM_SendPolicyServer interface { Send(*PolicyData) error Recv() (*Status, error) grpc.ServerStream }
type Log ¶
type Log struct { Timestamp int64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` UpdatedTime string `protobuf:"bytes,2,opt,name=UpdatedTime,proto3" json:"UpdatedTime,omitempty"` ClusterName string `protobuf:"bytes,3,opt,name=ClusterName,proto3" json:"ClusterName,omitempty"` HostName string `protobuf:"bytes,4,opt,name=HostName,proto3" json:"HostName,omitempty"` NamespaceName string `protobuf:"bytes,5,opt,name=NamespaceName,proto3" json:"NamespaceName,omitempty"` Owner *Podowner `protobuf:"bytes,24,opt,name=Owner,proto3" json:"Owner,omitempty"` PodName string `protobuf:"bytes,6,opt,name=PodName,proto3" json:"PodName,omitempty"` Labels string `protobuf:"bytes,23,opt,name=Labels,proto3" json:"Labels,omitempty"` ContainerID string `protobuf:"bytes,7,opt,name=ContainerID,proto3" json:"ContainerID,omitempty"` ContainerName string `protobuf:"bytes,8,opt,name=ContainerName,proto3" json:"ContainerName,omitempty"` ContainerImage string `protobuf:"bytes,19,opt,name=ContainerImage,proto3" json:"ContainerImage,omitempty"` ParentProcessName string `protobuf:"bytes,20,opt,name=ParentProcessName,proto3" json:"ParentProcessName,omitempty"` ProcessName string `protobuf:"bytes,21,opt,name=ProcessName,proto3" json:"ProcessName,omitempty"` HostPPID int32 `protobuf:"varint,22,opt,name=HostPPID,proto3" json:"HostPPID,omitempty"` HostPID int32 `protobuf:"varint,9,opt,name=HostPID,proto3" json:"HostPID,omitempty"` PPID int32 `protobuf:"varint,10,opt,name=PPID,proto3" json:"PPID,"` PID int32 `protobuf:"varint,11,opt,name=PID,proto3" json:"PID,omitempty"` UID int32 `protobuf:"varint,12,opt,name=UID,proto3" json:"UID,"` Type string `protobuf:"bytes,13,opt,name=Type,proto3" json:"Type,omitempty"` Source string `protobuf:"bytes,14,opt,name=Source,proto3" json:"Source,omitempty"` Operation string `protobuf:"bytes,15,opt,name=Operation,proto3" json:"Operation,omitempty"` Resource string `protobuf:"bytes,16,opt,name=Resource,proto3" json:"Resource,omitempty"` Data string `protobuf:"bytes,17,opt,name=Data,proto3" json:"Data,omitempty"` Result string `protobuf:"bytes,18,opt,name=Result,proto3" json:"Result,omitempty"` Cwd string `protobuf:"bytes,25,opt,name=Cwd,proto3" json:"Cwd,omitempty"` TTY string `protobuf:"bytes,26,opt,name=TTY,proto3" json:"TTY,omitempty"` // contains filtered or unexported fields }
log struct
func (*Log) Descriptor
deprecated
func (*Log) GetClusterName ¶
func (*Log) GetContainerID ¶
func (*Log) GetContainerImage ¶
func (*Log) GetContainerName ¶
func (*Log) GetHostName ¶
func (*Log) GetHostPID ¶
func (*Log) GetHostPPID ¶
func (*Log) GetNamespaceName ¶
func (*Log) GetOperation ¶
func (*Log) GetParentProcessName ¶
func (*Log) GetPodName ¶
func (*Log) GetProcessName ¶
func (*Log) GetResource ¶
func (*Log) GetTimestamp ¶
func (*Log) GetUpdatedTime ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type LogServiceClient ¶
type LogServiceClient interface { // DEPRECATED: use "google.golang.org/grpc/health/grpc_health_v1" HealthCheck(ctx context.Context, in *NonceMessage, opts ...grpc.CallOption) (*ReplyMessage, error) WatchMessages(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (LogService_WatchMessagesClient, error) WatchAlerts(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (LogService_WatchAlertsClient, error) WatchLogs(ctx context.Context, in *RequestMessage, opts ...grpc.CallOption) (LogService_WatchLogsClient, error) }
LogServiceClient is the client API for LogService 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 NewLogServiceClient ¶
func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient
type LogServiceServer ¶
type LogServiceServer interface { // DEPRECATED: use "google.golang.org/grpc/health/grpc_health_v1" HealthCheck(context.Context, *NonceMessage) (*ReplyMessage, error) WatchMessages(*RequestMessage, LogService_WatchMessagesServer) error WatchAlerts(*RequestMessage, LogService_WatchAlertsServer) error WatchLogs(*RequestMessage, LogService_WatchLogsServer) error }
LogServiceServer is the server API for LogService service. All implementations should embed UnimplementedLogServiceServer for forward compatibility
type LogService_WatchAlertsClient ¶
type LogService_WatchAlertsClient interface { Recv() (*Alert, error) grpc.ClientStream }
type LogService_WatchAlertsServer ¶
type LogService_WatchAlertsServer interface { Send(*Alert) error grpc.ServerStream }
type LogService_WatchLogsClient ¶
type LogService_WatchLogsClient interface { Recv() (*Log, error) grpc.ClientStream }
type LogService_WatchLogsServer ¶
type LogService_WatchLogsServer interface { Send(*Log) error grpc.ServerStream }
type LogService_WatchMessagesClient ¶
type LogService_WatchMessagesClient interface { Recv() (*Message, error) grpc.ClientStream }
type LogService_WatchMessagesServer ¶
type LogService_WatchMessagesServer interface { Send(*Message) error grpc.ServerStream }
type Message ¶
type Message struct { Timestamp int64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` UpdatedTime string `protobuf:"bytes,2,opt,name=UpdatedTime,proto3" json:"UpdatedTime,omitempty"` ClusterName string `protobuf:"bytes,3,opt,name=ClusterName,proto3" json:"ClusterName,omitempty"` HostName string `protobuf:"bytes,4,opt,name=HostName,proto3" json:"HostName,omitempty"` HostIP string `protobuf:"bytes,5,opt,name=HostIP,proto3" json:"HostIP,omitempty"` Type string `protobuf:"bytes,6,opt,name=Type,proto3" json:"Type,omitempty"` Level string `protobuf:"bytes,7,opt,name=Level,proto3" json:"Level,omitempty"` Message string `protobuf:"bytes,8,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
message struct
func (*Message) Descriptor
deprecated
func (*Message) GetClusterName ¶
func (*Message) GetHostName ¶
func (*Message) GetMessage ¶
func (*Message) GetTimestamp ¶
func (*Message) GetUpdatedTime ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type NonceMessage ¶
type NonceMessage struct { Nonce int32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
Health check
func (*NonceMessage) Descriptor
deprecated
func (*NonceMessage) Descriptor() ([]byte, []int)
Deprecated: Use NonceMessage.ProtoReflect.Descriptor instead.
func (*NonceMessage) GetNonce ¶
func (x *NonceMessage) GetNonce() int32
func (*NonceMessage) ProtoMessage ¶
func (*NonceMessage) ProtoMessage()
func (*NonceMessage) ProtoReflect ¶
func (x *NonceMessage) ProtoReflect() protoreflect.Message
func (*NonceMessage) Reset ¶
func (x *NonceMessage) Reset()
func (*NonceMessage) String ¶
func (x *NonceMessage) String() string
type Podowner ¶
type Podowner struct { Ref string `protobuf:"bytes,1,opt,name=Ref,proto3" json:"Ref,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=Namespace,proto3" json:"Namespace,omitempty"` // contains filtered or unexported fields }
podowner struct
func (*Podowner) Descriptor
deprecated
func (*Podowner) GetNamespace ¶
func (*Podowner) ProtoMessage ¶
func (*Podowner) ProtoMessage()
func (*Podowner) ProtoReflect ¶
func (x *Podowner) ProtoReflect() protoreflect.Message
type Policy ¶
type Policy struct { Policy []byte `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` // contains filtered or unexported fields }
func (*Policy) Descriptor
deprecated
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
type PolicyData ¶
type PolicyData struct { PolicyData []byte `protobuf:"bytes,1,opt,name=policyData,proto3" json:"policyData,omitempty"` // contains filtered or unexported fields }
func (*PolicyData) Descriptor
deprecated
func (*PolicyData) Descriptor() ([]byte, []int)
Deprecated: Use PolicyData.ProtoReflect.Descriptor instead.
func (*PolicyData) GetPolicyData ¶
func (x *PolicyData) GetPolicyData() []byte
func (*PolicyData) ProtoMessage ¶
func (*PolicyData) ProtoMessage()
func (*PolicyData) ProtoReflect ¶
func (x *PolicyData) ProtoReflect() protoreflect.Message
func (*PolicyData) Reset ¶
func (x *PolicyData) Reset()
func (*PolicyData) String ¶
func (x *PolicyData) String() string
type PolicyServiceClient ¶
type PolicyServiceClient interface { ContainerPolicy(ctx context.Context, in *Policy, opts ...grpc.CallOption) (*Response, error) HostPolicy(ctx context.Context, in *Policy, opts ...grpc.CallOption) (*Response, error) }
PolicyServiceClient is the client API for PolicyService 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 NewPolicyServiceClient ¶
func NewPolicyServiceClient(cc grpc.ClientConnInterface) PolicyServiceClient
type PolicyServiceServer ¶
type PolicyServiceServer interface { ContainerPolicy(context.Context, *Policy) (*Response, error) HostPolicy(context.Context, *Policy) (*Response, error) }
PolicyServiceServer is the server API for PolicyService service. All implementations should embed UnimplementedPolicyServiceServer for forward compatibility.
type PolicyStatus ¶
type PolicyStatus int32
const ( PolicyStatus_Failure PolicyStatus = 0 PolicyStatus_Applied PolicyStatus = 1 PolicyStatus_Deleted PolicyStatus = 2 PolicyStatus_Modified PolicyStatus = 3 PolicyStatus_NotExist PolicyStatus = 4 PolicyStatus_Invalid PolicyStatus = 5 PolicyStatus_NotEnabled PolicyStatus = 6 )
func (PolicyStatus) Descriptor ¶
func (PolicyStatus) Descriptor() protoreflect.EnumDescriptor
func (PolicyStatus) Enum ¶
func (x PolicyStatus) Enum() *PolicyStatus
func (PolicyStatus) EnumDescriptor
deprecated
func (PolicyStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use PolicyStatus.Descriptor instead.
func (PolicyStatus) Number ¶
func (x PolicyStatus) Number() protoreflect.EnumNumber
func (PolicyStatus) String ¶
func (x PolicyStatus) String() string
func (PolicyStatus) Type ¶
func (PolicyStatus) Type() protoreflect.EnumType
type ProbeResponse ¶
type ProbeResponse struct { ContainerList []string `protobuf:"bytes,1,rep,name=containerList,proto3" json:"containerList,omitempty"` ContainerMap map[string]*ContainerData `` /* 151-byte string literal not displayed */ HostMap map[string]*HostSecurityPolicies `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ProbeResponse) Descriptor
deprecated
func (*ProbeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProbeResponse.ProtoReflect.Descriptor instead.
func (*ProbeResponse) GetContainerList ¶
func (x *ProbeResponse) GetContainerList() []string
func (*ProbeResponse) GetContainerMap ¶
func (x *ProbeResponse) GetContainerMap() map[string]*ContainerData
func (*ProbeResponse) GetHostMap ¶
func (x *ProbeResponse) GetHostMap() map[string]*HostSecurityPolicies
func (*ProbeResponse) ProtoMessage ¶
func (*ProbeResponse) ProtoMessage()
func (*ProbeResponse) ProtoReflect ¶
func (x *ProbeResponse) ProtoReflect() protoreflect.Message
func (*ProbeResponse) Reset ¶
func (x *ProbeResponse) Reset()
func (*ProbeResponse) String ¶
func (x *ProbeResponse) String() string
type ProbeServiceClient ¶
type ProbeServiceClient interface {
GetProbeData(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProbeResponse, error)
}
ProbeServiceClient is the client API for ProbeService 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 NewProbeServiceClient ¶
func NewProbeServiceClient(cc grpc.ClientConnInterface) ProbeServiceClient
type ProbeServiceServer ¶
type ProbeServiceServer interface {
GetProbeData(context.Context, *empty.Empty) (*ProbeResponse, error)
}
ProbeServiceServer is the server API for ProbeService service. All implementations should embed UnimplementedProbeServiceServer for forward compatibility.
type ReplyMessage ¶
type ReplyMessage struct { Retval int32 `protobuf:"varint,1,opt,name=Retval,proto3" json:"Retval,omitempty"` // contains filtered or unexported fields }
reply message
func (*ReplyMessage) Descriptor
deprecated
func (*ReplyMessage) Descriptor() ([]byte, []int)
Deprecated: Use ReplyMessage.ProtoReflect.Descriptor instead.
func (*ReplyMessage) GetRetval ¶
func (x *ReplyMessage) GetRetval() int32
func (*ReplyMessage) ProtoMessage ¶
func (*ReplyMessage) ProtoMessage()
func (*ReplyMessage) ProtoReflect ¶
func (x *ReplyMessage) ProtoReflect() protoreflect.Message
func (*ReplyMessage) Reset ¶
func (x *ReplyMessage) Reset()
func (*ReplyMessage) String ¶
func (x *ReplyMessage) String() string
type RequestMessage ¶
type RequestMessage struct { Filter string `protobuf:"bytes,1,opt,name=Filter,proto3" json:"Filter,omitempty"` // contains filtered or unexported fields }
request message
func (*RequestMessage) Descriptor
deprecated
func (*RequestMessage) Descriptor() ([]byte, []int)
Deprecated: Use RequestMessage.ProtoReflect.Descriptor instead.
func (*RequestMessage) GetFilter ¶
func (x *RequestMessage) GetFilter() string
func (*RequestMessage) ProtoMessage ¶
func (*RequestMessage) ProtoMessage()
func (*RequestMessage) ProtoReflect ¶
func (x *RequestMessage) ProtoReflect() protoreflect.Message
func (*RequestMessage) Reset ¶
func (x *RequestMessage) Reset()
func (*RequestMessage) String ¶
func (x *RequestMessage) String() string
type Response ¶
type Response struct { Status PolicyStatus `protobuf:"varint,1,opt,name=status,proto3,enum=policy.PolicyStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetStatus ¶
func (x *Response) GetStatus() PolicyStatus
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type StateAgentClient ¶
type StateAgentClient interface { // stream which continuously pushes state events WatchState(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (StateAgent_WatchStateClient, error) // get all state events in one go GetState(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (StateAgent_GetStateClient, error) }
StateAgentClient is the client API for StateAgent 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 NewStateAgentClient ¶
func NewStateAgentClient(cc grpc.ClientConnInterface) StateAgentClient
type StateAgentServer ¶
type StateAgentServer interface { // stream which continuously pushes state events WatchState(*emptypb.Empty, StateAgent_WatchStateServer) error // get all state events in one go GetState(*emptypb.Empty, StateAgent_GetStateServer) error }
StateAgentServer is the server API for StateAgent service. All implementations should embed UnimplementedStateAgentServer for forward compatibility
type StateAgent_GetStateClient ¶
type StateAgent_GetStateClient interface { Recv() (*StateEvents, error) grpc.ClientStream }
type StateAgent_GetStateServer ¶
type StateAgent_GetStateServer interface { Send(*StateEvents) error grpc.ServerStream }
type StateAgent_WatchStateClient ¶
type StateAgent_WatchStateClient interface { Recv() (*StateEvent, error) grpc.ClientStream }
type StateAgent_WatchStateServer ¶
type StateAgent_WatchStateServer interface { Send(*StateEvent) error grpc.ServerStream }
type StateEvent ¶
type StateEvent struct { Kind string `protobuf:"bytes,1,opt,name=Kind,proto3" json:"Kind,omitempty"` Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` Object []byte `protobuf:"bytes,4,opt,name=Object,proto3" json:"Object,omitempty"` // contains filtered or unexported fields }
func (*StateEvent) Descriptor
deprecated
func (*StateEvent) Descriptor() ([]byte, []int)
Deprecated: Use StateEvent.ProtoReflect.Descriptor instead.
func (*StateEvent) GetKind ¶
func (x *StateEvent) GetKind() string
func (*StateEvent) GetName ¶
func (x *StateEvent) GetName() string
func (*StateEvent) GetObject ¶
func (x *StateEvent) GetObject() []byte
func (*StateEvent) GetType ¶
func (x *StateEvent) GetType() string
func (*StateEvent) ProtoMessage ¶
func (*StateEvent) ProtoMessage()
func (*StateEvent) ProtoReflect ¶
func (x *StateEvent) ProtoReflect() protoreflect.Message
func (*StateEvent) Reset ¶
func (x *StateEvent) Reset()
func (*StateEvent) String ¶
func (x *StateEvent) String() string
type StateEvents ¶
type StateEvents struct { StateEvents []*StateEvent `protobuf:"bytes,1,rep,name=StateEvents,proto3" json:"StateEvents,omitempty"` // contains filtered or unexported fields }
func (*StateEvents) Descriptor
deprecated
func (*StateEvents) Descriptor() ([]byte, []int)
Deprecated: Use StateEvents.ProtoReflect.Descriptor instead.
func (*StateEvents) GetStateEvents ¶
func (x *StateEvents) GetStateEvents() []*StateEvent
func (*StateEvents) ProtoMessage ¶
func (*StateEvents) ProtoMessage()
func (*StateEvents) ProtoReflect ¶
func (x *StateEvents) ProtoReflect() protoreflect.Message
func (*StateEvents) Reset ¶
func (x *StateEvents) Reset()
func (*StateEvents) String ¶
func (x *StateEvents) String() string
type Status ¶
type Status struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type UnimplementedKVMServer ¶
type UnimplementedKVMServer struct { }
UnimplementedKVMServer should be embedded to have forward compatible implementations.
func (UnimplementedKVMServer) RegisterAgentIdentity ¶
func (UnimplementedKVMServer) RegisterAgentIdentity(context.Context, *AgentIdentity) (*Status, error)
func (UnimplementedKVMServer) SendPolicy ¶
func (UnimplementedKVMServer) SendPolicy(KVM_SendPolicyServer) error
type UnimplementedLogServiceServer ¶
type UnimplementedLogServiceServer struct { }
UnimplementedLogServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedLogServiceServer) HealthCheck ¶
func (UnimplementedLogServiceServer) HealthCheck(context.Context, *NonceMessage) (*ReplyMessage, error)
func (UnimplementedLogServiceServer) WatchAlerts ¶
func (UnimplementedLogServiceServer) WatchAlerts(*RequestMessage, LogService_WatchAlertsServer) error
func (UnimplementedLogServiceServer) WatchLogs ¶
func (UnimplementedLogServiceServer) WatchLogs(*RequestMessage, LogService_WatchLogsServer) error
func (UnimplementedLogServiceServer) WatchMessages ¶
func (UnimplementedLogServiceServer) WatchMessages(*RequestMessage, LogService_WatchMessagesServer) error
type UnimplementedPolicyServiceServer ¶
type UnimplementedPolicyServiceServer struct{}
UnimplementedPolicyServiceServer should 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 (UnimplementedPolicyServiceServer) ContainerPolicy ¶
func (UnimplementedPolicyServiceServer) HostPolicy ¶
type UnimplementedProbeServiceServer ¶
type UnimplementedProbeServiceServer struct{}
UnimplementedProbeServiceServer should 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 (UnimplementedProbeServiceServer) GetProbeData ¶
func (UnimplementedProbeServiceServer) GetProbeData(context.Context, *empty.Empty) (*ProbeResponse, error)
type UnimplementedStateAgentServer ¶
type UnimplementedStateAgentServer struct { }
UnimplementedStateAgentServer should be embedded to have forward compatible implementations.
func (UnimplementedStateAgentServer) GetState ¶
func (UnimplementedStateAgentServer) GetState(*emptypb.Empty, StateAgent_GetStateServer) error
func (UnimplementedStateAgentServer) WatchState ¶
func (UnimplementedStateAgentServer) WatchState(*emptypb.Empty, StateAgent_WatchStateServer) error
type UnsafeKVMServer ¶
type UnsafeKVMServer interface {
// contains filtered or unexported methods
}
UnsafeKVMServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KVMServer will result in compilation errors.
type UnsafeLogServiceServer ¶
type UnsafeLogServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogServiceServer will result in compilation errors.
type UnsafePolicyServiceServer ¶
type UnsafePolicyServiceServer interface {
// contains filtered or unexported methods
}
UnsafePolicyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PolicyServiceServer will result in compilation errors.
type UnsafeProbeServiceServer ¶
type UnsafeProbeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProbeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProbeServiceServer will result in compilation errors.
type UnsafeStateAgentServer ¶
type UnsafeStateAgentServer interface {
// contains filtered or unexported methods
}
UnsafeStateAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StateAgentServer will result in compilation errors.