Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStartingRecordingSession = errors.New("failed to start recording session")
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.7.3
type Option ¶ added in v0.7.6
type Option func(*UnixSocketServer)
func WithCommandRecordedHook ¶ added in v0.7.6
func WithIgnoreErrors ¶ added in v0.8.0
func WithLogger ¶ added in v0.8.0
type RecordedCommand ¶ added in v0.8.2
type RecordedData ¶ added in v0.8.0
type RecordedData struct {
Command string `json:"command"`
StepID string `json:"step_id"`
ExitCode int `json:"exit_code"`
Prompt string `json:"prompt,omitempty"`
Filepath string `json:"filepath,omitempty"`
FileData []byte `json:"file_data,omitempty"`
FileMode fs.FileMode `json:"file_mode,omitempty"`
}
func (*RecordedData) HasFileData ¶ added in v0.10.0
func (rd *RecordedData) HasFileData() bool
type UnixSocketServer ¶
type UnixSocketServer struct {
// contains filtered or unexported fields
}
func NewUnixSocketServer ¶
func NewUnixSocketServer(socketPath string, opts ...Option) (*UnixSocketServer, error)
func NewUnixSocketServerWithDefaultPath ¶ added in v0.7.3
func NewUnixSocketServerWithDefaultPath(opts ...Option) (*UnixSocketServer, error)
func (*UnixSocketServer) Close ¶
func (s *UnixSocketServer) Close() error
func (*UnixSocketServer) Commands ¶
func (s *UnixSocketServer) Commands() []*RecordedCommand
func (*UnixSocketServer) ListenAndServe ¶
func (s *UnixSocketServer) ListenAndServe()
func (*UnixSocketServer) SocketPath ¶ added in v0.7.3
func (s *UnixSocketServer) SocketPath() string
Click to show internal directories.
Click to hide internal directories.