mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-04-27 19:47:31 +00:00
24 lines
469 B
Go
24 lines
469 B
Go
package misc
|
|
|
|
import (
|
|
"os"
|
|
"path"
|
|
)
|
|
|
|
var (
|
|
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, ".kubeshark")
|
|
}
|