Skip to content

Commit 8b190da

Browse files
committed
make functions public
1 parent 29f7b32 commit 8b190da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

daemon/lib/garbage_collection.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func findToRemoveLayers(all_layers, needed_layers []string) (removes []string) {
4343
return
4444
}
4545

46-
func findImageToGarbageCollect(CVMFSRepo string) ([]da.Manifest, error) {
46+
func FindImageToGarbageCollect(CVMFSRepo string) ([]da.Manifest, error) {
4747
removeSchedulePath := RemoveScheduleLocation(CVMFSRepo)
4848
llog := func(l *log.Entry) *log.Entry {
4949
return l.WithFields(log.Fields{
@@ -88,8 +88,9 @@ func findImageToGarbageCollect(CVMFSRepo string) ([]da.Manifest, error) {
8888
return schedule, nil
8989
}
9090

91-
// with image and layer we pass the digest of the layer and the digest of the image, both without the sha256: prefix
92-
func garbabeCollectSingleLayer(CVMFSRepo, image, layer string) error {
91+
// with image and layer we pass the digest of the layer and the digest of the image,
92+
// both without the sha256: prefix
93+
func GarbageCollectSingleLayer(CVMFSRepo, image, layer string) error {
9394
backlink, err := getBacklinkFromLayer(CVMFSRepo, layer)
9495
llog := func(l *log.Entry) *log.Entry {
9596
return l.WithFields(log.Fields{"action": "garbage collect layer",

0 commit comments

Comments
 (0)