vaultbucket

package
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package vaultbucket resolves the storage.BinaryStore backing a vault's non-markdown content — shared by the MCP vault-tool executor and the notes service's folder export/import/delete methods so the S3-vs-CouchDB-adapter decision lives in one place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(
	ctx context.Context,
	vault domain.Vault,
	client *couchdb.LiveSyncClient,
	s3Instances repository.S3Instances,
) (storage.BinaryStore, error)

Resolve returns nil (not an error) when the vault has neither CouchDB-for-binaries nor a linked S3 bucket — callers must treat a nil bucket as "no binary storage available".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL