Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Close() error
- func (c *Client) DeveloperModeStatus() (bool, error)
- func (c *Client) Hangup() (bool, error)
- func (c *Client) ListImages() ([]ListImageEntryList, error)
- func (c *Client) LookupImage(imageType string) (*LookupImageResponse, error)
- func (c *Client) Mount(imageType string, signature []byte, trustCachePath, infoPlistPath string) error
- func (c *Client) Nonce(imageType string) (string, error)
- func (c *Client) PersonalizationIdentifiers(imageType string) (map[string]any, error)
- func (c *Client) PersonalizationManifest(imageType string, signature []byte) ([]byte, error)
- func (c *Client) RollCryptexNonce() error
- func (c *Client) RollPersonalizationNonce() error
- func (c *Client) Unmount(imageType, mountPath string, signature []byte) error
- func (c *Client) Upload(imageType string, imageData []byte, signature []byte) error
- type HangupResponse
- type ListImageEntryList
- type ListImageResponse
- type LookupImageRequest
- type LookupImageResponse
- type MountRequest
- type MountResponse
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 (*Client) DeveloperModeStatus ¶
func (*Client) ListImages ¶
func (c *Client) ListImages() ([]ListImageEntryList, error)
func (*Client) LookupImage ¶
func (c *Client) LookupImage(imageType string) (*LookupImageResponse, error)
func (*Client) PersonalizationIdentifiers ¶
func (*Client) PersonalizationManifest ¶
func (*Client) RollCryptexNonce ¶
func (*Client) RollPersonalizationNonce ¶
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 LookupImageResponse ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.