MCPcopy
hub / github.com/kubeedge/kubeedge / Get

Function Get

pkg/version/version.go:28–42  ·  view source on GitHub ↗

Get returns the overall codebase version. It's for detecting what code a binary was built from.

()

Source from the content-addressed store, hash-verified

26// Get returns the overall codebase version. It's for detecting
27// what code a binary was built from.
28func Get() apimachineryversion.Info {
29 // These variables typically come from -ldflags settings and in
30 // their absence fallback to the settings in pkg/version/base.go
31 return apimachineryversion.Info{
32 Major: gitMajor,
33 Minor: gitMinor,
34 GitVersion: gitVersion,
35 GitCommit: gitCommit,
36 GitTreeState: gitTreeState,
37 BuildDate: buildDate,
38 GoVersion: runtime.Version(),
39 Compiler: runtime.Compiler,
40 Platform: fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH),
41 }
42}

Callers 15

NewCSIDriverCommandFunction · 0.92
NewAdmissionCommandFunction · 0.92
NewCloudCoreCommandFunction · 0.92
PrintAndExitIfRequestedFunction · 0.92
RunVersionFunction · 0.92
createEdgeConfigFilesFunction · 0.92
createEdgeConfigFilesFunction · 0.92
createEdgeConfigFilesMethod · 0.92
newEdgedFunction · 0.92
initUpgradeFunction · 0.92
keadmUpgradeFunction · 0.92
backupNodeFunction · 0.92

Calls 1

VersionMethod · 0.80

Tested by

no test coverage detected