Documentation
¶
Overview ¶
Package capacitygate provides preflight free-space checks for operations that materialize save point payloads before mutating public state.
Index ¶
Constants ¶
View Source
const ( ErrCode = "E_NOT_ENOUGH_SPACE" DefaultSafetyMarginBytes = 16 << 20 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InsufficientError ¶
func (*InsufficientError) As ¶
func (e *InsufficientError) As(target any) bool
func (*InsufficientError) Error ¶
func (e *InsufficientError) Error() string
type StatfsMeter ¶
type StatfsMeter struct{}
func (StatfsMeter) AvailableBytes ¶
func (StatfsMeter) AvailableBytes(path string) (int64, error)
Click to show internal directories.
Click to hide internal directories.