services

package
v0.0.0-...-1fa52ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, BSD-2-Clause, ISC, + 1 more Imports: 6 Imported by: 0

Documentation

Index

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

func (b *BlueprintManager) GetDbBlueprint(blueprintId uint64) (*models.Blueprint, errors.Error)

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

type GetBlueprintQuery

type GetBlueprintQuery struct {
	Enable      *bool
	IsManual    *bool
	Label       string
	SkipRecords int
	PageSize    int
	Mode        string
	Type        string
}

Jump to

Keyboard shortcuts

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