Documentation ¶
Index ¶
- func StatCTime(st *syscall.Stat_t) syscall.Timespec
- type Manager
- func (m *Manager) CTime(ctx context.Context, n *node.Node) (time.Time, error)
- func (m *Manager) DTime(ctx context.Context, n *node.Node) (tmTime time.Time, err error)
- func (m *Manager) MTime(ctx context.Context, n *node.Node) (time.Time, error)
- func (m *Manager) OverrideMtime(ctx context.Context, n *node.Node, _ *node.Attributes, mtime time.Time) error
- func (m *Manager) SetDTime(ctx context.Context, n *node.Node, t *time.Time) (err error)
- func (m *Manager) SetMTime(ctx context.Context, n *node.Node, mtime *time.Time) error
- func (m *Manager) SetTCTime(ctx context.Context, n *node.Node, tmtime *time.Time) error
- func (m *Manager) SetTMTime(ctx context.Context, n *node.Node, tmtime *time.Time) error
- func (m *Manager) TCTime(ctx context.Context, n *node.Node) (time.Time, error)
- func (m *Manager) TMTime(ctx context.Context, n *node.Node) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct { }
Manager is responsible for managing time-related operations on files and directories.
func (*Manager) OverrideMtime ¶
func (m *Manager) OverrideMtime(ctx context.Context, n *node.Node, _ *node.Attributes, mtime time.Time) error
OverrideMtime overrides the modification time (mtime) of a node with the specified time.
func (*Manager) SetDTime ¶
SetDTime sets the deletion time (dtime) of a node to the specified time. If t is nil, the dtime attribute is removed.
func (*Manager) SetMTime ¶
SetMTime sets the modification time (mtime) of a node to the specified time.
func (*Manager) SetTCTime ¶
SetTCTime sets the tree creation time (tctime) of a node to the specified time. Since decomposedfs does not differentiate between ctime and mtime, it falls back to SetTMTime.
func (*Manager) SetTMTime ¶
SetTMTime sets the tree modification time (tmtime) of a node to the specified time. If tmtime is nil, the tmtime attribute is removed.