Documentation
¶
Index ¶
- Constants
- func NewAuthorize() cli.Command
- func NewConnect() cli.Command
- func NewHelp() cli.Command
- func NewOpen() cli.Command
- func NewRevoke() cli.Command
- func NewState() cli.Command
- func PrintSessionState(ctx context.Context, disconnected bool, state warp.State)
- func Setsize(f *os.File, rows, cols int) error
- type Authorize
- type Connect
- type Help
- type Open
- func (c *Open) ConnLoop(ctx context.Context)
- func (c *Open) Execute(ctx context.Context) error
- func (c *Open) Help(ctx context.Context)
- func (c *Open) HostSession() *cli.Session
- func (c *Open) ManageSession(ctx context.Context, conn net.Conn, warpdErrOnly bool)
- func (c *Open) Name() cli.CmdName
- func (c *Open) Parse(ctx context.Context, args []string, flags map[string]string) error
- func (c *Open) Warp() string
- func (c *Open) WindowSize() warp.Size
- type Revoke
- type State
Constants ¶
const (
// CmdNmAuthorize is the command name.
CmdNmAuthorize cli.CmdName = "authorize"
)
const (
// CmdNmConnect is the command name.
CmdNmConnect cli.CmdName = "connect"
)
const (
// CmdNmHelp is the command name.
CmdNmHelp cli.CmdName = "help"
)
const (
// CmdNmOpen is the command name.
CmdNmOpen cli.CmdName = "open"
)
const (
// CmdNmRevoke is the command name.
CmdNmRevoke cli.CmdName = "revoke"
)
const (
// CmdNmState is the command name.
CmdNmState cli.CmdName = "state"
)
Variables ¶
This section is empty.
Functions ¶
func NewAuthorize ¶
func NewAuthorize() cli.Command
NewAuthorize constructs and initializes the command.
func PrintSessionState ¶ added in v0.0.3
Types ¶
type Authorize ¶
type Authorize struct {
// contains filtered or unexported fields
}
Authorize authorizes write access to a warp client.
type Connect ¶
type Connect struct {
// contains filtered or unexported fields
}
Connect connects to a shared terminal.
type Help ¶
type Help struct {
Command cli.Command
}
Help a user
type Open ¶
type Open struct {
// contains filtered or unexported fields
}
Open spawns a new shared terminal.
func (*Open) ConnLoop ¶ added in v0.0.3
ReconnectLoop handles reconnecting the host to warpd. Each time the connection drops, the associated Session is destroyed and another one is created as a reconnection is attempted. Errors are returned during the first iteration of the reconnect loop. On subsequent reconnect, only warpd generated errors are returned.
func (*Open) HostSession ¶ added in v0.0.3
func (c *Open) HostSession() *cli.Session
HostSession accessor is used by the local server to retrieve the current host session. The host session can be nil if the warp is currently disconnected from warpd. It is protected by a lock as the host session is set or unset by the ConnLoop.
func (*Open) ManageSession ¶ added in v0.0.3
ManageSession creates an manage a session. It
func (*Open) WindowSize ¶ added in v0.0.3
WindowSize returns the current window size for the host terminal.
type Revoke ¶
type Revoke struct {
// contains filtered or unexported fields
}
Revoke authorizes write access to a warp client.