Documentation ¶
Index ¶
- func MarshalCommandPayload(cmd *CommandPayload) ([]byte, error)
- func UnmarshalCommandPayload(data []byte, payload *CommandPayload) error
- type AccountConfiguration
- type ActiveNSExtensions
- type AdminAccount
- type ApplyRedemptionCode
- type ClearPasscode
- type Command
- type CommandPayload
- type CommandRequest
- type DeleteUser
- type DeviceInformation
- type DeviceLock
- type EnableLostMode
- type EraseDevice
- type FileVaultUnlock
- type InstallApplication
- type InstallApplicationAttributes
- type InstallApplicationConfiguration
- type InstallApplicationOptions
- type InstallEnterpriseApplication
- type InstallMedia
- type InstallProfile
- type InstallProvisioningProfile
- type InstalledApplicationList
- type InviteToProgram
- type ManagedApplicationAttributes
- type ManagedApplicationConfiguration
- type ManagedApplicationFeedback
- type ManagedApplicationList
- type OSUpdate
- type RemoveApplication
- type RemoveMedia
- type RemoveProfile
- type RemoveProvisioningProfile
- type RequestMirroring
- type Restrictions
- type RotateFileVaultKey
- type ScheduleOSUpdate
- type ScheduleOSUpdateScan
- type SetAutoAdminPassword
- type SetFirmwarePassword
- type Setting
- type Settings
- type UnlockUserAccount
- type ValidateApplications
- type VerifyFirmwarePassword
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCommandPayload ¶
func MarshalCommandPayload(cmd *CommandPayload) ([]byte, error)
func UnmarshalCommandPayload ¶
func UnmarshalCommandPayload(data []byte, payload *CommandPayload) error
Types ¶
type AccountConfiguration ¶
type AccountConfiguration struct { SkipPrimarySetupAccountCreation bool `plist:",omitempty" json:"skip_primary_setup_account_creation,omitempty"` SetPrimarySetupAccountAsRegularUser bool `plist:",omitempty" json:"skip_primary_setup_account_as_regular_user,omitempty"` AutoSetupAdminAccounts []AdminAccount `plist:",omitempty" json:"auto_setup_admin_accounts,omitempty"` }
type ActiveNSExtensions ¶
type ActiveNSExtensions struct {
FilterExtensionPoints []string `plist:",omitempty json:"filter_extensions_points,omitempty"`
}
type AdminAccount ¶
type ApplyRedemptionCode ¶
type ClearPasscode ¶
type ClearPasscode struct {
UnlockToken []byte `json:"unlock_token"`
}
type Command ¶
type Command struct { RequestType string `json:"request_type"` InstallProfile *InstallProfile RemoveProfile *RemoveProfile InstallProvisioningProfile *InstallProvisioningProfile RemoveProvisioningProfile *RemoveProvisioningProfile InstalledApplicationList *InstalledApplicationList DeviceInformation *DeviceInformation DeviceLock *DeviceLock ClearPasscode *ClearPasscode EraseDevice *EraseDevice RequestMirroring *RequestMirroring Restrictions *Restrictions UnlockUserAccount *UnlockUserAccount DeleteUser *DeleteUser EnableLostMode *EnableLostMode InstallApplication *InstallApplication InstallEnterpriseApplication *InstallEnterpriseApplication AccountConfiguration *AccountConfiguration ApplyRedemptionCode *ApplyRedemptionCode ManagedApplicationList *ManagedApplicationList RemoveApplication *RemoveApplication InviteToProgram *InviteToProgram ValidateApplications *ValidateApplications InstallMedia *InstallMedia RemoveMedia *RemoveMedia Settings *Settings ManagedApplicationConfiguration *ManagedApplicationConfiguration ManagedApplicationAttributes *ManagedApplicationAttributes ManagedApplicationFeedback *ManagedApplicationFeedback SetFirmwarePassword *SetFirmwarePassword VerifyFirmwarePassword *VerifyFirmwarePassword SetAutoAdminPassword *SetAutoAdminPassword ScheduleOSUpdate *ScheduleOSUpdate ScheduleOSUpdateScan *ScheduleOSUpdateScan ActiveNSExtensions *ActiveNSExtensions RotateFileVaultKey *RotateFileVaultKey }
func (*Command) MarshalJSON ¶
func (*Command) MarshalPlist ¶
func (*Command) UnmarshalJSON ¶
func (*Command) UnmarshalPlist ¶
type CommandPayload ¶
type CommandPayload struct { CommandUUID string `json:"command_uuid"` Command *Command `json:"command"` }
func NewCommandPayload ¶
func NewCommandPayload(request *CommandRequest) (*CommandPayload, error)
type CommandRequest ¶
func (*CommandRequest) UnmarshalJSON ¶
func (c *CommandRequest) UnmarshalJSON(data []byte) error
type DeleteUser ¶
type DeviceInformation ¶
type DeviceInformation struct {
Queries []string `plist:",omitempty" json:"queries,omitempty"`
}
type DeviceLock ¶
type EnableLostMode ¶
type EraseDevice ¶
type FileVaultUnlock ¶
type InstallApplication ¶
type InstallApplication struct { ITunesStoreID *int64 `plist:"iTunesStoreID,omitempty" json:"itunes_store_id,omitempty"` Identifier *string `plist:",omitempty" json:"identifier,omitempty"` ManagementFlags *int `plist:",omitempty" json:"management_flags,omitempty"` ChangeManagementState *string `plist:",omitempty" json:"change_management_state,omitempty"` ManifestURL *string `plist:",omitempty" json:"manifest_url,omitempty"` Options *InstallApplicationOptions `plist:",omitempty" json:"options,omitempty"` Configuration *InstallApplicationConfiguration `plist:",omitempty" json:"configuration,omitempty"` Attributes *InstallApplicationAttributes `plist:",omitempty" json:"attributes,omitempty"` }
type InstallApplicationAttributes ¶
type InstallApplicationAttributes struct{}
type InstallApplicationConfiguration ¶
type InstallApplicationConfiguration struct{}
type InstallApplicationOptions ¶
type InstallApplicationOptions struct {
PurchaseMethod int64 `plist:",omitempty" json:"purchase_method,omitempty"`
}
type InstallEnterpriseApplication ¶ added in v1.3.1
type InstallEnterpriseApplication struct { Manifest *appmanifest.Manifest `plist:",omitempty" json:"manifest,omitempty"` ManifestURL *string `plist:",omitempty" json:"manifest_url,omitempty"` ManifestURLPinningCerts [][]byte `plist:",omitempty" json:"manifest_url_pinning_certs,omitempty"` PinningRevocationCheckRequired *bool `plist:",omitempty" json:"pinning_revocation_check_required,omitempty"` }
type InstallMedia ¶
type InstallProfile ¶
type InstallProfile struct {
Payload []byte `json:"payload,omitempty"`
}
InstallProfile is an InstallProfile MDM Command
type InstallProvisioningProfile ¶
type InstallProvisioningProfile struct {
ProvisioningProfile []byte `plist:",omitempty" json:"provisioning_profile,omitempty"`
}
type InviteToProgram ¶
type ManagedApplicationAttributes ¶
type ManagedApplicationAttributes struct {
Identifiers []string `plist:",omitempty" json:"identifiers,omitempty"`
}
type ManagedApplicationConfiguration ¶
type ManagedApplicationConfiguration struct {
Identifiers []string `plist:",omitempty" json:"identifiers,omitempty"`
}
type ManagedApplicationList ¶
type ManagedApplicationList struct {
Identifiers []string `plist:",omitempty" json:"identifiers,omitempty"`
}
type RemoveApplication ¶
type RemoveApplication struct {
Identifier string `plist:",omitempty" json:"identifier,omitempty"`
}
type RemoveMedia ¶
type RemoveProfile ¶
type RemoveProfile struct {
Identifier string `json:"identifier,omitempty"`
}
type RemoveProvisioningProfile ¶
type RemoveProvisioningProfile struct {
UUID string `json:"uuid"`
}
type RequestMirroring ¶
type RequestMirroring struct { DestinationName string `plist:",omitempty" json:"destination_name,omitempty"` DestinationDeviceID string `plist:",omitempty" json:"destination_device_id,omitempty"` ScanTime string `plist:",omitempty" json:"scan_time,omitempty"` Password string `plist:",omitempty" json:"password,omitempty"` }
type Restrictions ¶
type Restrictions struct {
ProfileRestrictions bool `json:"profile_restrictions"`
}
type RotateFileVaultKey ¶
type RotateFileVaultKey struct { KeyType string `plist:",omitempty" json:"key_type,omitempty"` FileVaultUnlock FileVaultUnlock `plist:",omitempty" json:"filevault_unlock,omitempty"` NewCertificate []byte `plist:",omitempty" json:"new_certificate,omitempty"` ReplyEncryptionCertificate []byte `plist:",omitempty" json:"reply_encryption_certificate,omitempty"` }
type ScheduleOSUpdate ¶
type ScheduleOSUpdate struct {
Updates []OSUpdate `plist:",omitempty" json:"updates,omitempty"`
}
type ScheduleOSUpdateScan ¶
type ScheduleOSUpdateScan struct {
Force bool `plist:",omitempty" json:"force,omitempty"`
}
type SetAutoAdminPassword ¶
type SetFirmwarePassword ¶
type Setting ¶
type Setting struct { Item string `json:"item"` Enabled *bool `plist:",omitempty" json:"enabled,omitempty"` DeviceName *string `plist:",omitempty" json:"device_name,omitempty"` HostName *string `plist:",omitempty" json:"hostname,omitempty"` Identifier *string `plist:",omitempty" json:"identifier"` Attributes map[string]string `plist:",omitempty" json:"attributes,omitempty"` Image []byte `plist:",omitempty" json:"image,omitempty"` Where *int `plist:",omitempty" json:"where,omitempty"` MDMOptions map[string]interface{} `plist:",omitempty" json:"mdm_options,omitempty"` PasscodeLockGracePeriod *int `plist:",omitempty" json:"passcode_lock_grace_period,omitempty"` MaximumResidentUsers *int `plist:",omitempty" json:"maximum_resident_users,omitempty"` }
type Settings ¶
type Settings struct {
Settings []Setting `plist:",omitempty" json:"settings,omitempty"`
}
type UnlockUserAccount ¶
type UnlockUserAccount struct {
UserName string `json:"username"`
}
type ValidateApplications ¶
type ValidateApplications struct {
Identifiers []string `plist:",omitempty" json:"identifiers,omitempty"`
}
type VerifyFirmwarePassword ¶
type VerifyFirmwarePassword struct {
Password string `plist:",omitempty" json:"password,omitempty"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.