Documentation ¶
Index ¶
Constants ¶
View Source
const (
// EnvQCloudScriptPath enable the qcloud uplaod (will update CDN if specified)
EnvQCloudScriptPath = "QCLOUD_UPLOAD_SCRIPT"
)
Variables ¶
View Source
var ( // ErrorFsCommitConflict indicates concurrent writing file ErrorFsCommitConflict = errors.New("conflict on fs commit") )
Functions ¶
This section is empty.
Types ¶
type FsTxn ¶
type FsTxn interface { Write(filename string, reader io.Reader) error Read(filename string) (io.ReadCloser, error) WriteManifest(filename string, manifest interface{}) error ReadManifest(filename string, manifest interface{}) error Stat(filename string) (os.FileInfo, error) // Restart should reset the manifest state ResetManifest() error Commit() error Rollback() error }
FsTxn represent the transaction session of file operations
Click to show internal directories.
Click to hide internal directories.