sum

package
v0.0.0-...-c8dad37 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSpacer = "  "

Variables

This section is empty.

Functions

func DetermineVersion

func DetermineVersion(vstr string) (tarsum.Version, error)

DetermineVersion parses a human provided string (like a flag argument) and determines the tarsum.Version to return

func SumAllDockerSave

func SumAllDockerSave(saved io.Reader) (map[string]string, error)

for existing usage

func SumAllDockerSaveVersioned

func SumAllDockerSaveVersioned(saved io.Reader, v tarsum.Version) (map[string]string, error)

.. this is an all-in-one. I wish this could be an iterator.

func SumTarLayer

func SumTarLayer(tarReader io.Reader, json io.Reader, out io.Writer) (string, error)

for existing usage

func SumTarLayerVersioned

func SumTarLayerVersioned(tarReader io.Reader, json io.Reader, out io.Writer, v tarsum.Version) (string, error)

if out is not nil, then the tar input is written there instead

Types

type Check

type Check struct {
	Id      string
	Source  string
	Hash    string
	Seen    bool
	Version tarsum.Version
}

type Checks

type Checks []Check

func LoadCheckFile

func LoadCheckFile(path string) (Checks, error)

func LoadCheckFiles

func LoadCheckFiles(paths []string) (Checks, error)

func ReadChecks

func ReadChecks(input io.Reader) (Checks, error)

ReadChecks takes the input and loads the hash/id to be checked

func (Checks) Get

func (c Checks) Get(id string) *Check

func (Checks) Versions

func (c Checks) Versions() []tarsum.Version

Jump to

Keyboard shortcuts

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