Comments in the code were already disparaging of config.DataStore(), but implied that its presence made other code more readable. It was only used in two places and, imo, how I've refactored it is more explicit and clear than it was. Signed-off-by: Jonathon Anderson <janderson@ciq.co>
14 lines
273 B
Go
14 lines
273 B
Go
package oci
|
|
|
|
import (
|
|
warewulfconf "github.com/hpcng/warewulf/internal/pkg/config"
|
|
"path/filepath"
|
|
)
|
|
|
|
var defaultCachePath = filepath.Join(warewulfconf.Get().Warewulf.DataStore, "/container-cache/oci/")
|
|
|
|
const (
|
|
blobPrefix = "blobs"
|
|
rootfsPrefix = "rootfs"
|
|
)
|