Documentation ¶
Overview ¶
Package gcssessionsHandler implements GCS storage for Teleport session recording persistence.
gcssessions package implements the Handler session recording storage for auth server. Originally contributed by https://github.com/joshdurbin
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Bucket is GCS bucket name Bucket string // Path is an optional bucket path Path string // Path to the credentials file CredentialsPath string // The GCS project ID ProjectID string // KMS key name KMSKeyName string // Endpoint Endpoint string }
Config is handler configuration
type Handler ¶
type Handler struct { // Config is handler configuration Config // Entry is a logging entry *log.Entry // contains filtered or unexported fields }
Handler handles upload and downloads to GCS object storage
func DefaultNewHandler ¶
DefaultNewHandler returns a new handler with default GCS client settings derived from the config
func NewHandler ¶
func NewHandler(ctx context.Context, cancelFunc context.CancelFunc, cfg Config, client *storage.Client) (*Handler, error)
NewHandler returns a new handler with specific context, cancelFunc, and client
Click to show internal directories.
Click to hide internal directories.