Documentation ¶
Index ¶
- func DeleteAllPollers(db database.Executer, appID int64) error
- func DeletePoller(db database.Executer, poller *sdk.RepositoryPoller) error
- func InsertPoller(db database.Executer, poller *sdk.RepositoryPoller) error
- func LoadEnabledPollers(db database.Querier) ([]sdk.RepositoryPoller, error)
- func LoadEnabledPollersByProject(db database.Querier, projKey string) ([]sdk.RepositoryPoller, error)
- func LoadPollerByApplicationAndPipeline(db database.Querier, applicationID, pipelineID int64) (*sdk.RepositoryPoller, error)
- func LoadPollersByApplication(db database.Querier, applicationID int64) ([]sdk.RepositoryPoller, error)
- func UpdatePoller(db database.Executer, poller *sdk.RepositoryPoller) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAllPollers ¶
DeleteAllPollers Delete all the poller of the given application
func DeletePoller ¶
func DeletePoller(db database.Executer, poller *sdk.RepositoryPoller) error
DeletePoller delete a poller from DB
func InsertPoller ¶
func InsertPoller(db database.Executer, poller *sdk.RepositoryPoller) error
InsertPoller insert or update a new poller in DB
func LoadEnabledPollers ¶
func LoadEnabledPollers(db database.Querier) ([]sdk.RepositoryPoller, error)
LoadEnabledPollers load all RepositoryPoller
func LoadEnabledPollersByProject ¶
func LoadEnabledPollersByProject(db database.Querier, projKey string) ([]sdk.RepositoryPoller, error)
LoadEnabledPollersByProject load all RepositoryPoller for a project
func LoadPollerByApplicationAndPipeline ¶
func LoadPollerByApplicationAndPipeline(db database.Querier, applicationID, pipelineID int64) (*sdk.RepositoryPoller, error)
LoadPollerByApplicationAndPipeline loads all pollers for an application/pipeline
func LoadPollersByApplication ¶
func LoadPollersByApplication(db database.Querier, applicationID int64) ([]sdk.RepositoryPoller, error)
LoadPollersByApplication loads all pollers for an application
func UpdatePoller ¶
func UpdatePoller(db database.Executer, poller *sdk.RepositoryPoller) error
UpdatePoller update the poller
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.