Documentation
¶
Index ¶
- type CouchbaseConfig
- type CouchbasePlugin
- func (p *CouchbasePlugin) GetConnectionInfo() (*plugin.ConnectionInfo, error)
- func (p *CouchbasePlugin) GetLogs(ctx context.Context, opts *plugin.LogOptions) ([]string, error)
- func (p *CouchbasePlugin) IsReady(ctx context.Context) (bool, error)
- func (p *CouchbasePlugin) Launch(ctx context.Context, config map[string]interface{}) error
- func (p *CouchbasePlugin) Name() string
- func (p *CouchbasePlugin) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CouchbaseConfig ¶
type CouchbaseConfig struct {
Image string `json:"image"`
AdminPort string `json:"admin-port"`
DataPort string `json:"data-port"`
Username string `json:"username"`
Password string `json:"password"`
Bucket string `json:"bucket"`
BucketRAMMB int `json:"bucket-ram-mb"`
ClusterRAMMB int `json:"cluster-ram-mb"`
Services string `json:"services"`
ContainerName string `json:"container-name"`
}
CouchbaseConfig holds Couchbase-specific configuration
type CouchbasePlugin ¶
type CouchbasePlugin struct {
// contains filtered or unexported fields
}
CouchbasePlugin implements the ServicePlugin interface for a single-node Couchbase Server cluster.
func NewCouchbasePlugin ¶
func NewCouchbasePlugin(dockerClient *docker.Client, logger *zap.Logger) *CouchbasePlugin
NewCouchbasePlugin creates a new Couchbase service plugin
func (*CouchbasePlugin) GetConnectionInfo ¶
func (p *CouchbasePlugin) GetConnectionInfo() (*plugin.ConnectionInfo, error)
GetConnectionInfo returns connection details
func (*CouchbasePlugin) GetLogs ¶
func (p *CouchbasePlugin) GetLogs(ctx context.Context, opts *plugin.LogOptions) ([]string, error)
GetLogs retrieves service logs
func (*CouchbasePlugin) IsReady ¶
func (p *CouchbasePlugin) IsReady(ctx context.Context) (bool, error)
IsReady checks if the Couchbase cluster is healthy
func (*CouchbasePlugin) Launch ¶
func (p *CouchbasePlugin) Launch(ctx context.Context, config map[string]interface{}) error
Launch starts the Couchbase service and initializes a single-node cluster
func (*CouchbasePlugin) Name ¶
func (p *CouchbasePlugin) Name() string
Name returns the service identifier
Click to show internal directories.
Click to hide internal directories.