Documentation ¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) FormatAcme(resp *protocol.InstructionResponse, output io.Writer)
- func (c *Client) FormatList(hostnames []string, output io.Writer)
- func (c *Client) FormatValidate(hostname string, resp *protocol.ValidateResponse, output io.Writer)
- func (c *Client) GetAcmeInstruction(ctx context.Context, hostname string) (*protocol.InstructionResponse, error)
- func (c *Client) GetConnectedNodes() []*protocol.Node
- func (c *Client) GetCurrentConfig() *Config
- func (c *Client) GetRegisteredHostnames(ctx context.Context) ([]string, error)
- func (c *Client) Initialize(ctx context.Context, syncTunnels bool) error
- func (c *Client) ListTunnels(ctx context.Context, _ *protocol.ListTunnelsRequest) (*protocol.ListTunnelsResponse, error)
- func (c *Client) RebuildTunnels(tunnels []Tunnel)
- func (c *Client) Register(ctx context.Context) error
- func (c *Client) ReleaseTunnel(ctx context.Context, tunnel Tunnel) error
- func (c *Client) RequestAcmeValidation(ctx context.Context, hostname string) (*protocol.ValidateResponse, error)
- func (c *Client) Start(ctx context.Context)
- func (c *Client) SyncConfigTunnels(ctx context.Context)
- func (c *Client) UnpublishTunnel(ctx context.Context, tunnel Tunnel) error
- func (c *Client) UpdateApex(apex string)
- type ClientConfig
- type Config
- type Tunnel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ClientConfig // contains filtered or unexported fields }
func (*Client) FormatAcme ¶
func (c *Client) FormatAcme(resp *protocol.InstructionResponse, output io.Writer)
func (*Client) FormatValidate ¶
func (*Client) GetAcmeInstruction ¶
func (*Client) GetConnectedNodes ¶
func (*Client) GetCurrentConfig ¶
func (*Client) GetRegisteredHostnames ¶
func (*Client) Initialize ¶
func (*Client) ListTunnels ¶
func (c *Client) ListTunnels(ctx context.Context, _ *protocol.ListTunnelsRequest) (*protocol.ListTunnelsResponse, error)
func (*Client) RebuildTunnels ¶
func (*Client) ReleaseTunnel ¶
func (*Client) RequestAcmeValidation ¶
func (*Client) SyncConfigTunnels ¶
func (*Client) UnpublishTunnel ¶
func (*Client) UpdateApex ¶
type ClientConfig ¶
type Config ¶
type Config struct { Version int `yaml:"version" json:"version"` Apex string `yaml:"apex" json:"apex"` Certificate string `yaml:"certificate,omitempty" json:"certificate,omitempty"` PrivKey string `yaml:"privKey,omitempty" json:"privKey,omitempty"` Tunnels []Tunnel `yaml:"tunnels,omitempty" json:"tunnels,omitempty"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.