Documentation
¶
Overview ¶
Package files holds file mutations shared by the SSH and HTTP frontends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateContent ¶
func UpdateContent(ctx context.Context, database *db.DB, cfg *config.Config, file *snips.File, content []byte, extension string) error
UpdateContent replaces a file's content and persists it, re-detecting the file type (optionally hinted by extension) and recording a revision diff for non-binary files. Revision bookkeeping failures are logged, not fatal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.