Documentation
¶
Index ¶
- Variables
- func FilePathWithSharding(fn string) string
- func MustRandString(n int, r io.Reader) string
- func NarFilePath(hash, compression string) string
- func NarInfoFilePath(hash string) string
- func NarInfoURLPath(hash string) string
- func ParseSize(str string) (uint64, error)
- func RandString(n int, r io.Reader) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSizeSuffix = errors.New("invalid size suffix")
ErrInvalidSizeSuffix is returned if the suffix is not valid.
Functions ¶
func FilePathWithSharding ¶
FilePathWithSharding returns the path to a file with sharding.
func MustRandString ¶
MustRandString returns the string returned by RandString. If RandString returns an error, it will panic.
func NarFilePath ¶
NarFilePath returns the path of the nar file given a hash and an optional compression.
func NarInfoFilePath ¶
NarInfoFilePath returns the path of the narinfo file given a hash.
func NarInfoURLPath ¶
NarInfoURLPath returns the path of the narinfo file given a hash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.