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