Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cloudnative-pg/plugin-barman-cloud
/ functions
Functions
281 in github.com/cloudnative-pg/plugin-barman-cloud
⨍
Functions
281
◇
Types & classes
60
↓ 70 callers
Method
Get
Get behaves like the original Get method, but uses a cache for secrets
internal/cnpgi/instance/internal/client/client.go:79
↓ 33 callers
Method
Error
Error implements the error interface
internal/cnpgi/common/wal.go:57
↓ 31 callers
Method
Create
Create creates the object store resources.
test/e2e/internal/objectstore/objectstore.go:45
↓ 16 callers
Function
newScheme
()
internal/cnpgi/operator/rbac/ensure_test.go:82
↓ 14 callers
Method
Error
Error implements the error interface
internal/cnpgi/operator/config/config.go:39
↓ 13 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStore.
api/v1/zz_generated.deepcopy.go:69
↓ 12 callers
Function
EnsureRole
EnsureRole ensures the RBAC Role for the given Cluster matches the desired state derived from the given ObjectStores. On creation, the Cluster is set
internal/cnpgi/operator/rbac/ensure.go:52
↓ 11 callers
Function
CollectSecretNamesFromCredentials
CollectSecretNamesFromCredentials collects the names of the secrets
internal/cnpgi/operator/specs/secrets.go:28
↓ 11 callers
Function
ExecuteInContainer
ExecuteInContainer executes a command in a container. If timeout is not nil, the command will be executed with the specified timeout. The function ret
test/e2e/internal/command/command.go:44
↓ 10 callers
Function
EnsureRoleBinding
EnsureRoleBinding ensures the RoleBinding for the given Cluster is present and carries the recommended labels. This function is called from the Pre h
internal/cnpgi/operator/rbac/ensure.go:108
↓ 10 callers
Method
GetBarmanObjectKey
GetBarmanObjectKey gets the namespaced name of the barman object
internal/cnpgi/operator/config/config.go:82
↓ 9 callers
Function
ObjectStoreNamesFromRole
ObjectStoreNamesFromRole extracts the ObjectStore names referenced by a plugin-managed Role. It finds the objectstores rule semantically (by APIGroup
internal/cnpgi/operator/specs/role.go:112
↓ 9 callers
Method
Reconcile
+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=create;patch;update;get;list;watch +kubebuilder:rbac:groups=rbac.autho
internal/controller/objectstore_controller.go:62
↓ 9 callers
Function
newDstPluginBackup
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:257
↓ 8 callers
Function
BuildRoleRules
BuildRoleRules builds the RBAC PolicyRules for the given ObjectStores. nolint:goconst
internal/cnpgi/operator/specs/role.go:52
↓ 8 callers
Method
GetRecoveryBarmanObjectKey
GetRecoveryBarmanObjectKey gets the namespaced name of the recovery barman object
internal/cnpgi/operator/config/config.go:90
↓ 8 callers
Method
collectAdditionalInstanceArgs
( ctx context.Context, pluginConfiguration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle.go:259
↓ 8 callers
Function
ensureVolumeMount
ensureVolumeMount makes sure the passed volume mounts are present in the list of volume mounts. If a volume mount is already present, it is updated.
internal/cnpgi/operator/lifecycle.go:577
↓ 8 callers
Function
newTestObjectStore
(name, namespace, secretName string)
internal/controller/objectstore_controller_test.go:53
↓ 7 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:60
↓ 7 callers
Function
newLabeledRole
(clusterName, namespace string, objectStores []barmancloudv1.ObjectStore)
internal/controller/objectstore_controller_test.go:77
↓ 6 callers
Function
BuildCertificateFilePath
BuildCertificateFilePath builds the path to the barman objectStore certificate
internal/cnpgi/common/common.go:97
↓ 6 callers
Function
GetRBACName
GetRBACName returns the name of the RBAC entities for the barman cloud plugin
internal/cnpgi/operator/specs/role.go:153
↓ 6 callers
Function
NewMinioObjectStore
NewMinioObjectStore creates a new Minio object store.
test/e2e/internal/objectstore/minio.go:198
↓ 6 callers
Function
NewMinioObjectStoreResources
NewMinioObjectStoreResources creates the resources required to create a Minio object store.
test/e2e/internal/objectstore/minio.go:38
↓ 6 callers
Function
SetControllerReference
SetControllerReference sets an owner reference on controlled pointing to owner, reading the GVK from the owner object's metadata rather than from a sc
internal/cnpgi/operator/specs/ownership.go:41
↓ 6 callers
Function
expectRequiredLabels
(labels map[string]string, clusterName string)
internal/cnpgi/operator/rbac/ensure_test.go:46
↓ 6 callers
Function
newDstClusterWithPlugin
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:315
↓ 6 callers
Function
newSrcClusterWithPlugin
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:279
↓ 6 callers
Function
newSrcPluginBackup
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:216
↓ 6 callers
Function
newTestObjectStore
(name, secretName string)
internal/cnpgi/operator/specs/role_test.go:35
↓ 5 callers
Function
AddCNPGToScheme
AddCNPGToScheme registers CNPG types into the given scheme using the API group configured via CUSTOM_CNPG_GROUP/CUSTOM_CNPG_VERSION environment variab
internal/scheme/cnpg.go:37
↓ 5 callers
Function
BuildLabels
BuildLabels returns the Kubernetes recommended labels applied to every object managed by this plugin for the given Cluster. See https://github.com/clo
internal/cnpgi/operator/specs/labels.go:32
↓ 5 callers
Function
EnsureRoleRules
EnsureRoleRules updates the rules of an existing Role to match the desired state derived from the given ObjectStores. Unlike EnsureRole, this function
internal/cnpgi/operator/rbac/ensure.go:75
↓ 5 callers
Function
NewAzuriteObjectStore
NewAzuriteObjectStore creates a new ObjectStore object for Azurite.
test/e2e/internal/objectstore/azurite.go:189
↓ 5 callers
Function
NewAzuriteObjectStoreResources
NewAzuriteObjectStoreResources creates the resources required to create an Azurite object store.
test/e2e/internal/objectstore/azurite.go:38
↓ 5 callers
Function
NewFromCluster
NewFromCluster extracts the configuration from the cluster
internal/cnpgi/operator/config/config.go:142
↓ 5 callers
Function
NewFromClusterJSON
NewFromClusterJSON decodes a JSON representation of a cluster.
internal/cnpgi/operator/config/config.go:131
↓ 5 callers
Method
Patch
Patch behaves like the original Patch method, but on secrets it removes the secret from the cache
internal/cnpgi/instance/internal/client/client.go:199
↓ 5 callers
Function
reconcileJob
( ctx context.Context, cluster *cnpgv1.Cluster, request *lifecycle.OperatorLifecycleRequest, config sideca
internal/cnpgi/operator/lifecycle.go:167
↓ 4 callers
Method
Delete
Delete behaves like the original Delete method, but on secrets it removes the secret from the cache
internal/cnpgi/instance/internal/client/client.go:186
↓ 4 callers
Function
NewGCSObjectStore
NewGCSObjectStore creates a new GCS object store.
test/e2e/internal/objectstore/fakegcsserver.go:176
↓ 4 callers
Function
NewGCSObjectStoreResources
NewGCSObjectStoreResources creates the resources required to create a GCS object store.
test/e2e/internal/objectstore/fakegcsserver.go:38
↓ 4 callers
Method
Update
Update behaves like the original Update method, but on secrets it removes the secret from the cache
internal/cnpgi/instance/internal/client/client.go:173
↓ 4 callers
Function
addToCache
(c *ExtendedClient, obj client.Object, fetchUnixTime int64)
internal/cnpgi/instance/internal/client/client_test.go:47
↓ 4 callers
Function
classifyWALRestoreError
classifyWALRestoreError maps an error returned by the WAL restorer to a gRPC-coded error so the caller can tell terminal failures apart from transient
internal/cnpgi/common/errors.go:33
↓ 4 callers
Function
ensureVolume
ensureVolume makes sure the passed volume is present in the list of volumes. If the volume is already present, it is updated.
internal/cnpgi/operator/lifecycle.go:559
↓ 4 callers
Method
isObjectCached
(obj client.Object)
internal/cnpgi/instance/internal/client/client.go:66
↓ 4 callers
Function
newCluster
(name, namespace string)
internal/cnpgi/operator/rbac/ensure_test.go:90
↓ 4 callers
Function
newObjectStore
(name, namespace, secretName string)
internal/cnpgi/operator/rbac/ensure_test.go:103
↓ 4 callers
Function
removeVolumeMount
(mounts []corev1.VolumeMount, name string)
internal/cnpgi/operator/lifecycle.go:607
↓ 3 callers
Function
ApplyKustomization
ApplyKustomization builds the kustomization and creates the resources.
test/e2e/internal/kustomize/kustomize.go:48
↓ 3 callers
Method
GetReferredBarmanObjectsKey
GetReferredBarmanObjectsKey gets the list of barman objects referred by this plugin configuration
internal/cnpgi/operator/config/config.go:107
↓ 3 callers
Function
buildFqName
(name string)
internal/cnpgi/instance/metrics.go:45
↓ 3 callers
Method
collectObjectStoreEnvs
( ctx context.Context, barmanObjectKey types.NamespacedName, )
internal/cnpgi/operator/lifecycle_envs.go:87
↓ 3 callers
Function
newPatchCountingClient
newPatchCountingClient returns a fake client plus a pointer to a counter incremented on every Patch call. Useful for asserting that a "no-op" reconcil
internal/cnpgi/operator/rbac/ensure_test.go:61
↓ 3 callers
Function
newReplicaBackup
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:207
↓ 3 callers
Function
newReplicaCluster
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:229
↓ 3 callers
Function
newSrcBackup
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:184
↓ 3 callers
Function
newSrcCluster
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:122
↓ 3 callers
Function
newSrcInTreeBackup
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:238
↓ 3 callers
Function
reconcileInstancePod
( ctx context.Context, cluster *cnpgv1.Cluster, request *lifecycle.OperatorLifecycleRequest, pluginConfigu
internal/cnpgi/operator/lifecycle.go:309
↓ 3 callers
Method
removeObject
removeObject ensures that a object is not present in the cache
internal/cnpgi/instance/internal/client/client.go:158
↓ 3 callers
Function
removeVolume
removeVolume removes a volume with a known name from a list of volumes.
internal/cnpgi/operator/lifecycle.go:597
↓ 3 callers
Function
secretNamesFromRole
(role *rbacv1.Role)
test/e2e/internal/tests/credentialrotation/credential_rotation.go:160
↓ 2 callers
Function
AddHealthCheck
AddHealthCheck adds a health check service to the gRPC server with the tag 'plugin-barman-cloud'
internal/cnpgi/common/health.go:31
↓ 2 callers
Function
BuildRole
BuildRole builds the Role object for this cluster
internal/cnpgi/operator/specs/role.go:35
↓ 2 callers
Function
CheckBackupDestination
CheckBackupDestination checks if the backup destination is suitable to archive WALs
internal/cnpgi/common/check.go:32
↓ 2 callers
Method
Collect
( ctx context.Context, req *metrics.CollectMetricsRequest, )
internal/cnpgi/instance/metrics.go:104
↓ 2 callers
Method
DeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
api/v1/zz_generated.deepcopy.go:79
↓ 2 callers
Function
GenerateScheme
GenerateScheme creates a runtime.Scheme object with all the definition needed to support the sidecar. This allows the plugin to be used in every CNPG-
internal/cnpgi/common/scheme.go:40
↓ 2 callers
Method
GetReplicaSourceBarmanObjectKey
GetReplicaSourceBarmanObjectKey gets the namespaced name of the replica source barman object
internal/cnpgi/operator/config/config.go:98
↓ 2 callers
Function
GetRestoreCABundleEnv
GetRestoreCABundleEnv gets the enveronment variables to be used when custom Object Store CA is present
internal/cnpgi/common/common.go:59
↓ 2 callers
Function
IsReady
IsReady checks if the deployment is ready.
test/e2e/internal/deployment/deployment.go:34
↓ 2 callers
Function
MergeEnv
MergeEnv merges all the values inside incomingEnv into env.
internal/cnpgi/common/common.go:71
↓ 2 callers
Method
Name
Name gets the name of the segment.
internal/cnpgi/common/wal_import.go:153
↓ 2 callers
Method
Run
Run runs the E2E tests on a Kubernetes cluster. It returns the output of the tests. We expect a kubeconfig file that allows access to the cluster, and
dagger/e2e/main.go:34
↓ 2 callers
Function
SegmentFromName
SegmentFromName retrieves the timeline, log ID and segment ID from the name of a xlog segment, and can also handle a full path or a simple file name.
internal/cnpgi/common/wal_import.go:107
↓ 2 callers
Method
Start
Start starts the GRPC service
internal/cnpgi/restore/start.go:46
↓ 2 callers
Method
Status
Status implements the WALService interface
internal/cnpgi/common/wal.go:404
↓ 2 callers
Function
WaitForDeploymentReady
WaitForDeploymentReady waits for the deployment to be ready. ctx should have a timeout set.
test/e2e/internal/deployment/deployment.go:57
↓ 2 callers
Function
WalSegmentsPerFile
WalSegmentsPerFile is the number of WAL Segments in a WAL File.
internal/cnpgi/common/wal_import.go:158
↓ 2 callers
Method
collectAdditionalCertificates
( ctx context.Context, pluginConfiguration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle_certificates.go:38
↓ 2 callers
Method
collectAdditionalEnvs
( ctx context.Context, namespace string, pluginConfiguration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle_envs.go:32
↓ 2 callers
Function
containsSubject
containsSubject reports whether subjects contains an element that is semantically equal to subject.
internal/cnpgi/operator/rbac/ensure.go:330
↓ 2 callers
Function
isStreamingAvailable
isStreamingAvailable checks if this pod can replicate via streaming connection.
internal/cnpgi/common/wal.go:422
↓ 2 callers
Function
labelsNeedUpdate
labelsNeedUpdate returns true if a Patch is required to bring existing labels into the state mergeLabels would produce, i.e. any desired key is missin
internal/cnpgi/operator/rbac/ensure.go:319
↓ 2 callers
Function
mergeLabels
mergeLabels writes the desired labels onto existing per-key. Keys in desired overwrite the existing value; keys not in desired (any unrelated label a
internal/cnpgi/operator/rbac/ensure.go:303
↓ 2 callers
Function
patchRole
patchRole patches the Role's rules and optionally its labels to match the desired state. When desiredLabels is nil, labels are not modified. Uses retr
internal/cnpgi/operator/rbac/ensure.go:267
↓ 2 callers
Function
reconcilePodSpec
( cluster *cnpgv1.Cluster, spec *corev1.PodSpec, mainContainerName string, sidecarTemplate corev1.Containe
internal/cnpgi/operator/lifecycle.go:354
↓ 2 callers
Function
updateRecoveryWindow
updateRecoveryWindow updates the recovery window inside the object store status subresource
internal/cnpgi/instance/recovery_window.go:37
↓ 1 callers
Function
BuildRoleBinding
BuildRoleBinding builds the role binding object for this cluster
internal/cnpgi/operator/specs/role.go:126
↓ 1 callers
Method
Check
Check is the response handle for the healthcheck request
internal/cnpgi/common/health.go:40
↓ 1 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStoreList.
api/v1/zz_generated.deepcopy.go:101
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:32
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:87
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:119
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:136
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:158
↓ 1 callers
Method
GetCapabilities
GetCapabilities exposes the lifecycle capabilities nolint:goconst
internal/cnpgi/operator/lifecycle.go:56
next →
1–100 of 281, ranked by callers