Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudnative-pg/plugin-barman-cloud
/ functions
Functions
281 in github.com/cloudnative-pg/plugin-barman-cloud
⨍
Functions
281
◇
Types & classes
60
↓ 1 callers
Function
InjectPluginVolumePodSpec
TODO: move to machinery once the logic is finalized InjectPluginVolumePodSpec injects the plugin volume into a CNPG Pod spec.
internal/cnpgi/operator/lifecycle.go:484
↓ 1 callers
Function
Install
Install installs cert-manager using kubectl.
test/e2e/internal/certmanager/certmanager.go:64
↓ 1 callers
Function
Install
Install installs CloudNativePG using kubectl.
test/e2e/internal/cloudnativepg/cloudnativepg.go:93
↓ 1 callers
Function
IsWALFile
IsWALFile check if the passed file name is a regular WAL file. It supports either a full file path or a simple file name.
internal/cnpgi/common/wal_import.go:99
↓ 1 callers
Method
LifecycleHook
LifecycleHook is called when creating Kubernetes services
internal/cnpgi/operator/lifecycle.go:88
↓ 1 callers
Function
NewCmd
NewCmd creates the "restore" subcommand
internal/cmd/restore/main.go:33
↓ 1 callers
Function
NewCmd
NewCmd returns the healthcheck command
internal/cmd/healthcheck/main.go:37
↓ 1 callers
Function
NewCmd
NewCmd creates a new operator command
internal/cmd/operator/main.go:33
↓ 1 callers
Function
NewCmd
NewCmd creates a new instance command
internal/cmd/instance/main.go:33
↓ 1 callers
Function
NewConfigurationError
NewConfigurationError creates a new empty configuration error
internal/cnpgi/operator/config/config.go:44
↓ 1 callers
Function
NewExtendedClient
NewExtendedClient returns an extended client capable of caching secrets on the 'Get' operation
internal/cnpgi/instance/internal/client/client.go:57
↓ 1 callers
Function
NewPlugin
NewPlugin creates a new Plugin instance for the given cluster and plugin name.
internal/cnpgi/operator/config/config.go:282
↓ 1 callers
Method
NextSegments
NextSegments generate the list of all possible segment names starting from `segment`, until the specified size is reached. This function will not ever
internal/cnpgi/common/wal_import.go:170
↓ 1 callers
Method
Post
Post implements the reconciler interface
internal/cnpgi/operator/reconciler.go:129
↓ 1 callers
Method
Restore
Restore restores the cluster from a backup
internal/cnpgi/restore/restore.go:89
↓ 1 callers
Function
Setup
Setup sets up the test environment for the e2e tests, starting kind and installing the necessary components. nolint:ireturn
test/e2e/internal/e2etestenv/main.go:109
↓ 1 callers
Method
SetupWithManager
SetupWithManager sets up the controller with the Manager.
internal/controller/objectstore_controller.go:136
↓ 1 callers
Function
Start
Start starts the sidecar informers and CNPG-i server
internal/cnpgi/restore/manager.go:36
↓ 1 callers
Function
Start
Start starts the manager
internal/cnpgi/operator/manager.go:55
↓ 1 callers
Function
Start
Start starts the sidecar informers and CNPG-i server
internal/cnpgi/instance/manager.go:40
↓ 1 callers
Method
Start
Start starts the GRPC server of the operator plugin
internal/cnpgi/operator/start.go:44
↓ 1 callers
Method
Start
Start starts the GRPC service
internal/cnpgi/instance/start.go:47
↓ 1 callers
Method
Validate
Validate checks if the barmanObjectName is set
internal/cnpgi/operator/config/config.go:263
↓ 1 callers
Function
WithIgnoreExistingResources
WithIgnoreExistingResources sets whether to ignore existing resources.
test/e2e/internal/certmanager/certmanager.go:52
↓ 1 callers
Function
WithIgnoreExistingResources
WithIgnoreExistingResources sets whether to ignore existing resources.
test/e2e/internal/cloudnativepg/cloudnativepg.go:86
↓ 1 callers
Function
WithImageName
WithImageName sets the name for the CloudNativePG image.
test/e2e/internal/cloudnativepg/cloudnativepg.go:51
↓ 1 callers
Function
WithImageTag
WithImageTag sets the tag for the CloudNativePG image.
test/e2e/internal/cloudnativepg/cloudnativepg.go:58
↓ 1 callers
Function
WithKustomizationRef
WithKustomizationRef sets the ref for the CloudNativePG kustomization.
test/e2e/internal/cloudnativepg/cloudnativepg.go:72
↓ 1 callers
Function
WithKustomizationResourceURL
WithKustomizationResourceURL sets the URL for the CloudNativePG kustomization.
test/e2e/internal/cloudnativepg/cloudnativepg.go:65
↓ 1 callers
Function
WithKustomizationTimeout
WithKustomizationTimeout sets the timeout for the kustomization resources.
test/e2e/internal/cloudnativepg/cloudnativepg.go:79
↓ 1 callers
Method
WithMessage
WithMessage adds a new error message to a potentially empty ConfigurationError
internal/cnpgi/operator/config/config.go:50
↓ 1 callers
Function
WithVersion
WithVersion sets the version of cert-manager to install.
test/e2e/internal/certmanager/certmanager.go:45
↓ 1 callers
Function
addScheme
(cl client.Client)
test/e2e/internal/client/client.go:74
↓ 1 callers
Function
applyResource
(ctx context.Context, cl client.Client, obj *unstructured.Unstructured)
test/e2e/internal/kustomize/kustomize.go:116
↓ 1 callers
Function
applyResourceMap
(ctx context.Context, cl client.Client, resourceMap resmap.ResMap)
test/e2e/internal/kustomize/kustomize.go:88
↓ 1 callers
Function
buildScheme
()
internal/cnpgi/instance/internal/client/client_test.go:39
↓ 1 callers
Method
checkBackupDestination
( ctx context.Context, cluster *cnpgv1.Cluster, barmanConfiguration *cnpgv1.BarmanObjectStoreConfiguration,
internal/cnpgi/restore/restore.go:248
↓ 1 callers
Function
checkEndOfWALStreamFlag
checkEndOfWALStreamFlag returns ErrEndOfWALStreamReached if the flag is set in the restorer.
internal/cnpgi/common/wal.go:480
↓ 1 callers
Method
collectObjectStoreCertificates
( ctx context.Context, barmanObjectKey types.NamespacedName, )
internal/cnpgi/operator/lifecycle_certificates.go:55
↓ 1 callers
Method
collectSidecarResourcesForPod
( ctx context.Context, configuration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle_resources.go:47
↓ 1 callers
Method
collectSidecarResourcesForRecoveryJob
( ctx context.Context, configuration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle_resources.go:31
↓ 1 callers
Method
createBackupRestoreTestResources
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:51
↓ 1 callers
Method
createReplicaClusterTestResources
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:33
↓ 1 callers
Method
cycle
cycle enforces the retention policies. On success, it returns the amount of time to wait to the next check.
internal/cnpgi/instance/retention.go:83
↓ 1 callers
Function
defaultSetupOptions
()
test/e2e/internal/e2etestenv/main.go:99
↓ 1 callers
Function
deleteBackupsNotInCatalog
deleteBackupsNotInCatalog deletes all Backup objects pointing to the given cluster that are not present in the backup anymore
internal/cnpgi/instance/retention.go:193
↓ 1 callers
Method
ensureArchiveContainsLastCheckpointRedoWAL
( ctx context.Context, env []string, backup *cnpgv1.Backup, barmanConfiguration *cnpgv1.BarmanObjectStoreC
internal/cnpgi/restore/restore.go:211
↓ 1 callers
Function
ensureRoleExists
ensureRoleExists creates the Role if it does not exist. Returns nil on success and nil on AlreadyExists (another writer created it concurrently). The
internal/cnpgi/operator/rbac/ensure.go:231
↓ 1 callers
Function
gatherWALFilesToRestore
gatherWALFilesToRestore files a list of possible WAL files to restore, always including as the first one the requested WAL file.
internal/cnpgi/common/wal.go:457
↓ 1 callers
Function
getCNPGJobRole
getCNPGJobRole gets the role associated to a CNPG job
internal/cnpgi/operator/lifecycle.go:618
↓ 1 callers
Method
getCachedObject
( ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption, )
internal/cnpgi/instance/internal/client/client.go:92
↓ 1 callers
Function
getOrCreateRoleBinding
getOrCreateRoleBinding returns the existing RoleBinding when it is already present on the API server, or nil after a successful Create when the just-c
internal/cnpgi/operator/rbac/ensure.go:133
↓ 1 callers
Function
getRecoveryParameters
(cluster *cnpgv1.Cluster)
internal/cnpgi/operator/config/config.go:193
↓ 1 callers
Function
getRecoverySourcePlugin
getRecoverySourcePlugin returns the configuration of the plugin being the recovery source of the cluster. If no such plugin have been configured, nil
internal/cnpgi/operator/config/config.go:222
↓ 1 callers
Function
getReplicaSourceParameters
(cluster *cnpgv1.Cluster)
internal/cnpgi/operator/config/config.go:206
↓ 1 callers
Function
getReplicaSourcePlugin
getRecoverySourcePlugin returns the configuration of the plugin being the recovery source of the cluster. If no such plugin have been configured, nil
internal/cnpgi/operator/config/config.go:247
↓ 1 callers
Function
getRestoreWalConfig
getRestoreWalConfig obtains the content to append to `custom.conf` allowing PostgreSQL to complete the WAL recovery from the object storage and then s
internal/cnpgi/restore/restore.go:336
↓ 1 callers
Method
handleBackupError
(ctx context.Context, cfg *config.PluginConfiguration)
internal/cnpgi/instance/backup.go:197
↓ 1 callers
Function
injectPluginSidecarPodSpec
injectPluginSidecarPodSpec injects a plugin sidecar into a CNPG Pod spec.
internal/cnpgi/operator/lifecycle.go:522
↓ 1 callers
Function
installCNPG
(ctx context.Context, cl client.Client, options SetupOptions)
test/e2e/internal/e2etestenv/main.go:126
↓ 1 callers
Function
installCertManager
(ctx context.Context, cl client.Client, options SetupOptions)
test/e2e/internal/e2etestenv/main.go:157
↓ 1 callers
Function
isEndOfWALStream
isEndOfWALStream returns true if one of the downloads has returned a file-not-found error.
internal/cnpgi/common/wal.go:499
↓ 1 callers
Method
isExpired
()
internal/cnpgi/instance/internal/client/client.go:45
↓ 1 callers
Function
loadBackupObjectFromExternalCluster
loadBackupObjectFromExternalCluster generates an in-memory Backup structure given a reference to an external cluster, loading the required information
internal/cnpgi/restore/restore.go:351
↓ 1 callers
Method
maintenance
maintenance executes a collection of operations: - applies the retention policy to the object. - store and deletes the stale Kubernetes backup objec
internal/cnpgi/instance/retention.go:124
↓ 1 callers
Function
mergeSubjects
mergeSubjects appends desired Subjects that are not already present in existing. This is intentionally asymmetric to mergeLabels: labels are metadata
internal/cnpgi/operator/rbac/ensure.go:348
↓ 1 callers
Function
newAzuriteDeployment
(namespace, name string)
test/e2e/internal/objectstore/azurite.go:47
↓ 1 callers
Function
newAzuritePVC
(namespace, name string)
test/e2e/internal/objectstore/azurite.go:165
↓ 1 callers
Function
newAzuriteSecret
(namespace, name string)
test/e2e/internal/objectstore/azurite.go:150
↓ 1 callers
Function
newAzuriteService
(namespace, name string)
test/e2e/internal/objectstore/azurite.go:125
↓ 1 callers
Function
newBackupResultMetadata
(clusterUID types.UID, timeline int)
internal/cnpgi/instance/types.go:50
↓ 1 callers
Function
newBackupResultMetadataFromMap
(m map[string]string)
internal/cnpgi/instance/types.go:62
↓ 1 callers
Function
newCluster
(namespace string)
test/e2e/internal/tests/credentialrotation/credential_rotation.go:131
↓ 1 callers
Function
newDstClusterInTreeAzure
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:520
↓ 1 callers
Function
newDstClusterInTreeGCS
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:617
↓ 1 callers
Function
newDstClusterInTreeS3
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:417
↓ 1 callers
Function
newFakeScheme
()
internal/controller/objectstore_controller_test.go:46
↓ 1 callers
Function
newGCSDeployment
(namespace, name string)
test/e2e/internal/objectstore/fakegcsserver.go:47
↓ 1 callers
Function
newGCSPVC
(namespace, name string)
test/e2e/internal/objectstore/fakegcsserver.go:152
↓ 1 callers
Function
newGCSSecret
(namespace, name string)
test/e2e/internal/objectstore/fakegcsserver.go:140
↓ 1 callers
Function
newGCSService
(namespace, name string)
test/e2e/internal/objectstore/fakegcsserver.go:115
↓ 1 callers
Function
newInternalWALRestoreError
newInternalWALRestoreError reports that downloading the WAL file failed for an unclassified reason. Emits codes.Internal: we have no positive signal t
internal/cnpgi/common/errors.go:103
↓ 1 callers
Function
newInvalidWALNameError
newInvalidWALNameError reports that the requested WAL name is not a valid name. Emits codes.InvalidArgument: this is a terminal condition (the same na
internal/cnpgi/common/errors.go:90
↓ 1 callers
Function
newMinioDeployment
(namespace, name string)
test/e2e/internal/objectstore/minio.go:47
↓ 1 callers
Function
newMinioPVC
(namespace, name string)
test/e2e/internal/objectstore/minio.go:174
↓ 1 callers
Function
newMinioSecret
(namespace, name string)
test/e2e/internal/objectstore/minio.go:157
↓ 1 callers
Function
newMinioService
(namespace, name string)
test/e2e/internal/objectstore/minio.go:132
↓ 1 callers
Function
newSrcClusterInTreeAzure
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:483
↓ 1 callers
Function
newSrcClusterInTreeGCS
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:574
↓ 1 callers
Function
newSrcClusterInTreeS3
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:368
↓ 1 callers
Function
newUnavailableError
newUnavailableError reports that downloading the WAL file failed for a reason expected to be transient (a barman-cloud connectivity blip, or a generic
internal/cnpgi/common/errors.go:78
↓ 1 callers
Function
newWALNotFoundError
newWALNotFoundError reports that the requested WAL file is not present in the object store. Emits codes.NotFound: this is a terminal condition (the fi
internal/cnpgi/common/errors.go:69
↓ 1 callers
Method
reconcileJob
( ctx context.Context, cluster *cnpgv1.Cluster, request *lifecycle.OperatorLifecycleRequest, pluginConfigu
internal/cnpgi/operator/lifecycle.go:132
↓ 1 callers
Method
reconcilePod
( ctx context.Context, cluster *cnpgv1.Cluster, request *lifecycle.OperatorLifecycleRequest, pluginConfigu
internal/cnpgi/operator/lifecycle.go:225
↓ 1 callers
Function
reconcileRoleBinding
reconcileRoleBinding brings an existing RoleBinding's labels and Subjects into alignment with desired. It re-Gets the object on conflict-retry so each
internal/cnpgi/operator/rbac/ensure.go:180
↓ 1 callers
Method
reconcileRoleRules
reconcileRoleRules fetches the ObjectStores referenced by the Role and patches its rules to match the current specs.
internal/controller/objectstore_controller.go:108
↓ 1 callers
Method
restoreCustomWalDir
restoreCustomWalDir moves the current pg_wal data to the specified custom wal dir and applies the symlink returns indicating if any changes were made
internal/cnpgi/restore/restore.go:301
↓ 1 callers
Method
restoreDataDir
restoreDataDir restores PGDATA from an existing backup
internal/cnpgi/restore/restore.go:168
↓ 1 callers
Method
restoreFromBarmanObjectStore
( ctx context.Context, cluster *cnpgv1.Cluster, objectStore *barmancloudv1.ObjectStore, serverName string,
internal/cnpgi/common/wal.go:287
↓ 1 callers
Function
roleBindingNeedsUpdate
roleBindingNeedsUpdate returns true if a Patch is required to bring existing into alignment with desired — any desired Subject missing (see mergeSubje
internal/cnpgi/operator/rbac/ensure.go:361
← previous
next →
101–200 of 281, ranked by callers