Documentation ¶
Index ¶
- Constants
- Variables
- func GetOtherSolution(solsDir, noteFiles, extraFiles string) map[string]map[string]Solution
- func GetSolutionDefintion(solsDir, extraDir, noteDir string) map[string]map[string]Solution
- func GetSortedSolutionNames(archName string) (ret []string)
- func IsAvailableSolution(sol, arch string) bool
- func IsShippedSolution(sol string) bool
- func Refresh()
- type Solution
Constants ¶
const ( ShippedSolSheets = "/usr/share/saptune/sols/" OverrideSolutionSheets = "/etc/saptune/override/" DeprecSolutionSheets = "/usr/share/saptune/deprecated/" SolutionSheets = "/var/lib/saptune/working/sols/" NoteTuningSheets = "/var/lib/saptune/working/notes/" ExtraTuningSheets = "/etc/saptune/extra/" ArchX86 = "amd64" // ArchX86 is the GOARCH value for x86 platform. ArchPPC64LE = "ppc64le" // ArchPPC64LE is the GOARCH for 64-bit PowerPC little endian platform. ArchX86PC = "amd64_PC" // ArchX86 is the GOARCH value for x86 platform. PC indicates PageCache is available ArchPPC64LEPC = "ppc64le_PC" // ArchPPC64LE is the GOARCH for 64-bit PowerPC little endian platform. PC indicates PageCache is available )
solution constant definitions
Variables ¶
var AllSolutions = GetSolutionDefintion(SolutionSheets, ExtraTuningSheets, NoteTuningSheets)
AllSolutions contains a list of all available solutions with their related SAP Notes for all supported architectures
var CustomSolutions = GetOtherSolution(ExtraTuningSheets, NoteTuningSheets, ExtraTuningSheets)
CustomSolutions contains a list of all available customer specific solutions with their related SAP Notes for all supported architectures
var DeprecSolutions = GetOtherSolution(DeprecSolutionSheets, "", "")
DeprecSolutions contains a list of all solutions witch are deprecated
var OverrideSolutions = GetOtherSolution(OverrideSolutionSheets, NoteTuningSheets, ExtraTuningSheets)
OverrideSolutions contains a list of all available override solutions with their related SAP Notes for all supported architectures
Functions ¶
func GetOtherSolution ¶
GetOtherSolution reads override, custom or deprecated solution definition from file
func GetSolutionDefintion ¶
GetSolutionDefintion reads solution definition from file build same structure for AllSolutions as before can be simplified later
func GetSortedSolutionNames ¶
GetSortedSolutionNames returns all solution names, sorted alphabetically.
func IsAvailableSolution ¶
IsAvailableSolution returns true, if the solution name already exists
func IsShippedSolution ¶
IsShippedSolution returns true, if the solution is shipped by the saptune package (from /usr/share/saptune/solutions)