ddi

package
v0.0.0-prerelease Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeveloperDiskImagesDir = "/Library/Developer/DeveloperDiskImages"
	CandidateDDIDir        = "/Library/Developer/CoreDevice/CandidateDDIs"
)

Variables

View Source
var ErrNoDDIsFound = errors.New("no DDIs found")

Functions

This section is empty.

Types

type Platform

type Platform struct {
	Metadata struct {
		BuildUpdate                                       string `json:"buildUpdate"`
		ContentIsCompatible                               bool   `json:"contentIsCompatible"`
		CoreDeviceVersionChecksIncludeDevelopmentRevision bool   `json:"coreDeviceVersionChecksIncludeDevelopmentRevision"`
		DevelopmentRevision                               int    `json:"developmentRevision"`
		EnforcingCoreDeviceVersionChecks                  bool   `json:"enforcingCoreDeviceVersionChecks"`
		IsUsable                                          bool   `json:"isUsable"`
		Platform                                          string `json:"platform"`
		ProjectMetadata                                   []struct {
			Name    string `json:"name"`
			Version string `json:"version"`
		} `json:"projectMetadata"`
		Variant string `json:"variant"`
	} `json:"ddiMetadata"`
	HostDDI string `json:"hostDDI"`
}

func (*Platform) String

func (p *Platform) String() string

type PreferredDDI

type PreferredDDI struct {
	Info struct {
		Arguments   []string `json:"arguments"`
		CommandType string   `json:"commandType"`
		Environment struct {
			TERM string `json:"TERM"`
		} `json:"environment"`
		JSONVersion int    `json:"jsonVersion"`
		Outcome     string `json:"outcome"`
		Version     string `json:"version"`
	} `json:"info"`
	Result struct {
		HostCoreDeviceVersion string `json:"hostCoreDeviceVersion"`
		Platforms             struct {
			IOS     []Platform `json:"iOS"`
			MacOS   []Platform `json:"macOS"`
			TvOS    []Platform `json:"tvOS"`
			WatchOS []Platform `json:"watchOS"`
			XrOS    []Platform `json:"xrOS"`
		} `json:"platforms"`
	} `json:"result"`
}

func (*PreferredDDI) Empty

func (i *PreferredDDI) Empty() bool

type Version

type Version struct {
	BuildVersion        string
	Platform            string
	ProductBuildVersion string
	ProjectMetadata     []struct {
		Project string
		Version string
	}
	Variant string
}

Jump to

Keyboard shortcuts

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