util

package
v0.0.0-...-6aa8790 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(path string, args []string) error

func ExpandPath

func ExpandPath(path string) (string, error)

func IsDirExist

func IsDirExist(path string) (bool, error)

func IsNotDirectoryErr

func IsNotDirectoryErr(err error) bool

func IsRegularFileExist

func IsRegularFileExist(path string) (bool, error)

func MurmurHash

func MurmurHash(args ...string) string

func Sha512Checksum

func Sha512Checksum(data []byte) string

Types

type Metafile

type Metafile struct {
	// contains filtered or unexported fields
}

func NewMetafile

func NewMetafile(filePath string) Metafile

func (Metafile) Delete

func (f Metafile) Delete(locker lockgate.Locker) error

func (Metafile) HasBeenModifiedWithinPeriod

func (f Metafile) HasBeenModifiedWithinPeriod(locker lockgate.Locker, period time.Duration) (s bool, err error)

func (Metafile) Reset

func (f Metafile) Reset(locker lockgate.Locker) error

Jump to

Keyboard shortcuts

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