Documentation
¶
Index ¶
- Variables
- func CreateBuiltinModels(ctx context.Context, db *gorp.DbMap) error
- func DeleteIntegration(db gorp.SqlExecutor, integration sdk.ProjectIntegration) error
- func DeleteModel(ctx context.Context, db gorp.SqlExecutor, id int64) error
- func InsertIntegration(db gorpmapper.SqlExecutorWithTx, pp *sdk.ProjectIntegration) error
- func InsertModel(db gorpmapper.SqlExecutorWithTx, m *sdk.IntegrationModel) error
- func LoadAllIntegrationsForProjectsWithDecryption(ctx context.Context, db gorp.SqlExecutor, projIDs []int64) (map[int64][]sdk.ProjectIntegration, error)
- func LoadIntegrationsByIDs(ctx context.Context, db gorp.SqlExecutor, ids []int64) ([]sdk.ProjectIntegration, error)
- func LoadIntegrationsByProjectID(ctx context.Context, db gorp.SqlExecutor, id int64) ([]sdk.ProjectIntegration, error)
- func LoadIntegrationsByProjectIDWithClearPassword(ctx context.Context, db gorp.SqlExecutor, id int64) ([]sdk.ProjectIntegration, error)
- func LoadModel(ctx context.Context, db gorp.SqlExecutor, modelID int64) (sdk.IntegrationModel, error)
- func LoadModelByName(ctx context.Context, db gorp.SqlExecutor, name string) (sdk.IntegrationModel, error)
- func LoadModelByNameWithClearPassword(ctx context.Context, db gorp.SqlExecutor, name string) (sdk.IntegrationModel, error)
- func LoadModelWithClearPassword(ctx context.Context, db gorp.SqlExecutor, modelID int64) (sdk.IntegrationModel, error)
- func LoadModels(db gorp.SqlExecutor) ([]sdk.IntegrationModel, error)
- func LoadProjectIntegrationByID(ctx context.Context, db gorp.SqlExecutor, id int64) (*sdk.ProjectIntegration, error)
- func LoadProjectIntegrationByIDWithClearPassword(ctx context.Context, db gorp.SqlExecutor, id int64) (*sdk.ProjectIntegration, error)
- func LoadProjectIntegrationByIDs(ctx context.Context, db gorp.SqlExecutor, id ...int64) (map[int64]sdk.ProjectIntegration, error)
- func LoadProjectIntegrationByIDsWithClearPassword(ctx context.Context, db gorp.SqlExecutor, id ...int64) (map[int64]sdk.ProjectIntegration, error)
- func LoadProjectIntegrationByName(ctx context.Context, db gorp.SqlExecutor, key string, name string) (sdk.ProjectIntegration, error)
- func LoadProjectIntegrationByNameWithClearPassword(ctx context.Context, db gorp.SqlExecutor, key string, name string) (sdk.ProjectIntegration, error)
- func ModelExists(db gorp.SqlExecutor, name string) (bool, error)
- func UpdateIntegration(ctx context.Context, db gorpmapper.SqlExecutorWithTx, ...) error
- func UpdateModel(ctx context.Context, db gorpmapper.SqlExecutorWithTx, m *sdk.IntegrationModel) error
Constants ¶
This section is empty.
Variables ¶
var ( // BuiltinModels list available integration models BuiltinModels = []sdk.IntegrationModel{ sdk.KafkaIntegration, sdk.RabbitMQIntegration, sdk.OpenstackIntegration, sdk.AWSIntegration, sdk.ArtifactoryIntegration, } )
Functions ¶
func CreateBuiltinModels ¶
CreateBuiltinModels creates integrations models
func DeleteIntegration ¶
func DeleteIntegration(db gorp.SqlExecutor, integration sdk.ProjectIntegration) error
DeleteIntegration deletes a integration
func DeleteModel ¶
DeleteModel deletes a integration model in database
func InsertIntegration ¶
func InsertIntegration(db gorpmapper.SqlExecutorWithTx, pp *sdk.ProjectIntegration) error
InsertIntegration inserts a integration
func InsertModel ¶
func InsertModel(db gorpmapper.SqlExecutorWithTx, m *sdk.IntegrationModel) error
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 ¶
func UpdateIntegration(ctx context.Context, db gorpmapper.SqlExecutorWithTx, pp sdk.ProjectIntegration) error
UpdateIntegration Update a integration
func UpdateModel ¶
func UpdateModel(ctx context.Context, db gorpmapper.SqlExecutorWithTx, m *sdk.IntegrationModel) error
UpdateModel updates a integration model in database
Types ¶
This section is empty.