Files
Olares/cli/pkg/storage/constants.go
Eliott van Nuffel df38148149
Some checks failed
Native Verification / Build Docs (pull_request) Successful in 1m12s
Native Verification / Build App-Service Native (pull_request) Successful in 1m27s
Native Verification / Build Daemon Native (pull_request) Successful in 42s
Lint and Test Charts / lint-test (pull_request_target) Failing after 19s
Lint and Test Charts / test-version (pull_request_target) Successful in 0s
Lint and Test Charts / push-image (pull_request_target) Failing after 15s
Lint and Test Charts / upload-cli (pull_request_target) Failing after 1m15s
Lint and Test Charts / upload-daemon (pull_request_target) Failing after 1m12s
Lint and Test Charts / push-deps (pull_request_target) Has been skipped
Lint and Test Charts / push-deps-arm64 (pull_request_target) Has been skipped
Lint and Test Charts / push-image-arm64 (pull_request_target) Has been cancelled
Lint and Test Charts / upload-package (pull_request_target) Has been cancelled
Lint and Test Charts / install-test (pull_request_target) Has been cancelled
continue beOS rebrand and add native verification
2026-03-10 13:48:45 +01:00

45 lines
1.9 KiB
Go

package storage
import (
"path"
"github.com/beclab/beos/cli/pkg/storage/templates"
"github.com/beclab/beos/cli/pkg/core/common"
)
var (
Root = path.Join("/")
StorageDataDir = path.Join(Root, "osdata")
StorageDataBeOSDir = path.Join(StorageDataDir, common.BeOSDir)
BeOSRootDir = path.Join(Root, common.BeOSDir)
BeOSSharedLibDir = path.Join(BeOSRootDir, "share")
BeOSUserDataDir = path.Join(BeOSRootDir, "userdata")
RedisRootDir = path.Join(BeOSRootDir, "data", "redis")
RedisConfigDir = path.Join(RedisRootDir, "etc")
RedisDataDir = path.Join(RedisRootDir, "data")
RedisLogDir = path.Join(RedisRootDir, "log")
RedisRunDir = path.Join(RedisRootDir, "run")
RedisConfigFile = path.Join(RedisConfigDir, "redis.conf")
RedisServiceFile = path.Join(Root, "etc", "systemd", "system", "redis-server.service")
RedisServerFile = path.Join(Root, "usr", "bin", "redis-server")
RedisCliFile = path.Join(Root, "usr", "bin", "redis-cli")
RedisServerInstalledFile = path.Join(Root, "usr", "local", "bin", "redis-server")
RedisCliInstalledFile = path.Join(Root, "usr", "local", "bin", "redis-cli")
JuiceFsFile = path.Join(Root, "usr", "local", "bin", "juicefs")
JuiceFsDataDir = path.Join(BeOSRootDir, "data", "juicefs")
JuiceFsCacheDir = path.Join(BeOSRootDir, "jfscache")
BeOSJuiceFSRootDir = path.Join(BeOSRootDir, "rootfs")
JuiceFsServiceFile = path.Join(Root, "etc", "systemd", "system", templates.JuicefsService.Name())
MinioRootUser = "minioadmin"
MinioDataDir = path.Join(BeOSRootDir, "data", "minio", "vol1")
MinioFile = path.Join(Root, "usr", "local", "bin", "minio")
MinioServiceFile = path.Join(Root, "etc", "systemd", "system", "minio.service")
MinioConfigFile = path.Join(Root, "etc", "default", "minio")
MinioOperatorFile = path.Join(Root, "usr", "local", "bin", "minio-operator")
)