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