Documentation
¶
Index ¶
- Variables
- func IsHostNotFoundError(err error) bool
- func IsIPv6(addr string) bool
- func IsTunnelError(err error) bool
- type Client
- func (c *Client) Dialer(ctx context.Context, o *api.Organization) (Dialer, error)
- func (c *Client) Establish(ctx context.Context, slug string) 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) (int, 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 HostNotFoundError
- type Instances
- type Server
- type TunnelError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCantBind = errors.New("can't bind agent socket")
ErrTunnelUnavailable = errors.New("tunnel unavailable")
)
View Source
var (
ErrUnreachable = errors.New("can't connect to agent")
)
Functions ¶
func IsHostNotFoundError ¶ added in v0.0.233
func IsHostNotFoundError(err error) bool
func IsTunnelError ¶ added in v0.0.233
func IsTunnelError(err error) bool
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DefaultClient ¶
func DefaultClient(apiClient *api.Client) (*Client, error)
func Establish ¶ added in v0.0.233
func Establish(ctx context.Context, apiClient *api.Client) (*Client, error)
/ Establish starts the daemon if necessary and returns a client
func StartDaemon ¶ added in v0.0.233
func StartDaemon(ctx context.Context, api *api.Client, command string) (*Client, error)
func (*Client) Dialer ¶
func (c *Client) Dialer(ctx context.Context, o *api.Organization) (Dialer, error)
func (*Client) Instances ¶
func (c *Client) Instances(ctx context.Context, o *api.Organization, app string) (*Instances, error)
func (*Client) Resolve ¶ added in v0.0.233
func (c *Client) Resolve(ctx context.Context, o *api.Organization, host string) (string, error)
func (*Client) WaitForHost ¶ added in v0.0.233
func (c *Client) WaitForHost(ctx context.Context, o *api.Organization, host string) error
func (*Client) WaitForTunnel ¶ added in v0.0.233
func (c *Client) WaitForTunnel(ctx context.Context, o *api.Organization) error
type ClosableWrite ¶ added in v0.0.233
type ClosableWrite interface {
CloseWrite() error
}
type Dialer ¶
type Dialer interface {
DialContext(ctx context.Context, network, addr string) (net.Conn, error)
}
type HostNotFoundError ¶ added in v0.0.233
type HostNotFoundError struct {
OrgSlug string
Host string
Err error
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func DefaultServer ¶
func DefaultServer(apiClient *api.Client) (*Server, error)
Click to show internal directories.
Click to hide internal directories.