api

package
v0.0.0-...-c4caace Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Install tools

From the repository root run the following:

inv install-tools

to install the correct version of required tools

Generate api.pb.go

From the repository root run the following:

protoc -I. --go_out=plugins=grpc,paths=source_relative:. pkg/security/api/api.proto

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSecurityModuleServer

func RegisterSecurityModuleServer(s *grpc.Server, srv SecurityModuleServer)

Types

type DumpProcessCacheParams

type DumpProcessCacheParams struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DumpProcessCacheParams) Descriptor

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

func (*DumpProcessCacheParams) ProtoMessage

func (*DumpProcessCacheParams) ProtoMessage()

func (*DumpProcessCacheParams) Reset

func (m *DumpProcessCacheParams) Reset()

func (*DumpProcessCacheParams) String

func (m *DumpProcessCacheParams) String() string

func (*DumpProcessCacheParams) XXX_DiscardUnknown

func (m *DumpProcessCacheParams) XXX_DiscardUnknown()

func (*DumpProcessCacheParams) XXX_Marshal

func (m *DumpProcessCacheParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DumpProcessCacheParams) XXX_Merge

func (m *DumpProcessCacheParams) XXX_Merge(src proto.Message)

func (*DumpProcessCacheParams) XXX_Size

func (m *DumpProcessCacheParams) XXX_Size() int

func (*DumpProcessCacheParams) XXX_Unmarshal

func (m *DumpProcessCacheParams) XXX_Unmarshal(b []byte) error

type GetConfigParams

type GetConfigParams struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetConfigParams) Descriptor

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

func (*GetConfigParams) ProtoMessage

func (*GetConfigParams) ProtoMessage()

func (*GetConfigParams) Reset

func (m *GetConfigParams) Reset()

func (*GetConfigParams) String

func (m *GetConfigParams) String() string

func (*GetConfigParams) XXX_DiscardUnknown

func (m *GetConfigParams) XXX_DiscardUnknown()

func (*GetConfigParams) XXX_Marshal

func (m *GetConfigParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetConfigParams) XXX_Merge

func (m *GetConfigParams) XXX_Merge(src proto.Message)

func (*GetConfigParams) XXX_Size

func (m *GetConfigParams) XXX_Size() int

func (*GetConfigParams) XXX_Unmarshal

func (m *GetConfigParams) XXX_Unmarshal(b []byte) error

type GetEventParams

type GetEventParams struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetEventParams) Descriptor

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

func (*GetEventParams) ProtoMessage

func (*GetEventParams) ProtoMessage()

func (*GetEventParams) Reset

func (m *GetEventParams) Reset()

func (*GetEventParams) String

func (m *GetEventParams) String() string

func (*GetEventParams) XXX_DiscardUnknown

func (m *GetEventParams) XXX_DiscardUnknown()

func (*GetEventParams) XXX_Marshal

func (m *GetEventParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEventParams) XXX_Merge

func (m *GetEventParams) XXX_Merge(src proto.Message)

func (*GetEventParams) XXX_Size

func (m *GetEventParams) XXX_Size() int

func (*GetEventParams) XXX_Unmarshal

func (m *GetEventParams) XXX_Unmarshal(b []byte) error

type RunSelfTestParams

type RunSelfTestParams struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RunSelfTestParams) Descriptor

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

func (*RunSelfTestParams) ProtoMessage

func (*RunSelfTestParams) ProtoMessage()

func (*RunSelfTestParams) Reset

func (m *RunSelfTestParams) Reset()

func (*RunSelfTestParams) String

func (m *RunSelfTestParams) String() string

func (*RunSelfTestParams) XXX_DiscardUnknown

func (m *RunSelfTestParams) XXX_DiscardUnknown()

func (*RunSelfTestParams) XXX_Marshal

func (m *RunSelfTestParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunSelfTestParams) XXX_Merge

func (m *RunSelfTestParams) XXX_Merge(src proto.Message)

func (*RunSelfTestParams) XXX_Size

func (m *RunSelfTestParams) XXX_Size() int

func (*RunSelfTestParams) XXX_Unmarshal

func (m *RunSelfTestParams) XXX_Unmarshal(b []byte) error

type SecurityConfigMessage

type SecurityConfigMessage struct {
	RuntimeEnabled       bool     `protobuf:"varint,1,opt,name=RuntimeEnabled,proto3" json:"RuntimeEnabled,omitempty"`
	FIMEnabled           bool     `protobuf:"varint,2,opt,name=FIMEnabled,proto3" json:"FIMEnabled,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecurityConfigMessage) Descriptor

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

func (*SecurityConfigMessage) GetFIMEnabled

func (m *SecurityConfigMessage) GetFIMEnabled() bool

func (*SecurityConfigMessage) GetRuntimeEnabled

func (m *SecurityConfigMessage) GetRuntimeEnabled() bool

func (*SecurityConfigMessage) ProtoMessage

func (*SecurityConfigMessage) ProtoMessage()

func (*SecurityConfigMessage) Reset

func (m *SecurityConfigMessage) Reset()

func (*SecurityConfigMessage) String

func (m *SecurityConfigMessage) String() string

func (*SecurityConfigMessage) XXX_DiscardUnknown

func (m *SecurityConfigMessage) XXX_DiscardUnknown()

func (*SecurityConfigMessage) XXX_Marshal

func (m *SecurityConfigMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityConfigMessage) XXX_Merge

func (m *SecurityConfigMessage) XXX_Merge(src proto.Message)

func (*SecurityConfigMessage) XXX_Size

func (m *SecurityConfigMessage) XXX_Size() int

func (*SecurityConfigMessage) XXX_Unmarshal

func (m *SecurityConfigMessage) XXX_Unmarshal(b []byte) error

type SecurityDumpProcessCacheMessage

type SecurityDumpProcessCacheMessage struct {
	Filename             string   `protobuf:"bytes,1,opt,name=Filename,proto3" json:"Filename,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecurityDumpProcessCacheMessage) Descriptor

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

func (*SecurityDumpProcessCacheMessage) GetFilename

func (m *SecurityDumpProcessCacheMessage) GetFilename() string

func (*SecurityDumpProcessCacheMessage) ProtoMessage

func (*SecurityDumpProcessCacheMessage) ProtoMessage()

func (*SecurityDumpProcessCacheMessage) Reset

func (*SecurityDumpProcessCacheMessage) String

func (*SecurityDumpProcessCacheMessage) XXX_DiscardUnknown

func (m *SecurityDumpProcessCacheMessage) XXX_DiscardUnknown()

func (*SecurityDumpProcessCacheMessage) XXX_Marshal

func (m *SecurityDumpProcessCacheMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityDumpProcessCacheMessage) XXX_Merge

func (m *SecurityDumpProcessCacheMessage) XXX_Merge(src proto.Message)

func (*SecurityDumpProcessCacheMessage) XXX_Size

func (m *SecurityDumpProcessCacheMessage) XXX_Size() int

func (*SecurityDumpProcessCacheMessage) XXX_Unmarshal

func (m *SecurityDumpProcessCacheMessage) XXX_Unmarshal(b []byte) error

type SecurityEventMessage

type SecurityEventMessage struct {
	RuleID               string   `protobuf:"bytes,1,opt,name=RuleID,proto3" json:"RuleID,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	Tags                 []string `protobuf:"bytes,3,rep,name=Tags,proto3" json:"Tags,omitempty"`
	Service              string   `protobuf:"bytes,4,opt,name=Service,proto3" json:"Service,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecurityEventMessage) Descriptor

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

func (*SecurityEventMessage) GetData

func (m *SecurityEventMessage) GetData() []byte

func (*SecurityEventMessage) GetRuleID

func (m *SecurityEventMessage) GetRuleID() string

func (*SecurityEventMessage) GetService

func (m *SecurityEventMessage) GetService() string

func (*SecurityEventMessage) GetTags

func (m *SecurityEventMessage) GetTags() []string

func (*SecurityEventMessage) ProtoMessage

func (*SecurityEventMessage) ProtoMessage()

func (*SecurityEventMessage) Reset

func (m *SecurityEventMessage) Reset()

func (*SecurityEventMessage) String

func (m *SecurityEventMessage) String() string

func (*SecurityEventMessage) XXX_DiscardUnknown

func (m *SecurityEventMessage) XXX_DiscardUnknown()

func (*SecurityEventMessage) XXX_Marshal

func (m *SecurityEventMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecurityEventMessage) XXX_Merge

func (m *SecurityEventMessage) XXX_Merge(src proto.Message)

func (*SecurityEventMessage) XXX_Size

func (m *SecurityEventMessage) XXX_Size() int

func (*SecurityEventMessage) XXX_Unmarshal

func (m *SecurityEventMessage) XXX_Unmarshal(b []byte) error

type SecurityModuleClient

type SecurityModuleClient interface {
	GetEvents(ctx context.Context, in *GetEventParams, opts ...grpc.CallOption) (SecurityModule_GetEventsClient, error)
	DumpProcessCache(ctx context.Context, in *DumpProcessCacheParams, opts ...grpc.CallOption) (*SecurityDumpProcessCacheMessage, error)
	GetConfig(ctx context.Context, in *GetConfigParams, opts ...grpc.CallOption) (*SecurityConfigMessage, error)
	RunSelfTest(ctx context.Context, in *RunSelfTestParams, opts ...grpc.CallOption) (*SecuritySelfTestResultMessage, error)
}

SecurityModuleClient is the client API for SecurityModule service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSecurityModuleClient

func NewSecurityModuleClient(cc *grpc.ClientConn) SecurityModuleClient

type SecurityModuleServer

SecurityModuleServer is the server API for SecurityModule service.

type SecurityModule_GetEventsClient

type SecurityModule_GetEventsClient interface {
	Recv() (*SecurityEventMessage, error)
	grpc.ClientStream
}

type SecurityModule_GetEventsServer

type SecurityModule_GetEventsServer interface {
	Send(*SecurityEventMessage) error
	grpc.ServerStream
}

type SecuritySelfTestResultMessage

type SecuritySelfTestResultMessage struct {
	Ok                   bool     `protobuf:"varint,1,opt,name=Ok,proto3" json:"Ok,omitempty"`
	Error                string   `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecuritySelfTestResultMessage) Descriptor

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

func (*SecuritySelfTestResultMessage) GetError

func (m *SecuritySelfTestResultMessage) GetError() string

func (*SecuritySelfTestResultMessage) GetOk

func (*SecuritySelfTestResultMessage) ProtoMessage

func (*SecuritySelfTestResultMessage) ProtoMessage()

func (*SecuritySelfTestResultMessage) Reset

func (m *SecuritySelfTestResultMessage) Reset()

func (*SecuritySelfTestResultMessage) String

func (*SecuritySelfTestResultMessage) XXX_DiscardUnknown

func (m *SecuritySelfTestResultMessage) XXX_DiscardUnknown()

func (*SecuritySelfTestResultMessage) XXX_Marshal

func (m *SecuritySelfTestResultMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecuritySelfTestResultMessage) XXX_Merge

func (m *SecuritySelfTestResultMessage) XXX_Merge(src proto.Message)

func (*SecuritySelfTestResultMessage) XXX_Size

func (m *SecuritySelfTestResultMessage) XXX_Size() int

func (*SecuritySelfTestResultMessage) XXX_Unmarshal

func (m *SecuritySelfTestResultMessage) XXX_Unmarshal(b []byte) error

type UnimplementedSecurityModuleServer

type UnimplementedSecurityModuleServer struct {
}

UnimplementedSecurityModuleServer can be embedded to have forward compatible implementations.

func (*UnimplementedSecurityModuleServer) DumpProcessCache

func (*UnimplementedSecurityModuleServer) GetConfig

func (*UnimplementedSecurityModuleServer) GetEvents

func (*UnimplementedSecurityModuleServer) RunSelfTest

Jump to

Keyboard shortcuts

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