mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 21:12:02 +08:00

* chore: multitenancy in integrations * chore: multitenancy in cloud integration accounts * chore: changes to cloudintegrationservice * chore: rename migration * chore: update scan function * chore: update scan function * chore: fix migration * chore: fix struct * chore: remove unwanted code * chore: update scan function * chore: migrate user and pat for integrations * fix: changes to the user for integrations * fix: address comments * fix: copy created_at * fix: update non revoked token * chore: don't allow deleting pat and user for integrations * fix: address comments * chore: address comments * chore: add checks for fk in dialect * fix: service migration * fix: don't update user if user is already migrated * fix: update correct service config * fix: remove unwanted code * fix: remove migration for multiple same services which is not required * fix: fix migration and disable disaboard if metrics disabled * fix: don't use ee types --------- Co-authored-by: Vikrant Gupta <vikrant@signoz.io>
41 lines
1.2 KiB
Go
41 lines
1.2 KiB
Go
package integrations
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/SigNoz/signoz/pkg/query-service/model"
|
|
"github.com/SigNoz/signoz/pkg/types"
|
|
)
|
|
|
|
type InstalledIntegrationsRepo interface {
|
|
list(ctx context.Context, orgId string) ([]types.InstalledIntegration, *model.ApiError)
|
|
|
|
get(
|
|
ctx context.Context, orgId string, integrationTypes []string,
|
|
) (map[string]types.InstalledIntegration, *model.ApiError)
|
|
|
|
upsert(
|
|
ctx context.Context,
|
|
orgId string,
|
|
integrationType string,
|
|
config types.InstalledIntegrationConfig,
|
|
) (*types.InstalledIntegration, *model.ApiError)
|
|
|
|
delete(ctx context.Context, orgId string, integrationType string) *model.ApiError
|
|
}
|
|
|
|
type AvailableIntegrationsRepo interface {
|
|
list(context.Context) ([]IntegrationDetails, *model.ApiError)
|
|
|
|
get(
|
|
ctx context.Context, integrationTypes []string,
|
|
) (map[string]IntegrationDetails, *model.ApiError)
|
|
|
|
// AvailableIntegrationsRepo implementations are expected to cache
|
|
// details of installed integrations for quick retrieval.
|
|
//
|
|
// For v0 only bundled integrations are available, later versions
|
|
// are expected to add methods in this interface for pinning installed
|
|
// integration details in local cache.
|
|
}
|