files

package
v3.0.0-...-a518a6c Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package files implements utility routines for gathering information about files and their contents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateConfigVersion

func GenerateConfigVersion(fileSlice []*v1.File) string

GenerateConfigVersion returns a unique config version for a set of files. The config version is calculated by joining the file hashes together and generating a unique ID.

func GenerateFileHash

func GenerateFileHash(filePath string) (string, error)

GenerateFileHash returns the hash value of a file's contents.

func GetPermissions

func GetPermissions(fileMode os.FileMode) string

GetPermissions returns a file's permissions as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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