couchbase

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func (*CouchbasePlugin) Stop

func (p *CouchbasePlugin) Stop(ctx context.Context) error

Stop terminates the Couchbase service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL