Documentation ¶
Index ¶
- Variables
- func PGURIFromEnvironment(database string) (string, error)
- func PGURIFromEnvironmentWithParams(database, svc, path, svcDBUser string) (string, error)
- type Config
- func (c *Config) ExternalPGRootCertPath() string
- func (c *Config) GetPGConnInfoForSuperuser() (*PGConnInfo, error)
- func (c *Config) GetPGConnInfoURI(user string) (*PGConnInfo, error)
- func (c *Config) GetPGURI(dbname string) (string, error)
- func (c *Config) GetPGURIForUser(dbname string, user string) (string, error)
- func (c *Config) IsExternalPG() bool
- func (c *Config) LoadTemplates(funcs template.FuncMap, opts ...TemplateOpt) (*template.Template, error)
- func (c *Config) PGServiceUser() (string, error)
- func (c *Config) PGSuperUser() (string, error)
- func (c *Config) TemplatesPath() string
- type PGConnInfo
- type TemplateOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoPlatformEnvironment = errors.New("Platform environment not correctly configured." +
" Both A2_SVC_NAME and A2_SVC_PATH must be set in the environment")
Functions ¶
func PGURIFromEnvironment ¶
Types ¶
type Config ¶
func ConfigFromEnvironment ¶
func ConfigFromParams ¶
func (*Config) ExternalPGRootCertPath ¶
func (*Config) GetPGConnInfoForSuperuser ¶
func (c *Config) GetPGConnInfoForSuperuser() (*PGConnInfo, error)
func (*Config) GetPGConnInfoURI ¶
func (c *Config) GetPGConnInfoURI(user string) (*PGConnInfo, error)
func (*Config) GetPGURIForUser ¶
func (*Config) IsExternalPG ¶
func (*Config) LoadTemplates ¶
func (*Config) PGServiceUser ¶
func (*Config) PGSuperUser ¶
func (*Config) TemplatesPath ¶
type PGConnInfo ¶
type PGConnInfo struct {
// contains filtered or unexported fields
}
func (*PGConnInfo) ConnURI ¶
func (c *PGConnInfo) ConnURI(dbname string) string
func (*PGConnInfo) String ¶
func (c *PGConnInfo) String() string
type TemplateOpt ¶
type TemplateOpt func(*templateOptions)
func WithSecretsPath ¶
func WithSecretsPath(path string) TemplateOpt
Click to show internal directories.
Click to hide internal directories.