🔨 Rename kubeshark package to misc

This commit is contained in:
M. Mert Yildiran
2022-12-29 03:45:24 +03:00
parent 6d06c53ebf
commit 9ab9f139c0
11 changed files with 23 additions and 23 deletions

23
misc/consts.go Normal file
View File

@@ -0,0 +1,23 @@
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")
}