Documentation ¶
Index ¶
- func CalculateTreeStats() (Dirtask, *TreeStats)
- func CatalogLoader(catalog string, at int, roots Roots) anywork.Work
- func CatalogName(key string) string
- func CatalogNames() []string
- func CleanupHolotreeStage(tree MutableLibrary) error
- func ComposeFinalBlueprint(userFiles []string, packfile string) (config robot.Robot, blueprint []byte, err error)
- func Compress() bool
- func ControllerSpaceName(client, tag []byte) string
- func DigestLoader(root *Root, at int, slots []map[string]string) anywork.Work
- func DropFile(library Library, digest, sinkname string, details *File, rewrite []byte) anywork.Work
- func ExactDefaultLocation(digest string) string
- func LiftFile(sourcename, sinkname string, compress bool) anywork.Work
- func LoadHololibHashes() (map[string]map[string]bool, map[string]map[string]bool)
- func MakeBranches(path string, it *Dir) error
- func NewEnvironment(condafile, holozip string, restore, force bool, puller CatalogPuller) (label string, scorecard common.Scorecard, err error)
- func RecordEnvironment(tree MutableLibrary, blueprint []byte, force bool, scorecard common.Scorecard, ...) (err error)
- func RelativeDefaultLocation(digest string) string
- func RemoveDirectory(dirname string) anywork.Work
- func RemoveFile(filename string) anywork.Work
- func RestoreLayersTo(tree MutableLibrary, identityfile string, targetDir string) conda.SkipLayer
- func RobotBlueprints(userBlueprints []string, packfile string) (robot.Robot, []string)
- func UserHolotreeLockfile() string
- type CatalogPuller
- type Closer
- type Dir
- type Dirtask
- type File
- type Filetask
- type Info
- type Library
- type MutableLibrary
- type Root
- func (it *Root) AllDirs(task Dirtask) error
- func (it *Root) AllFiles(task Filetask) error
- func (it *Root) AsJson() ([]byte, error)
- func (it *Root) HolotreeBase() string
- func (it *Root) Lift() error
- func (it *Root) LoadFrom(filename string) error
- func (it *Root) ReadFrom(source io.Reader) error
- func (it *Root) Relocate(target string) error
- func (it *Root) Rewrite() []byte
- func (it *Root) SaveAs(filename string) error
- func (it *Root) Show(filename string) ([]byte, error)
- func (it *Root) Signature() uint64
- func (it *Root) Source() string
- func (it *Root) Stats() (*TreeStats, error)
- func (it *Root) Top(count int) map[string]int64
- func (it *Root) Touch()
- func (it *Root) Treetop(task Treetop) error
- type Roots
- type TreeStats
- type Treetop
- func CatalogCheck(library MutableLibrary, fs *Root) Treetop
- func DigestMapper(target map[string]string) Treetop
- func DigestRecorder(target map[string]string) Treetop
- func IntegrityCheck(result map[string]string, needed map[string]map[string]bool) Treetop
- func ScheduleLifters(library MutableLibrary, stats *stats) Treetop
- func ZipIgnore(library MutableLibrary, fs *Root, sink Zipper) Treetop
- func ZipRoot(library MutableLibrary, fs *Root, sink Zipper) Treetop
- type WriteLocator
- type Zipper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateTreeStats ¶
func CatalogName ¶
func CatalogNames ¶
func CatalogNames() []string
func CleanupHolotreeStage ¶
func CleanupHolotreeStage(tree MutableLibrary) error
func ComposeFinalBlueprint ¶
func ControllerSpaceName ¶
func ExactDefaultLocation ¶
func LoadHololibHashes ¶
func MakeBranches ¶
func NewEnvironment ¶
func RecordEnvironment ¶
func RecordEnvironment(tree MutableLibrary, blueprint []byte, force bool, scorecard common.Scorecard, puller CatalogPuller) (err error)
func RelativeDefaultLocation ¶
func RemoveDirectory ¶
func RemoveFile ¶
func RestoreLayersTo ¶
func RestoreLayersTo(tree MutableLibrary, identityfile string, targetDir string) conda.SkipLayer
func RobotBlueprints ¶
func UserHolotreeLockfile ¶
func UserHolotreeLockfile() string
Types ¶
type Dir ¶
type File ¶
type Info ¶
type Library ¶
type Library interface { ValidateBlueprint([]byte) error HasBlueprint([]byte) bool Open(string) (io.Reader, Closer, error) WarrantyVoidedDir([]byte, []byte) string TargetDir([]byte, []byte, []byte) (string, error) Restore([]byte, []byte, []byte) (string, error) RestoreTo([]byte, string, string, string, bool) (string, error) }
func ZipLibrary ¶
type MutableLibrary ¶
type MutableLibrary interface { Library Identity() string ExactLocation(string) string Export([]string, []string, string) error Remove([]string) error Location(string) string Record([]byte) error Stage() string CatalogPath(string) string WriteIdentity([]byte) error }
func New ¶
func New() (MutableLibrary, error)
func Unmanaged ¶
func Unmanaged(core MutableLibrary) MutableLibrary
func Virtual ¶
func Virtual() MutableLibrary
type Root ¶
type Root struct { *Info Lifted bool `json:"lifted"` Tree *Dir `json:"tree"` // contains filtered or unexported fields }
func (*Root) HolotreeBase ¶
type Roots ¶
type Roots []*Root
func LoadCatalogs ¶
func (Roots) BaseFolders ¶
func (Roots) FindEnvironments ¶
func (Roots) RemoveHolotreeSpace ¶
type Treetop ¶
func CatalogCheck ¶
func CatalogCheck(library MutableLibrary, fs *Root) Treetop
func DigestMapper ¶
func DigestRecorder ¶
func IntegrityCheck ¶
func ScheduleLifters ¶
func ScheduleLifters(library MutableLibrary, stats *stats) Treetop
type WriteLocator ¶
func RelocateWriter ¶
func RelocateWriter(delegate io.Writer, needle string) WriteLocator
Click to show internal directories.
Click to hide internal directories.