Documentation ¶
Index ¶
- Constants
- Variables
- func GetClusterPath(clusterName, providerName string) string
- func GetClusterStatePath() string
- func GetDefaultSSHKeyPath(clusterName, providerName string) string
- func GetLogFile(name string) (logFile *os.File, err error)
- func GetLogPath() string
- func NewLogger(debug bool, w *os.File) *logrus.Logger
Constants ¶
View Source
const ( BindPrefix = "autok3s.providers.%s.%s" ConfigFile = "config.yaml" StateFile = ".state" KubeCfgFile = ".kube/config" KubeCfgTempName = "autok3s-temp" K3sManifestsDir = "/var/lib/rancher/k3s/server/manifests" MasterInstanceName = "autok3s.%s.master" WorkerInstanceName = "autok3s.%s.worker" TagClusterPrefix = "autok3s-" StatusRunning = "Running" StatusStopped = "Stopped" StatusCreating = "Creating" StatusJoin = "Join" StatusFailed = "Failed" UsageInfoTitle = "=========================== Prompt Info ===========================" UsageContext = "Use 'autok3s kubectl config use-context %s'" UsagePods = "Use 'autok3s kubectl get pods -A' get POD status`" )
Variables ¶
Functions ¶
func GetClusterPath ¶ added in v0.3.0
func GetClusterStatePath ¶
func GetClusterStatePath() string
func GetDefaultSSHKeyPath ¶ added in v0.3.0
func GetLogPath ¶ added in v0.4.0
func GetLogPath() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.