Documentation ¶
Overview ¶
Package utils :
Index ¶
- func CaptureMessage(message msg.Message, msgType string, client *gorm.DB) bool
- func CreateAggregatorLogicalComponent(logicalName, repositoryURL string, pivot *models.Pivot) *models.LogicalComponent
- func DownloadPivot(url, ressource string) (pivot *models.Pivot, err error)
- func GenerateHash() string
- func GetAggregatorPivot(baseurl, componentType string, version models.Version) (*models.Pivot, error)
- func GetApplicationContext(cmd msg.Command, client *gorm.DB) (connector models.LogicalComponent)
- func GetLogicalComponents(client *gorm.DB, logicalName string) (logicalComponent models.LogicalComponent, err error)
- func GetPivots(client *gorm.DB, componentType string, version models.Version) (pivot models.Pivot, err error)
- func GetProductConnectors(client *gorm.DB, product string, version models.Version) (productConnector models.ProductConnector, err error)
- func GetTenant(tenantName string, client *gorm.DB) (tenant models.Tenant, err error)
- func SaveOrUpdateHeartbeat(heartbeat models.Heartbeat, client *gorm.DB)
- func SavePivot(pivot models.Pivot, client *gorm.DB)
- func SaveProductConnector(productConnector *models.ProductConnector, client *gorm.DB)
- func ValidateSecret(databaseClient *gorm.DB, secret, bindAddress string) (result bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureMessage ¶
CaptureMessage : Cluster capture message function.
func CreateAggregatorLogicalComponent ¶
func CreateAggregatorLogicalComponent(logicalName, repositoryURL string, pivot *models.Pivot) *models.LogicalComponent
func DownloadPivot ¶
DownloadPivot : Download pivot from url
func GenerateHash ¶
func GenerateHash() string
func GetAggregatorPivot ¶
func GetApplicationContext ¶
GetApplicationContext : Cluster application context getter.
func GetLogicalComponents ¶
func GetLogicalComponents(client *gorm.DB, logicalName string) (logicalComponent models.LogicalComponent, err error)
// GetConnectorConfiguration : Cluster application context getter.
func GetConnectorsConfiguration(client *gorm.DB) (connectorsConfiguration []models.ConnectorConfig) { client.Order("connector_type_id, connector_product_id, major desc").Preload("ConnectorType").Preload("ConnectorProduct").Preload("ConnectorCommands").Preload("ConnectorEvents").Find(&connectorsConfiguration) return }
func GetProductConnectors ¶
func SaveOrUpdateHeartbeat ¶
func SaveProductConnector ¶
func SaveProductConnector(productConnector *models.ProductConnector, client *gorm.DB)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.