Documentation ¶
Overview ¶
Package client implements a remoting client for reflow pools.
Index ¶
- type Client
- func (c *Client) Alloc(ctx context.Context, id string) (pool.Alloc, error)
- func (c *Client) Allocs(ctx context.Context) ([]pool.Alloc, error)
- func (c *Client) Config(ctx context.Context) (infra.Keys, error)
- func (c *Client) ExecImage(ctx context.Context) (digest.Digest, error)
- func (c *Client) ID() string
- func (c *Client) InstallImage(ctx context.Context, d digest.Digest) error
- func (c *Client) Offer(ctx context.Context, id string) (pool.Offer, error)
- func (c *Client) Offers(ctx context.Context) ([]pool.Offer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client implements a reflow pool by dispatching calls to a remote implementation.
func New ¶
New creates a new Client which connects to a given host using the provided http.Client. If http.Client is nil, the default client is used. If logger is not nil, Client logs detailed request/response information to it.
func (*Client) InstallImage ¶
InstallImage instructs the reflowlet instance to install and run a new image. The image is referenced by the digest (in a format returned by digest.String()) and is expected to exist in the repository (or the call will fail).
Click to show internal directories.
Click to hide internal directories.