Documentation
¶
Index ¶
- Constants
- type BlueprintManager
- func (b *BlueprintManager) DeleteBlueprint(id uint64) errors.Error
- func (b *BlueprintManager) GetBlueprintsByConnection(plugin string, connectionId uint64) []*models.Blueprint
- func (b *BlueprintManager) GetBlueprintsByScopeId(connectionId uint64, pluginName string, scopeId string) []*models.Blueprint
- func (b *BlueprintManager) GetDbBlueprint(blueprintId uint64) (*models.Blueprint, errors.Error)
- func (b *BlueprintManager) GetDbBlueprintByProjectName(projectName string) (*models.Blueprint, errors.Error)
- func (b *BlueprintManager) GetDbBlueprints(query *GetBlueprintQuery) ([]*models.Blueprint, int64, errors.Error)
- func (b *BlueprintManager) SaveDbBlueprint(blueprint *models.Blueprint) errors.Error
- type BlueprintProjectPairs
- type GetBlueprintQuery
Constants ¶
View Source
const ( BP_TYPE_ALL = "ALL" BP_TYPE_MANUAL = "MANUAL" BP_TYPE_DAILY = "DAILY" BP_TYPE_WEEKLY = "WEEKLY" BP_TYPE_MONTHLY = "MONTHLY" BP_TYPE_CUSTOM = "CUSTOM" BP_CRON_DAILY = "0 0 * * *" BP_CRON_WEEKLY = "0 0 * * 1" BP_CRON_MONTHLY = "0 0 1 * *" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlueprintManager ¶
type BlueprintManager struct {
// contains filtered or unexported fields
}
func NewBlueprintManager ¶
func NewBlueprintManager(db dal.Dal) *BlueprintManager
func (*BlueprintManager) DeleteBlueprint ¶
func (b *BlueprintManager) DeleteBlueprint(id uint64) errors.Error
DeleteBlueprint deletes a blueprint by its id
func (*BlueprintManager) GetBlueprintsByConnection ¶
func (b *BlueprintManager) GetBlueprintsByConnection(plugin string, connectionId uint64) []*models.Blueprint
GetBlueprintsByScopes returns all blueprints that have these scopeIds and this connection Id
func (*BlueprintManager) GetBlueprintsByScopeId ¶
func (b *BlueprintManager) GetBlueprintsByScopeId(connectionId uint64, pluginName string, scopeId string) []*models.Blueprint
GetBlueprintsByScopes returns all blueprints that have these scopeIds and this connection Id
func (*BlueprintManager) GetDbBlueprint ¶
GetDbBlueprint returns the detail of a given Blueprint ID
func (*BlueprintManager) GetDbBlueprintByProjectName ¶
func (b *BlueprintManager) GetDbBlueprintByProjectName(projectName string) (*models.Blueprint, errors.Error)
GetDbBlueprintByProjectName returns the detail of a given projectName
func (*BlueprintManager) GetDbBlueprints ¶
func (b *BlueprintManager) GetDbBlueprints(query *GetBlueprintQuery) ([]*models.Blueprint, int64, errors.Error)
GetDbBlueprints returns a paginated list of Blueprints based on `query`
func (*BlueprintManager) SaveDbBlueprint ¶
func (b *BlueprintManager) SaveDbBlueprint(blueprint *models.Blueprint) errors.Error
SaveDbBlueprint accepts a Blueprint instance and upsert it to database
type BlueprintProjectPairs ¶
type BlueprintProjectPairs struct { Projects []string `json:"projects"` Blueprints []string `json:"blueprints"` }
func NewBlueprintProjectPairs ¶
func NewBlueprintProjectPairs(bps []*models.Blueprint) *BlueprintProjectPairs
Click to show internal directories.
Click to hide internal directories.