package
2.5.0-alpha.2+incompatible
Repository: https://github.com/gregadams4/teleport.git
Documentation: pkg.go.dev

# Functions

NewCachingAuditLog creaets a new & fully initialized instance of the alog.
NewCachingAuthClient creates a new instance of CachingAuthClient using a live connection to the auth server (ap).
NoCache is a no cache used for access point.

# Constants

DefaultBackoffInitialInterval is initial interval for backoff.
DefaultBackoffMaxInterval is maximum interval for backoff.
DefaultFlushBytes is a max bytes of the chunks before the flush will be triggered.
DefaultFlushChunks is a max chunks accumulated over period to flush.
DefaultFlushTimeout is a period to flush after no other events have been received.
DefaultQueueLen determines how many logging events to queue in-memory before start dropping them (probably because logging server is down).
DefaultThrottleDuration is a period that we will throttle the slow network for before trying to send again.
DefaultThrottleTimeout is a latency after we will.

# Structs

CachingAuditLog implements events.IAuditLog on the recording machine (SSH server) It captures the local recording and forwards it to the AuditLog network server Some important properties of this implementation: * Without back pressure on posting session chunks, audit log was loosing events because produce was much faster than consume and buffer was oveflowing * Throttle is important to continue the session in case if audit log slowness, as the session output will block and timeout on every request * It is important to pack chunnks, because ls -laR / would otherwise generate about 10K requests per second.
CachingAuditLogConifig sets configuration for caching audit log.
CachingAuthClient implements auth.AccessPoint interface and remembers the previously returned upstream value for each API call.
Config is CachingAuthClient config.

# Type aliases

NewCachingAcessPoint returns new caching access point using access point policy.