Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) ClosePortForwardSession(sessionID string) (*sdknetworker.PortForwardSession, error)
- func (c *Client) FindPortForwardSessions(pluginID, connectionID string, ...) ([]*sdknetworker.PortForwardSession, error)
- func (c *Client) GetPortForwardSession(sessionID string) (*sdknetworker.PortForwardSession, error)
- func (c *Client) GetSupportedPortForwardTargets(plugin string) []string
- func (c *Client) ListAllPortForwardSessions() ([]*sdknetworker.PortForwardSession, error)
- func (c *Client) ListPortForwardSessions(pluginID, connectionID string) ([]*sdknetworker.PortForwardSession, error)
- func (c *Client) StartResourcePortForwardingSession(pluginID, connectionID string, opts sdknetworker.PortForwardSessionOptions) (*sdknetworker.PortForwardSession, error)
- type Controller
Constants ¶
View Source
const ( PortForwardSessionCreated = "core/networker/portforward/created" PortForwardSessionClosed = "core/networker/portforward/closed" )
Wails event keys for port-forward session lifecycle.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(controller Controller) *Client
func (*Client) ClosePortForwardSession ¶
func (c *Client) ClosePortForwardSession(sessionID string, ) (*sdknetworker.PortForwardSession, error)
ClosePortForwardSession closes a port forward session.
func (*Client) FindPortForwardSessions ¶
func (c *Client) FindPortForwardSessions( pluginID, connectionID string, request sdknetworker.FindPortForwardSessionRequest, ) ([]*sdknetworker.PortForwardSession, error)
func (*Client) GetPortForwardSession ¶
func (c *Client) GetPortForwardSession( sessionID string, ) (*sdknetworker.PortForwardSession, error)
func (*Client) GetSupportedPortForwardTargets ¶
func (*Client) ListAllPortForwardSessions ¶
func (c *Client) ListAllPortForwardSessions() ([]*sdknetworker.PortForwardSession, error)
func (*Client) ListPortForwardSessions ¶
func (c *Client) ListPortForwardSessions( pluginID, connectionID string, ) ([]*sdknetworker.PortForwardSession, error)
func (*Client) StartResourcePortForwardingSession ¶
func (c *Client) StartResourcePortForwardingSession( pluginID, connectionID string, opts sdknetworker.PortForwardSessionOptions, ) (*sdknetworker.PortForwardSession, error)
StartResourcePortForwardingSession starts a port forwarding session.
type Controller ¶
type Controller interface {
internaltypes.Controller
// Run stores the Wails application context for event emission.
Run(ctx context.Context)
// GetSupportedPortForwardTargets returns the supported targets for port forwarding
GetSupportedPortForwardTargets(pluginID string) []string
// GetPortForwardSession returns a port forward session by ID
GetPortForwardSession(sessionID string) (*networker.PortForwardSession, error)
// ListPortForwardSessions returns a list of port forward sessions for a plugin
ListPortForwardSessions(pluginID, connectionID string) ([]*networker.PortForwardSession, error)
// ListAllPortForwardSessions returns all port forward sessions across all plugins
ListAllPortForwardSessions() ([]*networker.PortForwardSession, error)
// FindPortForwardSessions returns a list of port forward sessions for a plugin
FindPortForwardSessions(
pluginID, connectionID string,
request networker.FindPortForwardSessionRequest,
) ([]*networker.PortForwardSession, error)
// StartResourcePortForwardingSession starts a port forwarding session
StartResourcePortForwardingSession(
pluginID, connectionID string,
opts networker.PortForwardSessionOptions,
) (*networker.PortForwardSession, error)
// ClosePortForwardSession closes a port forward session
ClosePortForwardSession(sessionID string) (*networker.PortForwardSession, error)
}
func NewController ¶
func NewController( logger *zap.SugaredLogger, sp pkgsettings.Provider, resourceClient resource.IClient, ) Controller
Click to show internal directories.
Click to hide internal directories.