Bucket configuration elements - used by db, index
| 90 | |
| 91 | // Bucket configuration elements - used by db, index |
| 92 | type 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. |
| 106 | func (dc *DbConfig) MakeBucketSpec(server string) base.BucketSpec { |
nothing calls this directly
no outgoing calls
no test coverage detected