Documentation ¶
Index ¶
- Variables
- type ComputeResource
- type Provider
- func (d *Provider) Create(c *ComputeResource) (*proto.ServiceState_Handle, error)
- func (d *Provider) DestroyTask(taskID string, force bool) error
- func (d *Provider) Exec(taskID string, cmd []string) (*proto.ExecTaskResult, error)
- func (d *Provider) RecoverTask(taskID string, task *proto.ServiceState_Handle) error
- func (d *Provider) StopTask(taskID string, timeout time.Duration) error
- func (d *Provider) WaitTask(ctx context.Context, taskID string) (<-chan *proto.ExitResult, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTaskNotFound = fmt.Errorf("task not found")
Functions ¶
This section is empty.
Types ¶
type ComputeResource ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider() *Provider
func (*Provider) Create ¶
func (d *Provider) Create(c *ComputeResource) (*proto.ServiceState_Handle, error)
func (*Provider) RecoverTask ¶
func (d *Provider) RecoverTask(taskID string, task *proto.ServiceState_Handle) error
Click to show internal directories.
Click to hide internal directories.