github.com/Axway/agent-sdk@v1.1.101/pkg/cmd/version.go (about) 1 package cmd 2 3 // BuildTime - 4 var BuildTime string 5 6 // BuildVersion - 7 var BuildVersion string 8 9 // BuildCommitSha - 10 var BuildCommitSha string 11 12 // BuildAgentName - internal identification name for the agent 13 var BuildAgentName string 14 15 // BuildAgentDescription - agent name you wish to display in things like the version and help command 16 var BuildAgentDescription string 17 18 // BuildDataPlaneType - 19 var BuildDataPlaneType string 20 21 // SDKBuildVersion - 22 var SDKBuildVersion string 23 24 // agentSDKDataPlaneType - default data plane type when not set at build time 25 const agentSDKDataPlaneType = "AgentSDK" 26 27 // GetBuildDataPlaneType - returns the BuildDataPlaneType 28 func GetBuildDataPlaneType() string { 29 if BuildDataPlaneType == "" { 30 return agentSDKDataPlaneType 31 } 32 return BuildDataPlaneType 33 }