{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package secrets\n\n## Functions\n\n```go\nfunc CopySecret(ctx context.Context, c client.Client, workspace *dw.DevWorkspace, sourceSecret *corev1.Secret, scheme *runtime.Scheme, log logr.Logger) (namespaceSecret *corev1.Secret, err error)\n```\nCopySecret copies the given secret from the operator namespace to the workspace namespace. It NEVER overwrites an existing secret: if a secret already exists in the workspace namespace, it returns the existing secret without modification.\n\n```go\nfunc HandleRegistryAuthSecret(\n\tctx context.Context,\n\tc client.Client,\n\tworkspace *dw.DevWorkspace,\n\tscheme *runtime.Scheme,\n\tlog logr.Logger,\n) (*corev1.Secret, error)\n```\nHandleRegistryAuthSecret returns the registry auth secret to use for workspace backup/restore. It first looks for the secret named DevWorkspaceBackupAuthSecretName in the workspace namespace. If not found and an AuthSecret is configured in the operator config, the configured secret is read from the operator namespace and copied into the workspace namespace (see CopySecret).\n\n","path":"github.com/devfile/devworkspace-operator/pkg/secrets","name":"secrets","synopsis":"","isRedistributable":true}
