schedulemanager

package
v0.0.0-...-955c50f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Overview

Package schedulemanager schedules association and submits the association to the task pool schedulemanager is a singleton so it can be access at the plugin level

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssociationExists

func AssociationExists(associationID string) bool

func IsAssociationInProgress

func IsAssociationInProgress(associationID string) bool

IsAssociationInProgress returns if given association has detailed status as InProgress

func LoadNextScheduledAssociation

func LoadNextScheduledAssociation(log log.T) (*model.InstanceAssociation, error)

LoadNextScheduledAssociation returns next scheduled association

func LoadNextScheduledDate

func LoadNextScheduledDate(log log.T) *time.Time

LoadNextScheduledDate returns next scheduled date

func Refresh

func Refresh(log log.T, assocs []*model.InstanceAssociation)

Refresh refreshes cached associationRawData

func Schedules

func Schedules() []*model.InstanceAssociation

Schedules returns all the cached schedules

func UpdateAssociationStatus

func UpdateAssociationStatus(associationID string, status string)

UpdateAssociationStatus sets detailed status for the given association

func UpdateNextScheduledDate

func UpdateNextScheduledDate(log log.T, associationID string)

UpdateNextScheduledDate sets next scheduled date for the given association

Types

This section is empty.

Directories

Path Synopsis
Package signal manages signal channel required by sending/receiving request for executing scheduled association
Package signal manages signal channel required by sending/receiving request for executing scheduled association

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL