Documentation ¶
Index ¶
Constants ¶
This section is empty.
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 *v1manifest.Manifest) error ReadManifest(filename string, role v1manifest.ValidManifest) (*v1manifest.Manifest, error) Stat(filename string) (os.FileInfo, error) // ResetManifest 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.