oci

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL