MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / BucketConfig

Struct BucketConfig

rest/config.go:92–103  ·  view source on GitHub ↗

Bucket configuration elements - used by db, index

Source from the content-addressed store, hash-verified

90
91// Bucket configuration elements - used by db, index
92type BucketConfig struct {
93 Server *string `json:"server,omitempty"` // Couchbase server URL
94 DeprecatedPool *string `json:"pool,omitempty"` // Couchbase pool name - This is now deprecated and forced to be "default"
95 Bucket *string `json:"bucket,omitempty"` // Bucket name
96 Username string `json:"username,omitempty"` // Username for authenticating to server
97 Password string `json:"password,omitempty"` // Password for authenticating to server
98 CertPath string `json:"certpath,omitempty"` // Cert path (public key) for X.509 bucket auth
99 KeyPath string `json:"keypath,omitempty"` // Key path (private key) for X.509 bucket auth
100 CACertPath string `json:"cacertpath,omitempty"` // Root CA cert path for X.509 bucket auth
101 KvTLSPort int `json:"kv_tls_port,omitempty"` // Memcached TLS port, if not default (11207)
102 MaxConcurrentQueryOps *int `json:"max_concurrent_query_ops,omitempty"` // Max concurrent query ops
103}
104
105// MakeBucketSpec creates a BucketSpec from the DatabaseConfig. Will return an error if the server value is not valid after basic parsing.
106func (dc *DbConfig) MakeBucketSpec(server string) base.BucketSpec {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected