Documentation
¶
Overview ¶
Package memory provides error constructors for memory bridge operations.
Index ¶
- func ArchivePrevious(cause error) error
- func CreateArchiveDir(cause error) error
- func CreateDir(cause error) error
- func DiffFailed(cause error) error
- func DiscoverFailed(cause error) error
- func DiscoverNoMemory(path string) error
- func DiscoverResolveHome(cause error) error
- func DiscoverResolveRoot(cause error) error
- func NotFound() error
- func PublishFailed(cause error) error
- func Read(cause error) error
- func ReadDiffSource(cause error) error
- func ReadMirror(cause error) error
- func ReadMirrorArchive(cause error) error
- func ReadSource(cause error) error
- func SelectContent(cause error) error
- func SelectContentFailed(cause error) error
- func Sync(cause error) error
- func Write(cause error) error
- func WriteArchive(cause error) error
- func WriteMemory(cause error) error
- func WriteMirror(cause error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchivePrevious ¶
ArchivePrevious wraps a failure to archive the previous mirror.
Parameters:
- cause: the underlying archive error
Returns:
- error: "archiving previous mirror: <cause>"
func CreateArchiveDir ¶
CreateArchiveDir wraps a failure to create the archive directory.
Parameters:
- cause: the underlying OS error
Returns:
- error: "creating archive directory: <cause>"
func CreateDir ¶
CreateDir wraps a failure to create the memory directory.
Parameters:
- cause: the underlying OS error
Returns:
- error: "creating memory directory: <cause>"
func DiffFailed ¶
DiffFailed wraps a memory diff computation failure.
Parameters:
- cause: the underlying diff error.
Returns:
- error: "computing diff: <cause>"
func DiscoverFailed ¶
DiscoverFailed wraps a MEMORY.md discovery failure.
Parameters:
- cause: the underlying discovery error.
Returns:
- error: "MEMORY.md not found: <cause>"
func DiscoverNoMemory ¶
DiscoverNoMemory returns an error when no auto memory file exists.
Parameters:
- path: the path that was checked
Returns:
- error: "no auto memory at <path>"
func DiscoverResolveHome ¶
DiscoverResolveHome wraps a home directory resolution failure.
Parameters:
- cause: the underlying resolution error
Returns:
- error: "resolving home directory: <cause>"
func DiscoverResolveRoot ¶
DiscoverResolveRoot wraps a project root resolution failure.
Parameters:
- cause: the underlying resolution error
Returns:
- error: "resolving project root: <cause>"
func NotFound ¶
func NotFound() error
NotFound returns an error indicating that MEMORY.md was not discovered. Used by all memory subcommands (sync, status, diff).
Returns:
- error: "MEMORY.md not found"
func PublishFailed ¶
PublishFailed wraps a publish operation failure.
Parameters:
- cause: the underlying publish error.
Returns:
- error: "publishing: <cause>"
func Read ¶
Read wraps a failure to read MEMORY.md.
Parameters:
- cause: the underlying read error.
Returns:
- error: "reading MEMORY.md: <cause>"
func ReadDiffSource ¶
ReadDiffSource wraps a failure to read the source for diff.
Parameters:
- cause: the underlying read error
Returns:
- error: "reading diff source: <cause>"
func ReadMirror ¶
ReadMirror wraps a failure to read the mirror file.
Parameters:
- cause: the underlying read error
Returns:
- error: "reading mirror: <cause>"
func ReadMirrorArchive ¶
ReadMirrorArchive wraps a failure to read the mirror for archiving.
Parameters:
- cause: the underlying read error
Returns:
- error: "reading mirror for archive: <cause>"
func ReadSource ¶
ReadSource wraps a source file read failure during sync.
Parameters:
- cause: the underlying read error
Returns:
- error: "reading source: <cause>"
func SelectContent ¶
SelectContent wraps a failure to select publish content.
Parameters:
- cause: the underlying selection error
Returns:
- error: "selecting content: <cause>"
func SelectContentFailed ¶
SelectContentFailed wraps a content selection failure.
Parameters:
- cause: the underlying selection error.
Returns:
- error: "selecting content: <cause>"
func Sync ¶
Sync wraps a sync operation failure.
Parameters:
- cause: the underlying error from the sync operation.
Returns:
- error: "sync failed: <cause>"
func Write ¶
Write wraps a failure to write MEMORY.md.
Parameters:
- cause: the underlying write error.
Returns:
- error: "writing MEMORY.md: <cause>"
func WriteArchive ¶
WriteArchive wraps a failure to write an archive file.
Parameters:
- cause: the underlying write error
Returns:
- error: "writing archive: <cause>"
func WriteMemory ¶
WriteMemory wraps a failure to write MEMORY.md.
Parameters:
- cause: the underlying write error
Returns:
- error: "writing MEMORY.md: <cause>"
func WriteMirror ¶
WriteMirror wraps a failure to write the mirror file.
Parameters:
- cause: the underlying write error
Returns:
- error: "writing mirror: <cause>"
Types ¶
This section is empty.