ls

package
v0.0.0-...-93cb24a Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

It is provided on cache.nixos.org, and more generally, written when write-nar-listing=1 is passed while copying build results into a binary cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Type       nar.NodeType     `json:"type"`
	Entries    map[string]*Node `json:"entries"`
	Size       int64            `json:"size"`
	LinkTarget string           `json:"target"`
	Executable bool             `json:"executable"`
	NAROffset  int64            `json:"narOffset"`
}

Node represents one of the entries in a .ls file.

type Root

type Root struct {
	Version int `json:"version"`
	Root    Node
}

Root represents the .ls file root entry.

func ParseLS

func ParseLS(r io.Reader) (*Root, error)

ParseLS parses the NAR .ls file format. It returns a tree-like structure for all the entries.

Jump to

Keyboard shortcuts

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