Documentation ¶
Index ¶
- Variables
- func CreatePidFile() error
- func InitAgentLogs() error
- func IsAgentStartError(err error) bool
- func IsHostNotFoundError(err error) bool
- func IsIPv6(addr string) bool
- func IsTunnelError(err error) bool
- func RemovePidFile() error
- func StopRunningAgent() error
- type AgentStartError
- type Client
- func (c *Client) Dialer(ctx context.Context, o *api.Organization) (Dialer, error)
- func (c *Client) Establish(ctx context.Context, slug string) (*EstablishResponse, error)
- func (c *Client) Instances(ctx context.Context, o *api.Organization, app string) (*Instances, error)
- func (c *Client) Kill(ctx context.Context) error
- func (c *Client) Ping(ctx context.Context) (PingResponse, error)
- func (c *Client) Probe(ctx context.Context, o *api.Organization) error
- func (c *Client) Resolve(ctx context.Context, o *api.Organization, host string) (string, error)
- func (c *Client) WaitForHost(ctx context.Context, o *api.Organization, host string) error
- func (c *Client) WaitForTunnel(ctx context.Context, o *api.Organization) error
- type ClosableWrite
- type Dialer
- type EstablishResponse
- type HostNotFoundError
- type Instances
- type PingResponse
- type Server
- type TunnelError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCantBind = errors.New("can't bind agent socket") )
View Source
var (
ErrUnreachable = errors.New("can't connect to agent")
)
Functions ¶
func CreatePidFile ¶ added in v0.0.234
func CreatePidFile() error
func InitAgentLogs ¶ added in v0.0.234
func InitAgentLogs() error
func IsAgentStartError ¶ added in v0.0.234
func IsHostNotFoundError ¶ added in v0.0.233
func IsTunnelError ¶ added in v0.0.233
func RemovePidFile ¶ added in v0.0.234
func RemovePidFile() error
func StopRunningAgent ¶ added in v0.0.234
func StopRunningAgent() error
Types ¶
type AgentStartError ¶ added in v0.0.234
type AgentStartError struct {
Output string
}
func (*AgentStartError) Description ¶ added in v0.0.234
func (e *AgentStartError) Description() string
func (*AgentStartError) Error ¶ added in v0.0.234
func (e *AgentStartError) Error() string
func (*AgentStartError) Suggestion ¶ added in v0.0.234
func (e *AgentStartError) Suggestion() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func StartDaemon ¶ added in v0.0.233
func (*Client) WaitForHost ¶ added in v0.0.233
func (*Client) WaitForTunnel ¶ added in v0.0.233
type ClosableWrite ¶ added in v0.0.233
type ClosableWrite interface {
CloseWrite() error
}
type EstablishResponse ¶ added in v0.0.240
type EstablishResponse struct { WireGuardState *wg.WireGuardState TunnelConfig *wg.Config }
type HostNotFoundError ¶ added in v0.0.233
func (*HostNotFoundError) Error ¶ added in v0.0.233
func (e *HostNotFoundError) Error() string
func (*HostNotFoundError) Unwrap ¶ added in v0.0.233
func (e *HostNotFoundError) Unwrap() error
type PingResponse ¶ added in v0.0.234
type TunnelError ¶ added in v0.0.233
func (*TunnelError) Error ¶ added in v0.0.233
func (e *TunnelError) Error() string
func (*TunnelError) Unwrap ¶ added in v0.0.233
func (e *TunnelError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.