Versions in this module Expand all Collapse all v0 v0.7.0 Jul 19, 2023 Changes in this version + const ComplianceTableName + const ComplianceType + const ErrorNone + const EventSchema + const HubClusterInfoTableName + const Jsonb + const LeafHubHeartbeatsTableName + const LocalPolicyEventTableName + const LocalPolicySpecTableName + const LocalRootPolicyEventTableName + const LocalSpecSchema + const LocalStatusSchema + const ManagedClustersTableName + const MinimalComplianceTable + const PlacementDecisionsTableName + const PlacementRulesTableName + const PlacementsTableName + const PostgresDialect + const StatusSchema + const SubscriptionReportsTableName + const SubscriptionStatusesTableName + const UUID + func CloseGorm() + func GetGorm() *gorm.DB + func GetPostgresConfig(URI string, cert []byte) (*pgx.ConnConfig, error) + func InitGormInstance(config *DatabaseConfig) error + func PostgresConnPool(ctx context.Context, databaseURI string, certPath string, size int32) (*pgxpool.Pool, error) + func PostgresConnection(ctx context.Context, URI string, cert []byte) (*pgx.Conn, error) + type ComplianceStatus string + const Compliant + const NonCompliant + const Unknown + type DatabaseConfig struct + CaCertPath string + Dialect string + PoolSize int + URL string