2018-04-19 13:07:27 -04:00
|
|
|
package appdefaults
|
|
|
|
|
2020-04-16 11:06:33 -04:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"path/filepath"
|
|
|
|
)
|
|
|
|
|
2018-04-19 13:07:27 -04:00
|
|
|
const (
|
2020-04-16 11:06:33 -04:00
|
|
|
Address = "npipe:////./pipe/buildkitd"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
Root = filepath.Join(os.Getenv("ProgramData"), "buildkitd", ".buildstate")
|
|
|
|
ConfigDir = filepath.Join(os.Getenv("ProgramData"), "buildkitd")
|
2018-04-19 13:07:27 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
func UserAddress() string {
|
|
|
|
return Address
|
|
|
|
}
|
|
|
|
|
|
|
|
func EnsureUserAddressDir() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func UserRoot() string {
|
|
|
|
return Root
|
|
|
|
}
|
2018-09-05 14:54:38 -04:00
|
|
|
|
|
|
|
func UserConfigDir() string {
|
|
|
|
return ConfigDir
|
|
|
|
}
|