Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation[F comparable] interface { // Context returns a context, that when canceled represents a forced abort of the operation. Context() context.Context // FileKey returns the key of the file to which the operation applies. FileKey() F // WriteError sends an error to the operation. This is only used for IO errors. WriteError(error) // Exec is called by Persist to execute the operation. The provided file will have the key returned by FileKey. // The operation has a lock on the file during this time, and is free to make any modifications. Exec(f kfs.File[F]) }
Click to show internal directories.
Click to hide internal directories.