Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

694 B
Raw Blame
package storage_files

import "errors"

var (
	// Either a cascading removal reached the file before its write started, or a
	// second writer picked the same name, which per-attempt naming makes a defect.
	ErrFileNameAlreadyRegistered = errors.New("file name is already registered for cleanup")

	// The upload finished, but something claimed the file while it ran, so the
	// caller must not publish it.
	ErrFileTakenForDeletion = errors.New("file was taken for deletion during the write")

	ErrReceiptNoLongerValid = errors.New("write receipt no longer matches its pending deletion")

	ErrTransactionRequired = errors.New("publication and deletion requests need the caller's transaction")
)