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