Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
This is the controller of a job. A job needs controller to setup etcd data layout, request cluster containers, etc. to setup framework to run.
func (*Controller) DestroyEtcdLayout ¶
func (c *Controller) DestroyEtcdLayout() error
func (*Controller) InitEtcdLayout ¶
func (c *Controller) InitEtcdLayout() error
func (*Controller) Start ¶
func (c *Controller) Start() error
A controller typical workflow: 1. controller sets up etcd layout before any task starts running. 2. Being ready, controller lets other tasks to run and reports any failure found.
func (*Controller) Stop ¶
func (c *Controller) Stop() error
func (*Controller) WaitForJobDone ¶
func (c *Controller) WaitForJobDone() error
Click to show internal directories.
Click to hide internal directories.