Documentation
¶
Index ¶
- Constants
- func FindPaths(slices []*setup.Slice) map[string][]*setup.Slice
- func SetDebug(debug bool)
- func SetLogger(logger log_Logger)
- func Validate(manifest *Manifest) (err error)
- func Write(options *WriteOptions, writer io.Writer) error
- type Content
- type Manifest
- func (manifest *Manifest) IterateContents(slice string, onMatch func(*Content) error) (err error)
- func (manifest *Manifest) IteratePackages(onMatch func(*Package) error) (err error)
- func (manifest *Manifest) IteratePaths(pathPrefix string, onMatch func(*Path) error) (err error)
- func (manifest *Manifest) IterateSlices(pkgName string, onMatch func(*Slice) error) (err error)
- type Package
- type Path
- type Report
- type ReportEntry
- type Slice
- type WriteOptions
Constants ¶
View Source
const DefaultFilename = "manifest.wall"
View Source
const Schema = "1.0"
Variables ¶
This section is empty.
Functions ¶
func FindPaths ¶
FindPaths finds the paths marked with "generate:manifest" and returns a map from the manifest path to all the slices that declare it.
func SetDebug ¶
func SetDebug(debug bool)
Enable the delivery of debug messages to the logger. Only meaningful if a logger is also set.
func SetLogger ¶
func SetLogger(logger log_Logger)
Specify the *log.Logger object where log messages should be sent to.
Types ¶
type Manifest ¶
type Manifest struct {
// contains filtered or unexported fields
}
func Read ¶
Read loads a Manifest without performing any validation. The data is assumed to be both valid jsonwall and a valid Manifest (see Validate).
func (*Manifest) IterateContents ¶
func (*Manifest) IteratePackages ¶
func (*Manifest) IteratePaths ¶
type Path ¶
type Path struct { Kind string `json:"kind"` Path string `json:"path,omitempty"` Mode string `json:"mode,omitempty"` Slices []string `json:"slices,omitempty"` SHA256 string `json:"sha256,omitempty"` FinalSHA256 string `json:"final_sha256,omitempty"` Size uint64 `json:"size,omitempty"` Link string `json:"link,omitempty"` }
type Report ¶
type Report struct { // Root is the filesystem path where the all reported content is based. Root string // Entries holds all reported content, indexed by their path. Entries map[string]ReportEntry }
Report holds the information about files and directories created when slicing packages.
type ReportEntry ¶
type WriteOptions ¶
type WriteOptions struct { PackageInfo []*archive.PackageInfo Selection []*setup.Slice Report *Report }
Click to show internal directories.
Click to hide internal directories.