Documentation
¶
Index ¶
- func GetBootcmdline() (string, error)
- func InitializeStatusConditions() []tunedv1.ProfileStatusCondition
- func PrepareOpenShiftTunedDir() error
- func RunInCluster(stopCh <-chan struct{}, version string) error
- func RunOutOfClusterOneShot(stopCh <-chan struct{}, version string) error
- func TunedCreateCmdline(debug bool) (string, []string)
- func TunedRecommendFileRead() (string, error)
- func TunedRecommendFileReadPath(recommendFilePath string) (string, error)
- func TunedRecommendFileWrite(profileName string) error
- func TunedRecommendFileWritePath(recommendFilePath, profileName string) error
- func TunedRsyncEtc() error
- func TunedRun(cmd *exec.Cmd, daemon *Daemon, onDaemonReload func()) error
- func TunedRunNoDaemon(timeout time.Duration) error
- type Bits
- type Change
- type Controller
- type Daemon
- type ExtractedProfiles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBootcmdline ¶
func InitializeStatusConditions ¶
func InitializeStatusConditions() []tunedv1.ProfileStatusCondition
InitializeStatusConditions returns a slice of tunedv1.ProfileStatusCondition initialized to an unknown state.
func PrepareOpenShiftTunedDir ¶
func PrepareOpenShiftTunedDir() error
func RunInCluster ¶
func RunOutOfClusterOneShot ¶
func TunedCreateCmdline ¶
func TunedRecommendFileRead ¶
func TunedRecommendFileWrite ¶
func TunedRsyncEtc ¶
func TunedRsyncEtc() error
TunedRsyncEtcToHost propagates the changes from container's read-only TuneD /etc/tuned.orig directory to the container's Memory-backed read-write TuneD /etc/tuned directory. This function only serves the purpose to enable readOnlyRootFilesystem for the NTO operand.
func TunedRunNoDaemon ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
type ExtractedProfiles ¶
type ExtractedProfiles struct { // True if the data in the to-be-extracted recommended profile or the profiles being // included from the current recommended profile have changed. Changed bool // If the data changed, the fingerprint of the new profile, or "" otherwise. Fingerprint string // A map with successfully extracted TuneD profile names. Names map[string]bool // A map with names of TuneD profiles the current TuneD recommended profile depends on. Dependencies map[string]bool }
func ProfilesExtract ¶
func ProfilesExtract(profiles []tunedv1.TunedProfile, recommendedProfile string) (ExtractedProfiles, error)
ProfilesExtract extracts TuneD daemon profiles to tunedProfilesDirCustom directory. Returns:
- ExtractedProfiles with the details of the operation performed
- Error if any or nil.
Click to show internal directories.
Click to hide internal directories.