Documentation
¶
Overview ¶
Package vaultsync mirrors Markdown vaults to WebDAV and S3 remotes using timestamp + size rules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SyncMarkdownVault ¶
func SyncMarkdownVault(ctx context.Context, localRoot string, cfg WebDAVConfig) error
SyncMarkdownVault performs a bidirectional sync of all .md files under localRoot. When local and remote both differ in modification time and size, the local file is copied to stem.conflict.ext and the remote content replaces the local file.
Types ¶
type S3Config ¶ added in v1.3.2
type S3Config struct {
Region string
Bucket string
Prefix string
AccessKey string
SecretKey string
// Endpoint is optional (e.g. https://play.min.io for MinIO); empty uses AWS default for the region.
Endpoint string
}
S3Config targets a bucket prefix for bidirectional Markdown sync (compatible with AWS S3 and MinIO-style endpoints).
Click to show internal directories.
Click to hide internal directories.