32 lines
452 B
Go
32 lines
452 B
Go
package appdefaults
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
const (
|
|
Address = "npipe:////./pipe/buildkitd"
|
|
)
|
|
|
|
var (
|
|
Root = filepath.Join(os.Getenv("ProgramData"), "buildkitd", ".buildstate")
|
|
ConfigDir = filepath.Join(os.Getenv("ProgramData"), "buildkitd")
|
|
)
|
|
|
|
func UserAddress() string {
|
|
return Address
|
|
}
|
|
|
|
func EnsureUserAddressDir() error {
|
|
return nil
|
|
}
|
|
|
|
func UserRoot() string {
|
|
return Root
|
|
}
|
|
|
|
func UserConfigDir() string {
|
|
return ConfigDir
|
|
}
|