fs

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 6 Imported by: 0

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

func GetContentHash(content string) []byte

GetContentHash calculates a SHA1 hash for content storage and change tracking.

func GetUnitFilePath

func GetUnitFilePath(name, unitType string) string

GetUnitFilePath returns the full path for a quadlet unit file.

func GetUnitFilesDirectory added in v0.19.0

func GetUnitFilesDirectory() string

GetUnitFilesDirectory returns the directory where quadlet unit files are stored.

func HasUnitChanged

func HasUnitChanged(unitPath, content string) bool

HasUnitChanged checks if the content of a unit file has changed.

func WriteUnitFile

func WriteUnitFile(unitPath, content string) error

WriteUnitFile writes unit content to the specified file path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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