config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DeviceTypes []DeviceType `json:"devicetypes"`
	Runtimes    []Runtime    `json:"runtimes"`
	Devices     Devices      `json:"devices"`
	Pairs       Pairs        `json:"pairs"`
	Loaded      bool         `json:"-"`
}

Config represents the highest level of the iOS configuration's output

func Unmarshal

func Unmarshal(data []byte) (Config, error)

Unmarshal creates a Config from the external command calls output

type Device

type Device struct {
	MinimalDevice
	AvailabilityError    string `json:"availabilityError"`
	DataPath             string `json:"dataPath"`
	LogPath              string `json:"logPath"`
	IsAvailable          bool   `json:"isAvailable"`
	DeviceTypeIdentifier string `json:"deviceTypeIdentifier"`
}

Device represents an iOS device with all the details

type DeviceType

type DeviceType struct {
	MinRuntimeVersion int    `json:"minRuntimeVersion"`
	BundlePath        string `json:"bundlePath"`
	MaxRuntimeVersion int    `json:"maxRuntimeVersion"`
	Name              string `json:"name"`
	Identifier        string `json:"identifier"`
	ProductFamily     string `json:"productFamily"`
}

DeviceType represents an iOS device type with details

type Devices

type Devices map[string][]Device

Devices represents ID-Device pairs

type MinimalDevice

type MinimalDevice struct {
	UDID  string `json:"udid"`
	State string `json:"state"`
	Name  string `json:"name"`
}

MinimalDevice represents the common values of devices

type Pair

type Pair struct {
	State string        `json:"state"`
	Watch MinimalDevice `json:"watch"`
	Phone MinimalDevice `json:"phone"`
}

Pair represents an iPhone-Watch pair

type Pairs

type Pairs map[string]Pair

Pairs represents multiple iPhone-Watch pairs

type Runtime

type Runtime struct {
	BundlePath   string `json:"bundlePath"`
	Buildversion string `json:"buildversion"`
	RuntimeRoot  string `json:"runtimeRoot"`
	Identifier   string `json:"identifier"`
	Version      string `json:"version"`
	IsAvailable  bool   `json:"isAvailable"`
	Name         string `json:"name"`
}

Runtime represents an iOS runtime with details

Jump to

Keyboard shortcuts

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