Files
Olares/cli/pkg/core/common/common.go

104 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 = ".beos-pro"
DefaultDomainName = "beos.local"
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 = ""
DefaultBashUrl = "beos.sh"
)
const (
ZfsSnapshotter = "/var/lib/containerd/io.containerd.snapshotter.v1.zfs"
ENV_GB10_CHIP = "GB10_CHIP" // for building images for NVIDIA GB10 Superchip systems
)