Versions in this module Expand all Collapse all v1 v1.0.14 Nov 7, 2025 v1.0.13 Nov 7, 2025 v1.0.12 Nov 6, 2025 v1.0.11 Nov 6, 2025 v1.0.10 Nov 5, 2025 v1.0.9 Nov 5, 2025 v1.0.8 Nov 5, 2025 v1.0.7 Nov 5, 2025 v1.0.6 Nov 5, 2025 v1.0.5 Nov 4, 2025 v1.0.4 Nov 4, 2025 Changes in this version + type ConnectionType string + const ConnectionTypeHost + const ConnectionTypeLocal + const ConnectionTypeNoSSL + const ConnectionTypeSSL + type PgAuthType string + const AuthCert + const AuthIdent + const AuthMD5 + const AuthPassword + const AuthPeer + const AuthReject + const AuthScramSHA + const AuthTrust + type PgHBAEntry struct + Address string + Database string + Method PgAuthType + Options map[string]string + Type ConnectionType + User string v1.0.3 Oct 27, 2025 v1.0.2 Oct 27, 2025 v1.0.1 Oct 27, 2025 Changes in this version + func GetAllDefaults() map[string]string + type BackupInfo struct + BackupName string + CompressedSize int64 + DataSize int64 + FinishTime time.Time + IsPermanent bool + StartTime time.Time + UncompressedSize int64 + type Conf = PgconfigSchemaJson + type DatabaseConfig struct + ConnectQuery *string + Dbname *string + Host string + Password *string + PoolSize *int + Port int + User *string + type Duration = types.Duration + type Extension interface + Health func(p *Postgres) error + Install func(p *Postgres) error + IsInstalled func(p *Postgres) error + type ExtensionConfig struct + ConfigFile *string + Enabled bool + Name string + Version *string + type ExtensionInfo struct + Available bool + Name string + Version string + type FieldInfo struct + Default string + Description string + EnvVar string + KoanfPath string + Name string + Type string + func GetAllFieldInfo() []FieldInfo + type PGAuditConf struct + Log string + LogCatalog string + LogClient string + LogLevel string + LogParameter string + LogParameterMaxSize string + LogRelation string + LogStatement string + LogStatementOnce string + Role *string + type PgBouncer struct + Config *PgBouncerConf + func NewPgBouncer(config *PgBouncerConf) *PgBouncer + func (p *PgBouncer) GetStatus() (*PgBouncerStatus, error) + func (p *PgBouncer) Health() error + func (p *PgBouncer) ShowPools() ([]PoolInfo, error) + func (p *PgBouncer) ShowStats() (*Stats, error) + func (p *PgBouncer) Validate(config []byte) error + type PgBouncerConf struct + AdminPassword *string + AdminUser *string + AuthFile string + AuthQuery string + AuthType string + ClientIdleTimeout string + Databases map[string]DatabaseConfig + DefaultPoolSize int + ListenAddr string + ListenAddress string + ListenPort int + MaxClientConn int + MinPoolSize int + PoolMode string + QueryTimeout string + ReservePoolSize *int + ServerIdleTimeout string + ServerLifetime string + type PgBouncerIni = PgBouncerConf + type PgBouncerStatus struct + Address string + AdminUser string + CheckTime time.Time + Error string + Healthy bool + PoolCount int + TotalClients int + TotalServers int + type PgHBAConfRulesElem struct + Address *string + Database string + Method PgHBAConfRulesElemMethod + Options map[string]string + Type PgHBAConfRulesElemType + User string + type PgHBAConfRulesElemMethod string + const PgHBAConfRulesElemMethodCert + const PgHBAConfRulesElemMethodIdent + const PgHBAConfRulesElemMethodMD5 + const PgHBAConfRulesElemMethodPassword + const PgHBAConfRulesElemMethodPeer + const PgHBAConfRulesElemMethodReject + const PgHBAConfRulesElemMethodScramSHA256 + const PgHBAConfRulesElemMethodTrust + type PgHBAConfRulesElemType string + const PgHBAConfRulesElemTypeHost + const PgHBAConfRulesElemTypeHostNoSSL + const PgHBAConfRulesElemTypeHostSSL + const PgHBAConfRulesElemTypeLocal + type PgVersion string + type PgconfigSchemaJson struct + Pgaudit *PGAuditConf + Pgbouncer *PgBouncerConf + Postgres *PostgresConf + Postgrest *PostgrestConf + Walg *WalgConf + func LoadConfig(configFile string) (*PgconfigSchemaJson, error) + type PoolInfo struct + ClientActive int + ClientWaiting int + Database string + MaxWait int + MaxWaitUs int + PoolMode string + ServerActive int + ServerIdle int + ServerLogin int + ServerTested int + ServerUsed int + User string + type PostgREST struct + Config *PostgrestConf + func NewPostgREST(config *PostgrestConf) *PostgREST + func (p *PostgREST) GetOpenAPISchema() (map[string]interface{}, error) + func (p *PostgREST) GetStatus() (*PostgRESTStatus, error) + func (p *PostgREST) Health() error + func (p *PostgREST) Install(version, targetDir string) error + func (p *PostgREST) InstalledVersion() (string, error) + func (p *PostgREST) IsInstalled() bool + func (p *PostgREST) Start() error + func (p *PostgREST) Stop() error + func (p *PostgREST) Validate(config []byte) error + type PostgRESTStatus struct + AdminRole string + AnonymousRole string + CheckTime time.Time + Error string + Healthy bool + URL string + type PostgreSQLConfiguration = PgconfigSchemaJson + type Postgres interface + DescribeConfig func() ([]interface{}, error) + DetectVersion func() (int, error) + Exists func() bool + GetVersion func() PgVersion + Health func() error + IsRunning func() bool + SQL func(sqlQuery string) ([]map[string]interface{}, error) + Start func() error + Stop func() error + Validate func(config []byte) error + type PostgresConf struct + AdditionalProperties map[string]interface{} + ArchiveCommand string + ArchiveMode string + ArchiveTimeout types.Duration + Autovacuum bool + AutovacuumMaxWorkers int + AutovacuumNaptime types.Duration + CheckpointCompletionTarget float64 + DefaultStatisticsTarget int + EffectiveCacheSize types.Size + EffectiveIoConcurrency int + HugePages string + ListenAddresses string + LogConnections bool + LogDestination string + LogDisconnections bool + LogLinePrefix string + LogMinDurationStatement types.Duration + LogStatement string + MaintenanceWorkMem types.Size + MaxConnections int + MaxParallelMaintenanceWorkers int + MaxParallelWorkers int + MaxParallelWorkersPerGather int + MaxWalSenders int + MaxWalSize types.Size + MaxWorkerProcesses int + MinWalSize types.Size + PasswordEncryption string + Port int + RandomPageCost float64 + SSL bool + SSLCertFile string + SSLKeyFile string + SharedBuffers types.Size + SharedPreloadLibraries string + WalBuffers types.Size + WalLevel string + WorkMem types.Size + func (p *PostgresConf) UnmarshalJSON(data []byte) error + func (p PostgresConf) MarshalJSON() ([]byte, error) + type PostgrestConf struct + AdminRole string + AnonymousRole string + DbAnonRole *string + DbPool *int + DbPoolSize *int + DbSchemas *string + DbUri *string + JwtAud *string + JwtSecret *string + LogLevel *string + MaxRows *int + PreRequest *string + RoleClaimKey *string + ServerHost *string + ServerPort *int + type PostgrestHBA = PgHBAConfRulesElem + type PostgrestHBAMethod = PgHBAConfRulesElemMethod + type PostgrestHBAType = PgHBAConfRulesElemType + type Stats struct + AvgQueryCount int64 + AvgQueryTime int64 + AvgReceived int64 + AvgSent int64 + AvgWaitTime int64 + AvgXactCount int64 + AvgXactTime int64 + Database string + TotalQueryCount int64 + TotalQueryTime int64 + TotalReceived int64 + TotalSent int64 + TotalWaitTime int64 + TotalXactCount int64 + TotalXactTime int64 + type ValidationError struct + Line int + Message string + Parameter string + Raw string + func (e *ValidationError) Error() string + type WalG struct + Config *WalgConf + func NewWalG(config *WalgConf) *WalG + func (w *WalG) BackupFetch(backupName, targetDir string) error + func (w *WalG) BackupList() ([]BackupInfo, error) + func (w *WalG) BackupPush() error + func (w *WalG) DeleteRetain(retainCount int) error + func (w *WalG) GetStatus() (*WalgStatus, error) + func (w *WalG) Health() error + func (w *WalG) Install(version, targetDir string) error + func (w *WalG) InstalledVersion() (string, error) + func (w *WalG) IsInstalled() bool + type WalgConf struct + AzAccountKey *string + AzAccountName *string + AzPrefix *string + BackupRetainCount int + BackupSchedule string + CompressionMethod *string + CompressionType *string + DiskRateLimitBps *int + Enabled bool + FilePrefix *string + GsPrefix *string + GsServiceAccountKey *string + NetworkRateLimitBps *int + PostgresqlDataDir string + PostgresqlPassword *string + RetentionPolicy *string + S3AccessKey *string + S3AccessKeyId *string + S3Bucket *string + S3Endpoint *string + S3Prefix *string + S3Region string + S3SecretAccessKey *string + S3SecretKey *string + S3SessionToken *string + S3UsePathStyle *bool + S3UseSsl *bool + StreamCreateCommand *string + StreamRestoreCommand *string + type WalgStatus struct + BackupCount int + CheckTime time.Time + Enabled bool + Error string + Healthy bool + LastBackup *time.Time + Message string + Retention int + Schedule string + Storage string