Documentation ¶
Index ¶
- func AccessChecker(cf *Cloudflared, access Access) check.Checker
- type Access
- type Cloudflared
- func (t *Cloudflared) Config() Config
- func (t *Cloudflared) Connect(ctx context.Context, access Access) error
- func (t *Cloudflared) Disonnect(ctx context.Context, access Access) error
- func (t *Cloudflared) IsConnected(ctx context.Context, access Access) bool
- func (t *Cloudflared) List() ([]Process, error)
- type Command
- func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest
- func (c *Command) Description() string
- func (c *Command) Execute(ctx context.Context, r *readline.Readline) error
- func (c *Command) Help(ctx context.Context, r *readline.Readline) string
- func (c *Command) Name() string
- func (c *Command) Validate(ctx context.Context, r *readline.Readline) error
- type CommandOption
- type Config
- type Option
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessChecker ¶
func AccessChecker(cf *Cloudflared, access Access) check.Checker
Types ¶
type Cloudflared ¶
type Cloudflared struct {
// contains filtered or unexported fields
}
func (*Cloudflared) Config ¶
func (t *Cloudflared) Config() Config
func (*Cloudflared) Connect ¶
func (t *Cloudflared) Connect(ctx context.Context, access Access) error
func (*Cloudflared) Disonnect ¶
func (t *Cloudflared) Disonnect(ctx context.Context, access Access) error
func (*Cloudflared) IsConnected ¶
func (t *Cloudflared) IsConnected(ctx context.Context, access Access) bool
func (*Cloudflared) List ¶
func (t *Cloudflared) List() ([]Process, error)
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(l log.Logger, cloudflared *Cloudflared, opts ...CommandOption) (*Command, error)
func (*Command) Description ¶
type CommandOption ¶
type CommandOption func(*Command)
func CommandWithName ¶
func CommandWithName(v string) CommandOption
Click to show internal directories.
Click to hide internal directories.