Documentation
¶
Overview ¶
Package bundle builds a sanitized .zip of a local bitwave workspace for sharing. It is fail-closed: any file matching a sensitive-name pattern, or any unknown binary file, aborts the bundle. Operators must remove or rename the file before retrying. Silently dropping such files would risk leaking a misnamed secret into a recipient's inbox.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrJournalNotFound = errors.New("target journal file not found in workspace") ErrUnknownBinaryFile = errors.New("unknown binary file in workspace (remove or rename)") ErrFileTooLarge = errors.New("file exceeds bundle size cap") ErrBundleTooLarge = errors.New("bundle would exceed total size cap") )
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result reports what was included or skipped. ExcludedFiles is empty when Build succeeds — Build refuses to ship if any file would have been excluded for sensitivity. SkippedDirs lists dot-directories that were never walked.
type SensitiveFileError ¶
SensitiveFileError wraps a denylist hit with the offending path.
func (*SensitiveFileError) Error ¶
func (e *SensitiveFileError) Error() string
Click to show internal directories.
Click to hide internal directories.