Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { GRPC castaipb.RuntimeSecurityAgentAPIClient // contains filtered or unexported fields }
type Config ¶
type LogsExporter ¶
type LogsExporter struct {
// contains filtered or unexported fields
}
func NewLogsExporter ¶
func NewLogsExporter(client *Client) *LogsExporter
func (*LogsExporter) AddLogEvent ¶
func (l *LogsExporter) AddLogEvent(e *castaipb.LogEvent)
func (*LogsExporter) ExportFunc ¶
func (l *LogsExporter) ExportFunc() logging.ExportFunc
type PromMetricsExporter ¶ added in v1.29.0
type PromMetricsExporter struct {
// contains filtered or unexported fields
}
func NewPromMetricsExporter ¶ added in v1.29.0
func NewPromMetricsExporter(log *logging.Logger, logsExporter logsExporter, gatherer prometheus.Gatherer, cfg PromMetricsExporterConfig) *PromMetricsExporter
type PromMetricsExporterConfig ¶ added in v1.29.0
type WriteStream ¶ added in v1.1.1
type WriteStream[T, U any] struct { ReopenDelay time.Duration // contains filtered or unexported fields }
WriteStream wraps grpc client stream and handles stream reopen in case of send errors.
func NewWriteStream ¶ added in v1.1.1
func NewWriteStream[T, U any](ctx context.Context, createStreamFunc func(ctx context.Context) (grpc.ClientStream, error)) *WriteStream[T, U]
func (*WriteStream[T, U]) Close ¶ added in v1.1.1
func (w *WriteStream[T, U]) Close() error
func (*WriteStream[T, U]) Recv ¶ added in v1.1.1
func (w *WriteStream[T, U]) Recv(m T) error
func (*WriteStream[T, U]) Send ¶ added in v1.1.1
func (w *WriteStream[T, U]) Send(m T) error
Click to show internal directories.
Click to hide internal directories.