package filesessions
import "github.com/gravitational/teleport/lib/events/filesessions"
Index ¶
Types ¶
type Config ¶
type Config struct { // Directory is a directory with files Directory string }
Config is a file uploader configuration
func (*Config) CheckAndSetDefaults ¶
CheckAndSetDefaults checks and sets default values of file handler config
type Handler ¶
type Handler struct { // Config is a file sessions config Config // Entry is a file entry *log.Entry }
Handler uploads and downloads sessions archives by reading and writing files to directory, useful for NFS setups and tests
func NewHandler ¶
NewHandler returns new file sessions handler
func (*Handler) Close ¶
Closer releases connection and resources associated with log if any
func (*Handler) Download ¶
Download downloads session recording from storage, in case of file handler reads the file from local directory
func (*Handler) Upload ¶
func (l *Handler) Upload(ctx context.Context, sessionID session.ID, reader io.Reader) (string, error)
Upload uploads session recording to file storage, in case of file handler, writes the file to local directory
Source Files ¶
- Version
- v3.2.17+incompatible (latest)
- Published
- Feb 4, 2021
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 1 month ago –
Tools for package owners.