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

Method GetMetadataDocument

base/bootstrap.go:30–30  ·  view source on GitHub ↗

GetMetadataDocument fetches a bootstrap metadata document for a given bucket and key, along with the CAS of the config document.

(ctx context.Context, bucket, key string, valuePtr interface{})

Source from the content-addressed store, hash-verified

28 GetConfigBuckets() ([]string, error)
29 // GetMetadataDocument fetches a bootstrap metadata document for a given bucket and key, along with the CAS of the config document.
30 GetMetadataDocument(ctx context.Context, bucket, key string, valuePtr interface{}) (cas uint64, err error)
31 // InsertMetadataDocument saves a new bootstrap metadata document for a given bucket and key.
32 InsertMetadataDocument(ctx context.Context, bucket, key string, value interface{}) (newCAS uint64, err error)
33 // DeleteMetadataDocument deletes an existing bootstrap metadata document for a given bucket and key.

Callers 12

migrateV30ConfigsMethod · 0.65
GetConfigNameMethod · 0.65
GetConfigMethod · 0.65
GetDatabaseConfigsMethod · 0.65
waitForConfigDeleteMethod · 0.65
getGatewayRegistryMethod · 0.65

Implementers 2

RosmarClusterbase/rosmar_cluster.go
CouchbaseClusterbase/bootstrap.go

Calls

no outgoing calls