Documentation
¶
Index ¶
- type AttachSessionResult
- type Client
- func (c *Client) AttachSession(sessionID string) (AttachSessionResult, error)
- func (c *Client) CloseSession(sessionID string) error
- func (c *Client) CreateSession(plugin, connection string, opts sdkexec.SessionOptions) (*sdkexec.Session, error)
- func (c *Client) CreateTerminal(opts CreateTerminalOptions) (*sdkexec.Session, error)
- func (c *Client) DetachSession(sessionID string) (*sdkexec.Session, error)
- func (c *Client) GetHandler(plugin, resource string) *sdkexec.Handler
- func (c *Client) GetHandlers() map[string]map[string]sdkexec.Handler
- func (c *Client) GetPluginHandlers(plugin string) map[string]sdkexec.Handler
- func (c *Client) GetSession(sessionID string) (*sdkexec.Session, error)
- func (c *Client) ListPlugins() ([]string, error)
- func (c *Client) ListSessions() ([]*sdkexec.Session, error)
- func (c *Client) ResizeSession(sessionID string, rows, cols uint16) error
- func (c *Client) WriteSession(sessionID string, input string) error
- type Controller
- type CreateTerminalOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachSessionResult ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(controller Controller) *Client
func (*Client) AttachSession ¶
func (c *Client) AttachSession(sessionID string) (AttachSessionResult, error)
func (*Client) CloseSession ¶
func (*Client) CreateSession ¶
func (*Client) CreateTerminal ¶
func (c *Client) CreateTerminal(opts CreateTerminalOptions) (*sdkexec.Session, error)
func (*Client) DetachSession ¶
func (*Client) GetPluginHandlers ¶
func (*Client) ListPlugins ¶
func (*Client) ResizeSession ¶
type Controller ¶
type Controller interface { internaltypes.Controller Run(ctx context.Context) GetPluginHandlers(plugin string) map[string]exec.Handler GetHandlers() map[string]map[string]exec.Handler GetHandler(plugin, resource string) *exec.Handler CreateSession(plugin, connectionID string, opts exec.SessionOptions) (*exec.Session, error) ListSessions() ([]*exec.Session, error) GetSession(sessionID string) (*exec.Session, error) AttachSession(sessionID string) (*exec.Session, []byte, error) DetachSession(sessionID string) (*exec.Session, error) WriteSession(sessionID string, data []byte) error CloseSession(sessionID string) error ResizeSession(sessionID string, rows, cols uint16) error }
func NewController ¶
func NewController( logger *zap.SugaredLogger, sp pkgsettings.Provider, resourceClient resource.IClient, ) Controller
type CreateTerminalOptions ¶
Click to show internal directories.
Click to hide internal directories.