nixcacheinfo

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSplitOnceFoundMultipleSeparators is returned if splitOnce encountered multiple separators in the string.
	ErrSplitOnceFoundMultipleSeparators = errors.New("found multiple separators in the string")

	// ErrSplitOnceFoundNoSeparators is returned if splitOnce encountered multiple separators in the string.
	ErrSplitOnceFoundNoSeparators = errors.New("found no separators in the string")
)
View Source
var ErrUnknownKey = errors.New("error the key is not known")

ErrUnknownKey is returned if the nix-cache-info contains a key that is not known.

Functions

This section is empty.

Types

type NixCacheInfo

type NixCacheInfo struct {
	StoreDir      string
	WantMassQuery uint64
	Priority      uint64
}

NixCacheInfo represents the nix cache info parsed.

func Parse

func Parse(r io.Reader) (NixCacheInfo, error)

Parse parses the NixCacheInfo from an io.Reader.

func ParseString

func ParseString(nci string) (NixCacheInfo, error)

ParseString parser the NixCacheInfo from a string.

Jump to

Keyboard shortcuts

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