Versions in this module Expand all Collapse all v0 v0.1.0 Mar 3, 2021 Changes in this version + const ClassCertificate + const ClassIdentity + const ClassKey + const KeychainSystem + const PayloadRequiresIdentities + const PayloadRequiresNetwork + func BucketGet(tx *bolt.Tx, bucket, key string) []byte + func BucketGetInt(tx *bolt.Tx, bucket, key string) int + func BucketGetKeysWithPrefix(tx *bolt.Tx, bucket string, prefix string, stripPrefix bool) []string + func BucketGetString(tx *bolt.Tx, bucket, key string) string + func BucketPutOrDelete(tx *bolt.Tx, bucket, key string, value []byte) error + func BucketPutOrDeleteInt(tx *bolt.Tx, bucket, key string, value int) error + func BucketPutOrDeleteString(tx *bolt.Tx, bucket, key, value string) error + func List(db *bolt.DB) (udids []string, err error) + type AuthenticationRequest struct + BuildVersion string + DeviceName string + EnrollmentID string + IMEI string + MEID string + MessageType string + Model string + ModelName string + OSVersion string + ProductName string + SerialNumber string + Topic string + UDID string + type ConnectRequest struct + CommandUUID string + ErrorChain []ErrorChain + RequestType string + Status string + UDID string + type ConnectResponse struct + Command ConnectResponseCommand + CommandUUID string + type ConnectResponseCommand struct + RequestType string + type Device struct + ComputerName string + MDMIdentityKeychainUUID string + MDMProfileIdentifier string + Serial string + UDID string + func Load(udid string, db *bolt.DB) (device *Device, err error) + func New(name string, db *bolt.DB) *Device + func (device *Device) InstallProfile(pb []byte) error + func (device *Device) MDMClient() (*MDMClient, error) + func (device *Device) RemoveProfile(profileID string) error + func (device *Device) Save() error + func (device *Device) SystemKeychain() *Keychain + func (device *Device) SystemProfileStore() *ProfileStore + func (device *Device) ValidateProfileInstall(p *cfgprofiles.Profile, fromMDM bool) error + type DeviceInfo struct + Command DeviceInfoCommand + CommandUUID string + type DeviceInfoCommand struct + Queries []string + type DeviceInfoResponse struct + QueryResponses map[string]string + type ErrorChain struct + ErrorCode int + ErrorDomain string + LocalizedDescription string + USEnglishDescription string + type InstallProfile struct + Command InstallProfileCommand + CommandUUID string + type InstallProfileCommand struct + Payload []byte + RequestRequiresNetworkTether bool + type InstallProfileResponse struct + RequestType string + type Keychain struct + DB *bolt.DB + ID string + Type string + func NewKeychain(id, kcType string, db *bolt.DB) *Keychain + type KeychainItem struct + Certificate *x509.Certificate + Class int + IdentityCertificateUUID string + IdentityKeyUUID string + Item []byte + Key *rsa.PrivateKey + Keychain *Keychain + UUID string + func LoadKeychainItem(kc *Keychain, uuid string) (kci *KeychainItem, err error) + func NewKeychainItem(kc *Keychain, class int) *KeychainItem + func (kci *KeychainItem) Delete() error + func (kci *KeychainItem) Save() error + type MDMClient struct + Device *Device + IdentityCertificate *x509.Certificate + IdentityPrivateKey *rsa.PrivateKey + MDMPayload *cfgprofiles.MDMPayload + func (c *MDMClient) Connect() error + type ProfileListResponse struct + ProfileList []*profileListProfile + type ProfileStore struct + DB *bolt.DB + ID string + func NewProfileStore(id string, db *bolt.DB) *ProfileStore + func (ps *ProfileStore) ListUUIDs() (uuids []string, err error) + func (ps *ProfileStore) Load(id string) (p *cfgprofiles.Profile, err error) + type TokenUpdateRequest struct + AwaitingConfiguration bool + EnrollmentID string + EnrollmentUserID string + MessageType string + NotOnConsole bool + PushMagic string + Token []byte + Topic string + UDID string + UnlockToken []byte + UserID string + UserLongName string + UserShortName string