Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CloudController *cloud.Controller
)
Functions ¶
func DeleteEvent ¶
DeleteEvent deletes the event. If it is running, delete its worker at the same time.
func Init ¶
func Init(wopts *cloud.WorkerOptions, cloudAutoDiscovery bool)
Init init event manager Step1: init cloud controller Step2: new event manager Step3: create a goroutine to watch events
func IsEventFinished ¶
IsEventFinished return true if event is finished.
func UpdateEvent ¶
UpdateEvent updates the event. If it is finished, delete it and trigger the post hook. func (em *eventManager) UpdateEvent(event *api.Event) error {
Types ¶
type EventManager ¶
EventManager represents the manager of events.
func NewEventManager ¶
func NewEventManager(ds *store.DataStore) EventManager
NewEventManager creates the event manager.
Click to show internal directories.
Click to hide internal directories.