Documentation
¶
Index ¶
- Variables
- func IsErrorOfInterest(err error) bool
- type Agent
- func (a *Agent) CreateShellSession(ctx context.Context, sessionID uuid.UUID, clientConn *websocket.Conn) (*ClientSession, error)
- func (a *Agent) Done() <-chan struct{}
- func (a *Agent) IsRunning() bool
- func (a *Agent) RemoveClientSession(sessionID uuid.UUID, safe bool) error
- func (a *Agent) Start() error
- func (a *Agent) Stop() error
- type ClientSession
- type Hub
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrShuttingDown = fmt.Errorf("runner is being terminated")
Functions ¶
func IsErrorOfInterest ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) CreateShellSession ¶
func (*Agent) RemoveClientSession ¶
type ClientSession ¶
type ClientSession struct {
// contains filtered or unexported fields
}
func NewClientSession ¶
func (*ClientSession) Done ¶
func (c *ClientSession) Done() chan struct{}
func (*ClientSession) Start ¶
func (c *ClientSession) Start() error
func (*ClientSession) Stop ¶
func (c *ClientSession) Stop() error
func (*ClientSession) Write ¶
func (c *ClientSession) Write(msg []byte) error
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) RegisterAgent ¶
func (*Hub) UnregisterAgent ¶
Click to show internal directories.
Click to hide internal directories.