Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultIdleTimeout = 30 * time.Minute DefaultMaxSessions = 8 )
Variables ¶
Functions ¶
func CwdUnderRoot ¶
func ResolveCwdUnderRoot ¶
func ValidateShell ¶
Types ¶
type Config ¶
type CreateResponse ¶
type CreateResponse struct {
ID string
}
type Service ¶
type Service interface {
Create(ctx context.Context, principal string, req CreateRequest) (*CreateResponse, error)
Close(ctx context.Context, principal, id string) error
CloseAll(ctx context.Context) error
Attach(ctx context.Context, principal, id string, conn io.ReadWriteCloser, resizeCh <-chan ResizeMsg) error
Get(ctx context.Context, principal, id string) (*SessionInfo, error)
List(ctx context.Context, principal string, createdAtCursor *time.Time, limit int) ([]*SessionInfo, error)
UpdateGeometry(ctx context.Context, principal, id string, cols, rows int) error
ReapIdle(ctx context.Context) error
}
func NewDisabled ¶
func NewDisabled() Service
func WithActivityTracker ¶
func WithActivityTracker(svc Service, tracker libtracker.ActivityTracker) Service
type SessionInfo ¶
type SessionInfo = terminalstore.Session
Click to show internal directories.
Click to hide internal directories.