Documentation
¶
Overview ¶
Package common holds common related files
Package common holds common related files ¶
Package common holds common related files ¶
Package common holds common related files
Index ¶
- func GetCmdSocketPath(socketPath string, cmdSocketPath string) (string, error)
- func GetFamilyAddress(path string) string
- func NewContainerFilter(cfg model.Config, prefix string) (*containers.Filter, error)
- func NewLogContext(logsConfig *logsconfig.LogsConfigKeys, endpointPrefix string, ...) (*logsconfig.Endpoints, *client.DestinationsContext, error)
- func NewLogContextCompliance() (*logsconfig.Endpoints, *client.DestinationsContext, error)
- func NewLogContextRuntime(useSecRuntimeTrack bool) (*logsconfig.Endpoints, *client.DestinationsContext, error)
- func NewLogContextSecInfo() (*logsconfig.Endpoints, *client.DestinationsContext, error)
- func QueryAccountIDTag() string
- type NoopStatusProvider
- type RawReporter
- type StaticHostnameService
- type TrackType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCmdSocketPath ¶
GetCmdSocketPath returns the path to the cmd socket for system-probe <-> security-agent communication it will use the cmd_socket config if set, otherwise it will use the socket config as a base
func GetFamilyAddress ¶
GetFamilyAddress returns the address famility to use for system-probe <-> security-agent communication
func NewContainerFilter ¶
NewContainerFilter returns a new include/exclude filter for containers
func NewLogContext ¶
func NewLogContext(logsConfig *logsconfig.LogsConfigKeys, endpointPrefix string, intakeTrackType logsconfig.IntakeTrackType, intakeOrigin logsconfig.IntakeOrigin, intakeProtocol logsconfig.IntakeProtocol) (*logsconfig.Endpoints, *client.DestinationsContext, error)
NewLogContext returns the context fields to send events to the intake
func NewLogContextCompliance ¶
func NewLogContextCompliance() (*logsconfig.Endpoints, *client.DestinationsContext, error)
NewLogContextCompliance returns the context fields to send compliance events to the intake
func NewLogContextRuntime ¶
func NewLogContextRuntime(useSecRuntimeTrack bool) (*logsconfig.Endpoints, *client.DestinationsContext, error)
NewLogContextRuntime returns the context fields to send runtime (CWS) events to the intake This function will only be used on Linux. The only platforms where the runtime agent runs
func NewLogContextSecInfo ¶
func NewLogContextSecInfo() (*logsconfig.Endpoints, *client.DestinationsContext, error)
NewLogContextSecInfo returns the context fields to send remediation events to the intake
func QueryAccountIDTag ¶
func QueryAccountIDTag() string
QueryAccountIDTag returns the account id tag matching the current deployment
Types ¶
type NoopStatusProvider ¶
type NoopStatusProvider struct{}
NoopStatusProvider is a no-op implementation of the StatusProvider interface
func (*NoopStatusProvider) AddGlobalWarning ¶
func (n *NoopStatusProvider) AddGlobalWarning(string, string)
AddGlobalWarning is a no-op implementation of the StatusProvider interface
func (*NoopStatusProvider) RemoveGlobalWarning ¶
func (n *NoopStatusProvider) RemoveGlobalWarning(string)
RemoveGlobalWarning is a no-op implementation of the StatusProvider interface
type RawReporter ¶
type RawReporter interface {
ReportRaw(content []byte, service string, timestamp time.Time, tags ...string)
}
RawReporter defines an interface for reporting raw rule events
type StaticHostnameService ¶
type StaticHostnameService struct {
// contains filtered or unexported fields
}
StaticHostnameService is a hostname service that returns a fixed hostname
func NewStaticHostnameService ¶
func NewStaticHostnameService(hostname string) *StaticHostnameService
NewStaticHostnameService creates a new hostname service that returns the provided hostname
func (*StaticHostnameService) Get ¶
func (s *StaticHostnameService) Get(_ context.Context) (string, error)
Get returns the fixed hostname
func (*StaticHostnameService) GetSafe ¶
func (s *StaticHostnameService) GetSafe(_ context.Context) string
GetSafe returns the fixed hostname
func (*StaticHostnameService) GetWithProvider ¶
func (s *StaticHostnameService) GetWithProvider(_ context.Context) (hostnameinterface.Data, error)
GetWithProvider returns the fixed hostname with "static" as the provider
type TrackType ¶
type TrackType = logsconfig.IntakeTrackType
TrackType represents the type of track for event routing
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package usergroup holds usergroup related files
|
Package usergroup holds usergroup related files |