types

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const FlagPerformanceModeDefault = PerformanceModeEmpty
View Source
const FlagPerformanceModeName = "performance-mode"

Flag definitions

View Source
const FlagPerformanceModeResetName = "performance-mode-reset"

Variables

This section is empty.

Functions

func CheckValidPerformanceMode

func CheckValidPerformanceMode(performanceMode string, configType ConfigType) error

CheckValidPerformance checks to see if the given performance mode option is valid and returns an error in case the value is not valid.

func FlagPerformanceModeDescription

func FlagPerformanceModeDescription(configType ConfigType) string

func FlagPerformanceModeResetDescription

func FlagPerformanceModeResetDescription(configType ConfigType) string

func IsValidPerformanceMode

func IsValidPerformanceMode(performanceMode string, configType ConfigType) bool

IsValidPerformanceMode checks to see if the given performance mode option is valid.

Types

type ConfigType

type ConfigType int
const (
	ConfigTypeGlobal ConfigType = iota
	ConfigTypeProject
)

type PerformanceMode

type PerformanceMode = string
const (
	PerformanceModeEmpty   PerformanceMode = ""
	PerformanceModeGlobal  PerformanceMode = "global"
	PerformanceModeNone    PerformanceMode = "none"
	PerformanceModeMutagen PerformanceMode = "mutagen"
	PerformanceModeNFS     PerformanceMode = "nfs"
)

func GetPerformanceModeDefault

func GetPerformanceModeDefault() PerformanceMode

GetPerformanceModeDefault returns the default performance mode config depending on the OS.

func ValidPerformanceModeOptions

func ValidPerformanceModeOptions(configType ConfigType) []PerformanceMode

ValidPerformanceModeOptions returns a slice of valid performance mode options for the project config or global config if global is true.

Jump to

Keyboard shortcuts

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