integration

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuiltinModels list available integration models
	BuiltinModels = []sdk.IntegrationModel{
		sdk.KafkaIntegration,
		sdk.RabbitMQIntegration,
		sdk.OpenstackIntegration,
		sdk.AWSIntegration,
		sdk.ArtifactoryIntegration,
	}
)

Functions

func CreateBuiltinModels

func CreateBuiltinModels(ctx context.Context, db *gorp.DbMap) error

CreateBuiltinModels creates integrations models

func DeleteIntegration

func DeleteIntegration(db gorp.SqlExecutor, integration sdk.ProjectIntegration) error

DeleteIntegration deletes a integration

func DeleteModel

func DeleteModel(ctx context.Context, db gorp.SqlExecutor, id int64) error

DeleteModel deletes a integration model in database

func InsertIntegration

func InsertIntegration(db gorpmapper.SqlExecutorWithTx, pp *sdk.ProjectIntegration) error

InsertIntegration inserts a integration

func InsertModel

InsertModel inserts a integration model in database

func LoadAllIntegrationsForProjectsWithDecryption

func LoadAllIntegrationsForProjectsWithDecryption(ctx context.Context, db gorp.SqlExecutor, projIDs []int64) (map[int64][]sdk.ProjectIntegration, error)

LoadAllIntegrationsForProjectsWithDecryption load all integrations for all given project, with decryption

func LoadIntegrationsByIDs

func LoadIntegrationsByIDs(ctx context.Context, db gorp.SqlExecutor, ids []int64) ([]sdk.ProjectIntegration, error)

LoadIntegrationsByIDs load integration integrations by id

func LoadIntegrationsByProjectID

func LoadIntegrationsByProjectID(ctx context.Context, db gorp.SqlExecutor, id int64) ([]sdk.ProjectIntegration, error)

LoadIntegrationsByProjectID load integration integrations by project id

func LoadIntegrationsByProjectIDWithClearPassword

func LoadIntegrationsByProjectIDWithClearPassword(ctx context.Context, db gorp.SqlExecutor, id int64) ([]sdk.ProjectIntegration, error)

LoadIntegrationsByProjectIDWithClearPassword load integration integrations by project id

func LoadModel

func LoadModel(ctx context.Context, db gorp.SqlExecutor, modelID int64) (sdk.IntegrationModel, error)

LoadModel Load a integration model by its ID

func LoadModelByName

func LoadModelByName(ctx context.Context, db gorp.SqlExecutor, name string) (sdk.IntegrationModel, error)

LoadModelByName Load a integration model by its name

func LoadModelByNameWithClearPassword

func LoadModelByNameWithClearPassword(ctx context.Context, db gorp.SqlExecutor, name string) (sdk.IntegrationModel, error)

func LoadModelWithClearPassword

func LoadModelWithClearPassword(ctx context.Context, db gorp.SqlExecutor, modelID int64) (sdk.IntegrationModel, error)

func LoadModels

func LoadModels(db gorp.SqlExecutor) ([]sdk.IntegrationModel, error)

LoadModels load integration models

func LoadProjectIntegrationByID

func LoadProjectIntegrationByID(ctx context.Context, db gorp.SqlExecutor, id int64) (*sdk.ProjectIntegration, error)

LoadProjectIntegrationByID returns integration, selecting by its id

func LoadProjectIntegrationByIDWithClearPassword

func LoadProjectIntegrationByIDWithClearPassword(ctx context.Context, db gorp.SqlExecutor, id int64) (*sdk.ProjectIntegration, error)

func LoadProjectIntegrationByIDs added in v0.53.1

func LoadProjectIntegrationByIDs(ctx context.Context, db gorp.SqlExecutor, id ...int64) (map[int64]sdk.ProjectIntegration, error)

func LoadProjectIntegrationByIDsWithClearPassword added in v0.53.1

func LoadProjectIntegrationByIDsWithClearPassword(ctx context.Context, db gorp.SqlExecutor, id ...int64) (map[int64]sdk.ProjectIntegration, error)

func LoadProjectIntegrationByName

func LoadProjectIntegrationByName(ctx context.Context, db gorp.SqlExecutor, key string, name string) (sdk.ProjectIntegration, error)

LoadProjectIntegrationByName Load a integration by project key and its name

func LoadProjectIntegrationByNameWithClearPassword

func LoadProjectIntegrationByNameWithClearPassword(ctx context.Context, db gorp.SqlExecutor, key string, name string) (sdk.ProjectIntegration, error)

func ModelExists

func ModelExists(db gorp.SqlExecutor, name string) (bool, error)

ModelExists tests if the given model exists

func UpdateIntegration

UpdateIntegration Update a integration

func UpdateModel

UpdateModel updates a integration model in database

Types

This section is empty.

Jump to

Keyboard shortcuts

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