umbrella

package
v0.0.0-...-c426cd6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package umbrella provides utility functions to maintain your Shade repository, such as cleaning up orphaned files and chunks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(client drive.Client) error

Cleanup attempts to remove obsolete files and unused chunks from persistent storage clients.

func CleanupLoop

func CleanupLoop(client drive.Client)

CleanupLoop calls Cleanup once per hour

Types

type FoundFile

type FoundFile struct {
	// contains filtered or unexported fields
}

FoundFile groups files with their associated sums

func FetchFiles

func FetchFiles(client drive.Client) (inUse, obsolete []FoundFile, err error)

FetchFiles uses the provided client to fetch all of the known files and sorts them into those which are inUse and those which are obsolete.

Jump to

Keyboard shortcuts

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