prefdefaults

package
v0.0.0-...-6e0b544 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

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 FloatPrecision(f string) (prec int, err error)

func GetPrefKind

func GetPrefKind(typ TypeName, value string) (kind reflect.Kind)

func GetPrefKindAndTypeLabel

func GetPrefKindAndTypeLabel(kind reflect.Kind, typ TypeName, value string) (_ reflect.Kind, label *kvfilters.Label)

func OSVersionLabel

func OSVersionLabel(code Code) *kvfilters.Label

func ParsePrefKind

func ParsePrefKind(kind reflect.Kind) (_ reflect.Kind, label *kvfilters.Label)

func ParsePrefType

func ParsePrefType(typ TypeName) (kind reflect.Kind, label *kvfilters.Label)

func ParsePrefValue

func ParsePrefValue(value string) (kind reflect.Kind, label *kvfilters.Label)

Types

type Code

type Code = types.Code

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

type Labels

type Labels = kvfilters.Labels

type TypeName

type TypeName = types.TypeName

type Verified

type Verified = macprefs.Verified

Jump to

Keyboard shortcuts

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