Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) ShouldTerminate(ctx context.Context) (bool, error)
- func (c *Client) Start(ctx context.Context, containerID string) error
- func (c *Client) Status(ctx context.Context, containerID string) (cloud.ProviderStatus, error)
- func (c *Client) Stop(ctx context.Context, containerID string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotStopped is an error that is thrown when an instance is attempted to be // started but is found to be not stopped ErrNotStopped = errors.New("not stopped") )
Contains all of the error types for this package
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a docker client
func (*Client) ShouldTerminate ¶
ShouldTerminate returns true if the instance should be terminated.
Click to show internal directories.
Click to hide internal directories.