fs

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: May 29, 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 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