services

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

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, errors.Error)

GetBlueprintsByScopes returns all blueprints that have these scopeIds and this connection Id

func (*BlueprintManager) GetBlueprintsByScopes

func (b *BlueprintManager) GetBlueprintsByScopes(connectionId uint64, pluginName string, scopeIds ...string) (map[string][]*models.Blueprint, errors.Error)

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
}

Jump to

Keyboard shortcuts

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