Documentation ¶
Overview ¶
Package stager ensures that given a list of dependencies, those dependencies exist together in a a folder called a "workspace". Each entry in a workspace links to a file in a "cache", which stores contents addressed by its hash.
Index ¶
Constants ¶
const URW = 0644
URW is a file mode for a data file
const URWX = 0755
URWX is a file mode for an executable, or a directory
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File causes a file to be written
type Link ¶
type Link struct {
// contains filtered or unexported fields
}
Link causes a link to be written
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages staging a manifest of dependencies using a stager. Manager's main job is to infer the name of the workspace directory based on the SHAs of the dependencies in the manifest.
func NewManager ¶
NewManager returns a new manager. Creating a manager hashes all the assets in the manifest, so creating a manager is a) expensive, and b) may return an error.