Documentation
¶
Overview ¶
Package fs provides file system operations for quadlet unit management
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentHash ¶
GetContentHash calculates a SHA1 hash for content storage and change tracking.
Types ¶
type Service ¶ added in v0.21.0
type Service struct {
// contains filtered or unexported fields
}
Service provides file system operations with configurable paths.
func NewService ¶ added in v0.21.0
NewService creates a new filesystem service with the given config provider.
func NewServiceWithLogger ¶ added in v0.21.0
NewServiceWithLogger creates a new filesystem service with explicit logger injection.
func (*Service) GetContentHash ¶ added in v0.21.0
GetContentHash calculates a SHA1 hash for content storage and change tracking.
func (*Service) GetUnitFilePath ¶ added in v0.21.0
GetUnitFilePath returns the full path for a quadlet unit file.
func (*Service) GetUnitFilesDirectory ¶ added in v0.21.0
GetUnitFilesDirectory returns the directory where quadlet unit files are stored.
func (*Service) HasUnitChanged ¶ added in v0.21.0
HasUnitChanged checks if the content of a unit file has changed.
func (*Service) WriteUnitFile ¶ added in v0.21.0
WriteUnitFile writes unit content to the specified file path.