Files
Olares/cli/pkg/core/common/common.go
dkeven 8aa08d041d chore: clean up and migrate from legacy envs (#1946)
* chore(cli): get rid of injection of legacy envs

* chore(cli): clean up legacy env MARKET_PROVIDER

* chore: rename download cdn url to olares cdn service

* chore: change default cdn service url
2025-10-18 00:13:50 +08:00

102 lines
2.2 KiB
Go
Executable File

/*
Copyright 2021 The KubeSphere Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package common
const (
ManifestDir = "manifest"
ImageCacheDir = "images"
PackageCacheDir = "pkg"
BuildFilesCacheDir = "files"
BuildDir = "build"
GpuDir = "gpu"
LogsDir = "logs"
InstallLogFile = "install.log"
// KubeKey = "kubekey"
Cli = "cli"
KubeKey = "pkg"
Pkg = "pkg"
InstallDir = "install-wizard"
ImagesDir = "images"
ScriptsDir = "scripts"
WizardDir = "wizard"
ComponentsDir = "components"
DeployDir = "deploy"
OlaresDir = "olares"
DefaultBaseDir = ".olares"
DefaultDomainName = "olares.com"
ManifestImage = "images.mf"
ManifestImageNode = "images.node.mf"
ManifestDeps = "dependencies.mf"
Pipeline = "Pipeline"
Module = "Module"
Task = "Task"
Node = "Node"
LocalHost = "LocalHost"
FileMode0755 = 0755
FileMode0644 = 0644
FileMode0600 = 0600
FileMode0640 = 0640
TmpDir = "/tmp/kubekey/" // todo
// command
CopyCmd = "cp -r %s %s"
MoveCmd = "mv -f %s %s"
)
const (
StateDownload = "Download"
StateInstall = "Install"
StateFail = "Fail"
StateSuccess = "Success"
)
const (
DefaultInstallSteps int64 = 32
)
const (
Linux = "linux"
Windows = "windows"
Darwin = "darwin"
Raspbian = "raspbian"
WSL = "wsl"
PVE = "pve"
PVE_LXC = "pve_lxc"
Ubuntu = "ubuntu"
Debian = "debian"
Fedora = "fedora"
CentOs = "centos"
RHEL = "rhel"
)
const (
DefaultOlaresCDNService = "https://cdn.olares.com"
DefaultBashUrl = "olares.sh"
)
const (
ZfsSnapshotter = "/var/lib/containerd/io.containerd.snapshotter.v1.zfs"
)