package
0.0.0-20250226171102-4db14ec44d68
Repository: https://github.com/cozy/cozy-stack.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ApplySteps takes a note and some steps, and tries to apply them.
CopyFile is an overloaded version of Fs.CopyFile that take care of also copying the images in the note.
CopyImageToAnotherNote makes a copy of an image from one note to be used in another note.
Create the file in the VFS for this note.
DefaultSchemaSpecs returns the prosemirror schema used when importing files.
FlushPendings is used to persist all the notes before an export.
GetFile takes a file from the VFS as a note and returns its last version.
GetImages returns the images for the given note.
GetSteps returns the steps for the given note, starting from the version.
No description provided by the author
No description provided by the author
No description provided by the author
List returns a list of notes sorted by descending updated_at.
NewImageUpload can be used to manage uploading a new image for a note.
PublishThumbnail sends information about a resized image.
PutTelepointer sends the position of a pointer in the realtime hub.
No description provided by the author
Update is used to persist changes on a note to its file in the VFS.
UpdateMetadataFromCache update the metadata for a file/note with the information in cache.
UpdateSchema updates the schema of a note, and invalidates the previous steps.
UpdateTitle changes the title of a note and renames the associated file.
# Constants
MaxImageWeight is the maximal weight (in bytes) for an image.
MaxMarkdownSize is the maximal size of a markdown that can be parsed.
MaxWidth is the maximal width of an image for a note.
# Variables
ErrCannotApply is used when trying to apply some steps, but it fails because of a conflict.
ErrInvalidFile is used when a file doesn't have the metadata to be used as a note.
ErrInvalidSchema is used when the schema cannot be read by prosemirror.
ErrInvalidSteps is used when prosemirror can't instantiate the steps.
ErrMissingSessionID is used when a telepointer has no identifier.
ErrNoSteps is used when steps are expected, but there are none.
ErrTooOld is used when the steps just after the given revision are no longer available.
# Structs
DebounceMessage is used by the trigger for saving the note to the VFS with a debounce.
Document is the note document in memory.
Image is a file that will be persisted inside the note archive.
ImageUpload is used while an image is uploaded to the stack.