Affected by GO-2026-4858
and 1 other vulnerabilities
GO-2026-4858: BuildKit's Malicious frontend can cause file escape outside of storage root in github.com/moby/buildkit
GO-2026-4859: BuildKit Git URL subdir component can cause access to restricted files in github.com/moby/buildkit
command
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Jul 31, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package main provides simple consistenthash commandline utility.
Demo:
$ seq -f node-%.f 1 100 > /tmp/nodes
$ consistenthash < /tmp/nodes apple
node-42
$ consistenthash < /tmp/nodes banana
node-48
$ consistenthash < /tmp/nodes chocolate
node-2
Modify /tmp/nodes and confirm that the result rarely changes.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.