manifest

package
v0.0.0-...-631f8aa Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package manifest contains the type and methods used for synthesizing and manipulating manifest files outlining the contents of a particular directory when it is joined together by an overlayfs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Value

func Value(path string, st os.FileInfo) (string, error)

TODO(#11): Can't have Fixed with a TODO of the same issue remaining.

Types

type Manifest

type Manifest struct {
	// relative path -> SHA256 (or empty if a directory)
	Files map[string]string `json:"files,omitempty"`
}

Manifest is used to {en,de}code a bill of materials of sorts that outlines the contents of all of the files contained in a particular directory.

func (*Manifest) Add

func (m *Manifest) Add(path string, hash string)

func (*Manifest) Has

func (m *Manifest) Has(path string) bool

func (*Manifest) Missing

func (m *Manifest) Missing(paths []string) []string

func (*Manifest) Remove

func (m *Manifest) Remove(path string)

Jump to

Keyboard shortcuts

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