MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / WithClusterName

Method WithClusterName

pkg/management/postgres/instance.go:470–473  ·  view source on GitHub ↗

WithClusterName specifies the name of the cluster this Instance belongs to

(clusterName string)

Source from the content-addressed store, hash-verified

468
469// WithClusterName specifies the name of the cluster this Instance belongs to
470func (instance *Instance) WithClusterName(clusterName string) *Instance {
471 instance.clusterName = clusterName
472 return instance
473}
474
475// RetryUntilServerAvailable is the default retry configuration that is used
476// to wait for a successful connection to a certain server

Callers 15

instance_test.goFile · 0.80
cache_test.goFile · 0.80
NewCmdFunction · 0.80
NewCmdFunction · 0.80
NewCmdFunction · 0.80
NewCmdFunction · 0.80
NewCmdFunction · 0.80
runnable_test.goFile · 0.80

Calls

no outgoing calls

Tested by 1