Documentation
¶
Index ¶
- type PostgreSQLConfig
- type PostgreSQLPlugin
- func (p *PostgreSQLPlugin) GetConnectionInfo() (*plugin.ConnectionInfo, error)
- func (p *PostgreSQLPlugin) GetLogs(ctx context.Context, opts *plugin.LogOptions) ([]string, error)
- func (p *PostgreSQLPlugin) IsReady(ctx context.Context) (bool, error)
- func (p *PostgreSQLPlugin) Launch(ctx context.Context, config map[string]interface{}) error
- func (p *PostgreSQLPlugin) Name() string
- func (p *PostgreSQLPlugin) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgreSQLConfig ¶
type PostgreSQLConfig struct {
Image string `json:"image"`
Port string `json:"port"`
User string `json:"user"`
Password string `json:"password"`
Database string `json:"database"`
ScriptsPath string `json:"scripts-path"`
ContainerName string `json:"container-name"`
}
PostgreSQLConfig holds PostgreSQL-specific configuration
type PostgreSQLPlugin ¶
type PostgreSQLPlugin struct {
// contains filtered or unexported fields
}
PostgreSQLPlugin implements the ServicePlugin interface for PostgreSQL
func NewPostgreSQLPlugin ¶
func NewPostgreSQLPlugin(dockerClient *docker.Client, logger *zap.Logger) *PostgreSQLPlugin
NewPostgreSQLPlugin creates a new PostgreSQL service plugin
func (*PostgreSQLPlugin) GetConnectionInfo ¶
func (p *PostgreSQLPlugin) GetConnectionInfo() (*plugin.ConnectionInfo, error)
GetConnectionInfo returns connection details
func (*PostgreSQLPlugin) GetLogs ¶
func (p *PostgreSQLPlugin) GetLogs(ctx context.Context, opts *plugin.LogOptions) ([]string, error)
GetLogs retrieves service logs
func (*PostgreSQLPlugin) IsReady ¶
func (p *PostgreSQLPlugin) IsReady(ctx context.Context) (bool, error)
IsReady checks if the PostgreSQL service is ready to accept connections
func (*PostgreSQLPlugin) Launch ¶
func (p *PostgreSQLPlugin) Launch(ctx context.Context, config map[string]interface{}) error
Launch starts the PostgreSQL service with given configuration
func (*PostgreSQLPlugin) Name ¶
func (p *PostgreSQLPlugin) Name() string
Name returns the service identifier
Click to show internal directories.
Click to hide internal directories.