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

Function MountForTablespace

pkg/specs/volumes.go:49–51  ·  view source on GitHub ↗

MountForTablespace returns the normalized tablespace volume name for a given tablespace, on a cluster pod

(tablespaceName string)

Source from the content-addressed store, hash-verified

47// MountForTablespace returns the normalized tablespace volume name for a given
48// tablespace, on a cluster pod
49func MountForTablespace(tablespaceName string) string {
50 return path.Join(PgTablespaceVolumePath, tablespaceName)
51}
52
53// LocationForTablespace returns the data location for tablespace on a cluster pod
54func LocationForTablespace(tablespaceName string) string {

Callers 3

ReconcileTablespacesMethod · 0.92
LocationForTablespaceFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected