memory

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package memory provides error constructors for memory bridge operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchivePrevious

func ArchivePrevious(cause error) error

ArchivePrevious wraps a failure to archive the previous mirror.

Parameters:

  • cause: the underlying archive error

Returns:

  • error: "archiving previous mirror: <cause>"

func CreateArchiveDir

func CreateArchiveDir(cause error) error

CreateArchiveDir wraps a failure to create the archive directory.

Parameters:

  • cause: the underlying OS error

Returns:

  • error: "creating archive directory: <cause>"

func CreateDir

func CreateDir(cause error) error

CreateDir wraps a failure to create the memory directory.

Parameters:

  • cause: the underlying OS error

Returns:

  • error: "creating memory directory: <cause>"

func DiffFailed

func DiffFailed(cause error) error

DiffFailed wraps a memory diff computation failure.

Parameters:

  • cause: the underlying diff error.

Returns:

  • error: "computing diff: <cause>"

func DiscoverFailed

func DiscoverFailed(cause error) error

DiscoverFailed wraps a MEMORY.md discovery failure.

Parameters:

  • cause: the underlying discovery error.

Returns:

  • error: "MEMORY.md not found: <cause>"

func DiscoverNoMemory

func DiscoverNoMemory(path string) error

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

func DiscoverResolveHome(cause error) error

DiscoverResolveHome wraps a home directory resolution failure.

Parameters:

  • cause: the underlying resolution error

Returns:

  • error: "resolving home directory: <cause>"

func DiscoverResolveRoot

func DiscoverResolveRoot(cause error) error

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

func PublishFailed(cause error) error

PublishFailed wraps a publish operation failure.

Parameters:

  • cause: the underlying publish error.

Returns:

  • error: "publishing: <cause>"

func Read

func Read(cause error) error

Read wraps a failure to read MEMORY.md.

Parameters:

  • cause: the underlying read error.

Returns:

  • error: "reading MEMORY.md: <cause>"

func ReadDiffSource

func ReadDiffSource(cause error) error

ReadDiffSource wraps a failure to read the source for diff.

Parameters:

  • cause: the underlying read error

Returns:

  • error: "reading diff source: <cause>"

func ReadMirror

func ReadMirror(cause error) error

ReadMirror wraps a failure to read the mirror file.

Parameters:

  • cause: the underlying read error

Returns:

  • error: "reading mirror: <cause>"

func ReadMirrorArchive

func ReadMirrorArchive(cause error) error

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

func ReadSource(cause error) error

ReadSource wraps a source file read failure during sync.

Parameters:

  • cause: the underlying read error

Returns:

  • error: "reading source: <cause>"

func SelectContent

func SelectContent(cause error) error

SelectContent wraps a failure to select publish content.

Parameters:

  • cause: the underlying selection error

Returns:

  • error: "selecting content: <cause>"

func SelectContentFailed

func SelectContentFailed(cause error) error

SelectContentFailed wraps a content selection failure.

Parameters:

  • cause: the underlying selection error.

Returns:

  • error: "selecting content: <cause>"

func Sync

func Sync(cause error) error

Sync wraps a sync operation failure.

Parameters:

  • cause: the underlying error from the sync operation.

Returns:

  • error: "sync failed: <cause>"

func Write

func Write(cause error) error

Write wraps a failure to write MEMORY.md.

Parameters:

  • cause: the underlying write error.

Returns:

  • error: "writing MEMORY.md: <cause>"

func WriteArchive

func WriteArchive(cause error) error

WriteArchive wraps a failure to write an archive file.

Parameters:

  • cause: the underlying write error

Returns:

  • error: "writing archive: <cause>"

func WriteMemory

func WriteMemory(cause error) error

WriteMemory wraps a failure to write MEMORY.md.

Parameters:

  • cause: the underlying write error

Returns:

  • error: "writing MEMORY.md: <cause>"

func WriteMirror

func WriteMirror(cause error) error

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.

Jump to

Keyboard shortcuts

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