Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is the client-side contract for sending an audit to a configured sink.
func NewWebhookClient ¶ added in v1.28.0
func NewWebhookClient(logger *zap.Logger, url, signingSecret string, opts ...ClientOption) Client
NewHTTPClient is the constructor for a HTTPClient.
type ClientOption ¶
type ClientOption func(h *webhookClient)
func WithMaxBackoffDuration ¶
func WithMaxBackoffDuration(maxBackoffDuration time.Duration) ClientOption
WithMaxBackoffDuration allows for a configurable backoff duration configuration.
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink is a structure in charge of sending Audits to a configured webhook at a URL.
func (*Sink) SendAudits ¶
Click to show internal directories.
Click to hide internal directories.