Documentation ¶
Index ¶
- Variables
- func FloatPrecision(f string) (prec int, err error)
- func GetPrefKind(typ TypeName, value string) (kind reflect.Kind)
- func GetPrefKindAndTypeLabel(kind reflect.Kind, typ TypeName, value string) (_ reflect.Kind, label *kvfilters.Label)
- func OSVersionLabel(code Code) *kvfilters.Label
- func ParsePrefKind(kind reflect.Kind) (_ reflect.Kind, label *kvfilters.Label)
- func ParsePrefType(typ TypeName) (kind reflect.Kind, label *kvfilters.Label)
- func ParsePrefValue(value string) (kind reflect.Kind, label *kvfilters.Label)
- type Code
- type DomainDefaults
- type DomainPref
- type DomainPrefs
- type Labels
- type TypeName
- type Verified
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SequoiaLabel = OSVersionLabel(macosutil.Sequoia) MontereyLabel = OSVersionLabel(macosutil.Monterey) )
View Source
var ( InvalidLabel = macprefs.InvalidLabel Sets = macprefs.Sets Type = macprefs.Type MacOS = macprefs.MacOS Class = macprefs.Class AppManaged = &macprefs.AppManaged UserManaged = &macprefs.UserManaged VersionMigration = &macprefs.VersionMigration RuntimeState = &macprefs.RuntimeState SystemManaged = &macprefs.SystemManaged DefaultsSet = &macprefs.DefaultsSet SetupSets = &macprefs.SetupSets UnknownType = &macprefs.UnknownType StringType = &macprefs.StringType BoolType = &macprefs.BoolType IntBoolType = &macprefs.IntBoolType IntType = &macprefs.IntType FloatType = &macprefs.FloatType )
View Source
var ErrNotAFloat = fmt.Errorf("string value does not represent a float value")
View Source
var NewLabels = kvfilters.NewLabels
Functions ¶
func FloatPrecision ¶
func GetPrefKindAndTypeLabel ¶
func OSVersionLabel ¶
Types ¶
type DomainDefaults ¶
type DomainDefaults = map[string]DomainPrefs
type DomainPref ¶
type DomainPref struct { Domain string Name string Type string Default string // raw string value for default Labels *kvfilters.Labels Verified Verified // contains filtered or unexported fields }
func (DomainPref) Kind ¶
func (dp DomainPref) Kind() reflect.Kind
func (DomainPref) TypeLabel ¶
func (dp DomainPref) TypeLabel() (label *kvfilters.Label)
func (DomainPref) TypeName ¶
func (dp DomainPref) TypeName() (name TypeName)
type DomainPrefs ¶
type DomainPrefs = map[string]DomainPref
Click to show internal directories.
Click to hide internal directories.