Documentation ¶
Index ¶
- Constants
- type PostgreSQLDownloaderOptions
- type PostgreSQLInstaller
- func (x *PostgreSQLInstaller) ChangeConfigFilePort(port int) *schema.Diagnostics
- func (x *PostgreSQLInstaller) DownloadOCIImage(ctx context.Context) bool
- func (x *PostgreSQLInstaller) Install(ctx context.Context) bool
- func (x *PostgreSQLInstaller) IsInstalled() bool
- func (x *PostgreSQLInstaller) Run(ctx context.Context) bool
- func (x *PostgreSQLInstaller) Start() bool
- func (x *PostgreSQLInstaller) Stop() bool
Constants ¶
View Source
const ( // DefaultPostgreSQLPasswd The default password of the startup instance, Maybe I should use a stronger random password? DefaultPostgreSQLPasswd = "pass" DefaultPostgreSQLPort = 15432 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgreSQLDownloaderOptions ¶ added in v0.0.9
type PostgreSQLDownloaderOptions struct { // Which directory to store it in after downloading DownloadDirectory string MessageChannel *message.Channel[*schema.Diagnostics] }
PostgreSQLDownloaderOptions Download option
type PostgreSQLInstaller ¶ added in v0.0.9
type PostgreSQLInstaller struct {
// contains filtered or unexported fields
}
func NewPostgreSQLDownloader ¶ added in v0.0.9
func NewPostgreSQLDownloader(options *PostgreSQLDownloaderOptions) *PostgreSQLInstaller
func (*PostgreSQLInstaller) ChangeConfigFilePort ¶ added in v0.0.9
func (x *PostgreSQLInstaller) ChangeConfigFilePort(port int) *schema.Diagnostics
TODO Parameter is not used ChangeConfigFilePort Change the port number in the configuration file
func (*PostgreSQLInstaller) DownloadOCIImage ¶ added in v0.0.9
func (x *PostgreSQLInstaller) DownloadOCIImage(ctx context.Context) bool
func (*PostgreSQLInstaller) Install ¶ added in v0.0.9
func (x *PostgreSQLInstaller) Install(ctx context.Context) bool
Install postgresql locally
func (*PostgreSQLInstaller) IsInstalled ¶ added in v0.0.9
func (x *PostgreSQLInstaller) IsInstalled() bool
IsInstalled Check whether postgresql is installed
func (*PostgreSQLInstaller) Run ¶ added in v0.0.9
func (x *PostgreSQLInstaller) Run(ctx context.Context) bool
func (*PostgreSQLInstaller) Start ¶ added in v0.0.9
func (x *PostgreSQLInstaller) Start() bool
Start the postgresql database
func (*PostgreSQLInstaller) Stop ¶ added in v0.0.9
func (x *PostgreSQLInstaller) Stop() bool
Click to show internal directories.
Click to hide internal directories.