Documentation ¶
Index ¶
- type Controller
- func (p *Controller) Close() error
- func (p *Controller) Prepare(ctx context.Context) error
- func (p *Controller) Remove(ctx context.Context) error
- func (p *Controller) Shutdown(ctx context.Context) error
- func (p *Controller) Start(ctx context.Context) error
- func (p *Controller) Terminate(ctx context.Context) error
- func (p *Controller) Update(ctx context.Context, t *api.Task) error
- func (p *Controller) Wait(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct{}
Controller is the controller for the plugin backend
func NewController ¶
func NewController() (*Controller, error)
NewController returns a new cluster plugin controller
func (*Controller) Close ¶
func (p *Controller) Close() error
Close is the close phase from swarmkit
func (*Controller) Prepare ¶
func (p *Controller) Prepare(ctx context.Context) error
Prepare is the prepare phase from swarmkit
func (*Controller) Remove ¶
func (p *Controller) Remove(ctx context.Context) error
Remove is the remove phase from swarmkit
func (*Controller) Shutdown ¶
func (p *Controller) Shutdown(ctx context.Context) error
Shutdown is the shutdown phase from swarmkit
func (*Controller) Start ¶
func (p *Controller) Start(ctx context.Context) error
Start is the start phase from swarmkit
func (*Controller) Terminate ¶
func (p *Controller) Terminate(ctx context.Context) error
Terminate is the terminate phase from swarmkit
Click to show internal directories.
Click to hide internal directories.