Help us shape the future of Go! Take the 2026 Go Developer Survey

mount

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageTypeDeveloper = "Developer"
	ImageTypeCryptex   = "Cryptex"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(udid string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) DeveloperModeStatus

func (c *Client) DeveloperModeStatus() (bool, error)

func (*Client) Hangup

func (c *Client) Hangup() (bool, error)

func (*Client) ListImages

func (c *Client) ListImages() ([]ListImageEntryList, error)

func (*Client) LookupImage

func (c *Client) LookupImage(imageType string) (*LookupImageResponse, error)

func (*Client) Mount

func (c *Client) Mount(imageType string, signature []byte, trustCachePath, infoPlistPath string) error

func (*Client) Nonce

func (c *Client) Nonce(imageType string) (string, error)

func (*Client) PersonalizationIdentifiers

func (c *Client) PersonalizationIdentifiers(imageType string) (map[string]any, error)

func (*Client) PersonalizationManifest

func (c *Client) PersonalizationManifest(imageType string, signature []byte) ([]byte, error)

func (*Client) RollCryptexNonce

func (c *Client) RollCryptexNonce() error

func (*Client) RollPersonalizationNonce

func (c *Client) RollPersonalizationNonce() error

func (*Client) Unmount

func (c *Client) Unmount(imageType, mountPath string, signature []byte) error

func (*Client) Upload

func (c *Client) Upload(imageType string, imageData []byte, signature []byte) error

type HangupResponse

type HangupResponse struct {
	Goodbye bool `plist:"Goodbye,omitempty" json:"goodbye,omitempty"`
}

type ListImageEntryList

type ListImageEntryList struct {
	BackingImage              string `plist:"BackingImage,omitempty" json:"backing_image,omitempty"`
	ImageSignature            []byte `plist:"ImageSignature,omitempty" json:"image_signature,omitempty"`
	IsMounted                 bool   `plist:"IsMounted,omitempty" json:"is_mounted,omitempty"`
	IsReadOnly                bool   `plist:"IsReadOnly,omitempty" json:"is_read_only,omitempty"`
	MountPath                 string `plist:"MountPath,omitempty" json:"mount_path,omitempty"`
	SupportsContentProtection bool   `plist:"SupportsContentProtection,omitempty" json:"supports_content_protection,omitempty"`
	DeviceNode                string `plist:"DeviceNode,omitempty" json:"device_node,omitempty"`
	DeviceType                string `plist:"DeviceType,omitempty" json:"device_type,omitempty"`
	DiskImageType             string `plist:"DiskImageType,omitempty" json:"disk_image_type,omitempty"`
	FilesystemType            string `plist:"FilesystemType,omitempty" json:"filesystem_type,omitempty"`
}

func (ListImageEntryList) String

func (e ListImageEntryList) String() string

type ListImageResponse

type ListImageResponse struct {
	Status    string               `plist:"Status,omitempty" json:"status,omitempty"`
	EntryList []ListImageEntryList `plist:"EntryList,omitempty" json:"entry_list,omitempty"`
}

type LookupImageRequest

type LookupImageRequest struct {
	Command   string `plist:"Command,omitempty"`
	ImageType string `plist:"ImageType,omitempty"`
}

type LookupImageResponse

type LookupImageResponse struct {
	Status         string   `plist:"Status,omitempty" json:"status,omitempty"`
	ImageSignature [][]byte `plist:"ImageSignature,omitempty" json:"image_signature,omitempty"`
}

type MountRequest

type MountRequest struct {
	Command               string `plist:"Command,omitempty"`
	ImageType             string `plist:"ImageType,omitempty"`
	ImageSize             int    `plist:"ImageSize,omitempty"`
	MountPath             string `plist:"MountPath,omitempty"`
	ImageSignature        []byte `plist:"ImageSignature,omitempty"`
	ImageTrustCache       []byte `plist:"ImageTrustCache,omitempty"`
	ImageInfoPlist        []byte `plist:"ImageInfoPlist,omitempty"`
	PersonalizedImageType string `plist:"PersonalizedImageType,omitempty"`
}

type MountResponse

type MountResponse struct {
	Status        string `plist:"Status,omitempty" json:"status,omitempty"`
	DetailedError string `plist:"DetailedError,omitempty" json:"detailed_error,omitempty"`
	Error         string `plist:"Error,omitempty" json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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