Documentation ¶
Index ¶
- type Client
- func (c *Client) ControlShutdown(ctx context.Context, id uint64) error
- func (c *Client) ControlStart(ctx context.Context, id uint64) error
- func (c *Client) ControlStop(ctx context.Context, id uint64) error
- func (c *Client) VMCreate(ctx context.Context, vm *spinapiserver.CreateVM) (uint64, error)
- func (c *Client) VMDelete(ctx context.Context, id uint64) error
- func (c *Client) VMGet(ctx context.Context, id uint64) (*spinapiserver.UpdatedVM, error)
- func (c *Client) VMList(ctx context.Context) ([]uint64, error)
- func (c *Client) VMUpdate(ctx context.Context, id uint64, vm *spinapiserver.UpdatedVM) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the outer handle for the broker HTTP client.
func (*Client) ControlShutdown ¶
ControlShutdown attempts to gracefully shutdown the VM by ID. It will take no further actions if it does not succeed.
func (*Client) ControlStart ¶
ControlStart starts a VM by id.
func (*Client) ControlStop ¶
ControlStop attempts to gracefully stop a VM by id. If it fails, it will terminate the vm forcefully after 30 seconds.
Click to show internal directories.
Click to hide internal directories.