solution

package
v0.0.0-...-12ea192 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

AllSolutions contains a list of all available solutions with their related SAP Notes for all supported architectures

CustomSolutions contains a list of all available customer specific solutions with their related SAP Notes for all supported architectures

View Source
var DeprecSolutions = GetOtherSolution(DeprecSolutionSheets, "", "")

DeprecSolutions contains a list of all solutions witch are deprecated

OverrideSolutions contains a list of all available override solutions with their related SAP Notes for all supported architectures

Functions

func GetOtherSolution

func GetOtherSolution(solsDir, noteFiles, extraFiles string) map[string]map[string]Solution

GetOtherSolution reads override, custom or deprecated solution definition from file

func GetSolutionDefintion

func GetSolutionDefintion(solsDir, extraDir, noteDir string) map[string]map[string]Solution

GetSolutionDefintion reads solution definition from file build same structure for AllSolutions as before can be simplified later

func GetSortedSolutionNames

func GetSortedSolutionNames(archName string) (ret []string)

GetSortedSolutionNames returns all solution names, sorted alphabetically.

func IsAvailableSolution

func IsAvailableSolution(sol, arch string) bool

IsAvailableSolution returns true, if the solution name already exists

func IsShippedSolution

func IsShippedSolution(sol string) bool

IsShippedSolution returns true, if the solution is shipped by the saptune package (from /usr/share/saptune/solutions)

func Refresh

func Refresh()

Refresh refreshes the solution related variables

Types

type Solution

type Solution []string

Solution is identified by set of note numbers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL