closure

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortedPathsByPopularity

func SortedPathsByPopularity(storepaths []Storepath) ([]string, error)

SortedPathsByPopularity sorts storepaths by path popularity. It uses the algorithm described in https://grahamc.com/blog/nix-and-layered-docker-images

Types

type ScoredNode

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

func Score

func Score(g graph.Directed) ([]ScoredNode, error)

type Storepath

type Storepath struct {
	Path       string   `json:"path"`
	References []string `json:"references"`
}

func ReadClosureGraphFile

func ReadClosureGraphFile(filename string) (storepaths []Storepath, err error)

Jump to

Keyboard shortcuts

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