manifest

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDescription

type FileDescription struct {
	Name     string
	Size     int64
	Modified time.Time
	Hash     string
}

FileDescription is meta info about a file we will want to include in the Manifest.

type Manifest

type Manifest struct {
	Name         string
	Timestamp    time.Time
	Organization string
	Username     string
	User         string
	SudoUser     string
	Folder       string
	Files        []FileDescription
}

Manifest is a description of files.

func BuildManifest

func BuildManifest(folder string, options options.Options) Manifest

BuildManifest builds a manifest from a directory. It reads the contents of the directory and captures the file names, owners, dates and user into a manifest.json file.

func ReadManifest

func ReadManifest(file string) Manifest

ReadManifest from a file.

Jump to

Keyboard shortcuts

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