mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-28 09:10:09 +00:00
30 lines
690 B
Go
30 lines
690 B
Go
package misc
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"path"
|
|
)
|
|
|
|
var (
|
|
Software = "Kubeshark"
|
|
Program = "kubeshark"
|
|
Description = "The API Traffic Analyzer for Kubernetes"
|
|
Website = "https://kubeshark.co"
|
|
Email = "info@kubeshark.co"
|
|
Ver = "0.0"
|
|
Branch = "develop"
|
|
GitCommitHash = "" // this var is overridden using ldflags in makefile when building
|
|
BuildTimestamp = "" // this var is overridden using ldflags in makefile when building
|
|
RBACVersion = "v1"
|
|
Platform = ""
|
|
)
|
|
|
|
func GetDotFolderPath() string {
|
|
home, homeDirErr := os.UserHomeDir()
|
|
if homeDirErr != nil {
|
|
return ""
|
|
}
|
|
return path.Join(home, fmt.Sprintf(".%s", Program))
|
|
}
|