slug

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FileName = "Slugfile"
	SumsName = "Slugsums"
)

Functions

func BuildFileMap

func BuildFileMap() (fileMap map[string]string, err error)

func FinalizeSlugfile

func FinalizeSlugfile(force bool) (slugsums string, removed []string, err error)

func ReadSlugfile

func ReadSlugfile() (paths []string, err error)

func SlugfilePresent

func SlugfilePresent() (ok bool)

func SlugsumsPresent

func SlugsumsPresent() (ok bool)

func ValidateSlugsums

func ValidateSlugsums() (imposters, extraneous, validated []string, err error)

func WriteSlugfile

func WriteSlugfile(argv ...string) (slugfile string, err error)

Types

type ShaMap

type ShaMap map[string]string

func BuildSlugMap

func BuildSlugMap() (slugMap ShaMap, err error)

func BuildSlugMapIgnoring

func BuildSlugMapIgnoring(files ...string) (slugMap ShaMap, err error)

func ReadSlugsums

func ReadSlugsums() (slugMap ShaMap, err error)

func ValidateSlugsumsComplete

func ValidateSlugsumsComplete() (slugMap, fileMap ShaMap, imposters, extraneous, validated []string, err error)

func (ShaMap) CheckSlugIntegrity

func (m ShaMap) CheckSlugIntegrity() (err error)

func (ShaMap) CheckSumsIntegrity

func (m ShaMap) CheckSumsIntegrity() (err error)

func (ShaMap) Keys

func (m ShaMap) Keys() (keys []string)

func (ShaMap) SlugIntegrity

func (m ShaMap) SlugIntegrity() (shasum string, err error)

func (ShaMap) SumsIntegrity

func (m ShaMap) SumsIntegrity() (shasum string, err error)

Jump to

Keyboard shortcuts

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