agent

package
v0.0.230 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func DefaultClient

func DefaultClient(*api.Client) (*Client, error)

func NewClient

func NewClient(path string) (*Client, error)

func (*Client) Dialer

func (c *Client) Dialer(o *api.Organization) (*Dialer, error)

func (*Client) Establish

func (c *Client) Establish(slug string) error

func (*Client) Instances

func (c *Client) Instances(o *api.Organization, app string) (*Instances, error)

func (*Client) Kill

func (c *Client) Kill() error

func (*Client) Ping

func (c *Client) Ping() (int, error)

func (*Client) Probe

func (c *Client) Probe(o *api.Organization) error

type Dialer

type Dialer struct {
	Org     *api.Organization
	Timeout time.Duration
	// contains filtered or unexported fields
}

func (*Dialer) DialContext

func (d *Dialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

type Instances

type Instances struct {
	Labels    []string
	Addresses []string
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func DefaultServer

func DefaultServer(ctx *cmdctx.CmdContext) (*Server, error)

func NewServer

func NewServer(path string, ctx *cmdctx.CmdContext) (*Server, error)

func (*Server) Serve

func (s *Server) Serve()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL