{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package storage\n\n## Functions\n\n```go\nfunc GetWorkspacePVCInfo(\n\tctx context.Context,\n\tworkspace *dw.DevWorkspace,\n\tconfig *controllerv1alpha1.OperatorConfiguration,\n\tk8sClient client.Client,\n\tlog logr.Logger,\n) (pvcName string, workspacePath string, err error)\n```\nGetWorkspacePVCInfo determines the PVC name and workspace path based on the storage provisioner used. This function can be used by both backup and restore operations to ensure consistent PVC resolution logic.\n\nReturns:\n\n  - pvcName: The name of the PVC that stores workspace data\n  - workspacePath: The path within the PVC where workspace data is stored\n  - error: Any error that occurred during PVC resolution\n\n","path":"github.com/devfile/devworkspace-operator/pkg/library/storage","name":"storage","synopsis":"","isRedistributable":true}
