Documentation
¶
Overview ¶
Package syncservices provides a fluent Go API over the macOS SyncServices framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- Constants
- func CancelPreviousBeginSessionWithClient(client *ISyncClient)
- func ChangeWithTypeRecordIdentifierChanges(type_ int, recordIdentifier string, changes obj.Object) obj.Object
- func ISyncAvailabilityChangedNotification() obj.Object
- func ISyncChangePropertyActionKey() obj.Object
- func ISyncChangePropertyClear() obj.Object
- func ISyncChangePropertyNameKey() obj.Object
- func ISyncChangePropertySet() obj.Object
- func ISyncChangePropertyValueIsDefaultKey() obj.Object
- func ISyncChangePropertyValueKey() obj.Object
- func ISyncClientTypeApplication() obj.Object
- func ISyncClientTypeDevice() obj.Object
- func ISyncClientTypePeer() obj.Object
- func ISyncClientTypeServer() obj.Object
- func ISyncErrorDomain() obj.Object
- func ISyncInvalidArgumentsException() obj.Object
- func ISyncInvalidEntityException() obj.Object
- func ISyncInvalidRecordException() obj.Object
- func ISyncInvalidRecordIdentifiersKey() obj.Object
- func ISyncInvalidRecordReasonsKey() obj.Object
- func ISyncInvalidRecordsKey() obj.Object
- func ISyncInvalidSchemaException() obj.Object
- func ISyncRecordEntityNameKey() obj.Object
- func ISyncServerUnavailableException() obj.Object
- func ISyncSessionCancelledException() obj.Object
- func ISyncSessionUnavailableException() obj.Object
- func ISyncUnsupportedEntityException() obj.Object
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FilesecProperty
- type Flag
- type ISyncChange
- func (isc *ISyncChange) Changes() obj.Object
- func (isc *ISyncChange) Description() string
- func (isc *ISyncChange) IsEqual(other obj.Object) bool
- func (isc *ISyncChange) IsKind(className string) bool
- func (isc *ISyncChange) Record() obj.Object
- func (isc *ISyncChange) RecordIdentifier() string
- func (isc *ISyncChange) String() string
- func (isc *ISyncChange) Type() int
- type ISyncChangeTypedeprecated
- type ISyncClient
- func (isc *ISyncClient) CanPullChangesForEntityName(entityName string) bool
- func (isc *ISyncClient) CanPushChangesForEntityName(entityName string) bool
- func (isc *ISyncClient) ClientIdentifier() string
- func (isc *ISyncClient) ClientType() string
- func (isc *ISyncClient) Description() string
- func (isc *ISyncClient) DisplayName() string
- func (isc *ISyncClient) EnabledEntityNames() obj.Object
- func (isc *ISyncClient) Filters() obj.Object
- func (isc *ISyncClient) FormatsRelationships() bool
- func (isc *ISyncClient) ImagePath() string
- func (isc *ISyncClient) IsEnabledForEntityName(entityName string) bool
- func (isc *ISyncClient) IsEqual(other obj.Object) bool
- func (isc *ISyncClient) IsKind(className string) bool
- func (isc *ISyncClient) LastSyncDateForEntityName(entityName string) time.Time
- func (isc *ISyncClient) LastSyncStatusForEntityName(entityName string) int
- func (isc *ISyncClient) ObjectForKey(key string) obj.Object
- func (isc *ISyncClient) SetDisplayName(displayName string)
- func (isc *ISyncClient) SetEnabledForEntityNames(flag bool, entityNames obj.Object)
- func (isc *ISyncClient) SetFilters(filters obj.Object)
- func (isc *ISyncClient) SetFormatsRelationships(flag bool)
- func (isc *ISyncClient) SetImagePath(path string)
- func (isc *ISyncClient) SetShouldReplaceClientRecordsForEntityNames(flag bool, entityNames obj.Object)
- func (isc *ISyncClient) SetShouldSynchronizeWithClientsOfType(flag bool, clientType string)
- func (isc *ISyncClient) SetSyncAlertToolPath(path string)
- func (isc *ISyncClient) ShouldReplaceClientRecordsForEntityName(entityName string) bool
- func (isc *ISyncClient) ShouldSynchronizeWithClientsOfType(clientType string) bool
- func (isc *ISyncClient) String() string
- func (isc *ISyncClient) SupportedEntityNames() obj.Object
- func (isc *ISyncClient) SyncAlertToolPath() string
- type ISyncFilter
- type ISyncFiltering
- type ISyncManager
- func (ism *ISyncManager) AddRequestMode(mode string)
- func (ism *ISyncManager) ClientWithIdentifier(clientId string) *ISyncClient
- func (ism *ISyncManager) ClientWithIdentifierNeedsSyncing(clientId string, flag bool)
- func (ism *ISyncManager) Description() string
- func (ism *ISyncManager) IsEnabled() bool
- func (ism *ISyncManager) IsEqual(other obj.Object) bool
- func (ism *ISyncManager) IsKind(className string) bool
- func (ism *ISyncManager) RegisterClientWithIdentifierDescriptionFilePath(clientId string, descriptionFilePath string) *ISyncClient
- func (ism *ISyncManager) RegisterSchemaWithBundlePath(bundlePath string) bool
- func (ism *ISyncManager) RemoveRequestMode(mode string)
- func (ism *ISyncManager) RequestModes() obj.Object
- func (ism *ISyncManager) SnapshotOfRecordsInTruthWithEntityNamesUsingIdentifiersForClient(entityNames obj.Object, client *ISyncClient) *ISyncRecordSnapshot
- func (ism *ISyncManager) String() string
- func (ism *ISyncManager) SyncDisabledReason() unsafe.Pointer
- func (ism *ISyncManager) UnregisterClient(client *ISyncClient)
- func (ism *ISyncManager) UnregisterSchemaWithName(schemaName string)
- type ISyncRecordSnapshot
- func (isrs *ISyncRecordSnapshot) Description() string
- func (isrs *ISyncRecordSnapshot) IsEqual(other obj.Object) bool
- func (isrs *ISyncRecordSnapshot) IsKind(className string) bool
- func (isrs *ISyncRecordSnapshot) RecordIdentifierForReferenceIsModified(reference unsafe.Pointer) (result string, pModified bool)
- func (isrs *ISyncRecordSnapshot) RecordReferenceForRecordWithIdentifier(identifier string) unsafe.Pointer
- func (isrs *ISyncRecordSnapshot) RecordsWithIdentifiers(recordIds obj.Object) obj.Object
- func (isrs *ISyncRecordSnapshot) RecordsWithMatchingAttributes(attributes obj.Object) obj.Object
- func (isrs *ISyncRecordSnapshot) SourceIdentifiersForRelationshipNameWithTargetIdentifier(relationshipName string, sourceId string) obj.Object
- func (isrs *ISyncRecordSnapshot) String() string
- func (isrs *ISyncRecordSnapshot) TargetIdentifiersForRelationshipNameWithSourceIdentifier(relationshipName string, sourceId string) obj.Object
- type ISyncServerDisabledReasondeprecated
- type ISyncSession
- func BeginSessionWithClientEntityNamesBeforeDate(client *ISyncClient, entityNames obj.Object, date time.Time) *ISyncSession
- func BeginSessionWithClientEntityNamesBeforeDateLastAnchors(client *ISyncClient, entityNames obj.Object, date time.Time, ...) *ISyncSession
- func ISyncSessionFromID(id objc.ID) *ISyncSession
- func NewISyncSession() *ISyncSession
- func (iss *ISyncSession) CancelSyncing()
- func (iss *ISyncSession) ChangeEnumeratorForEntityNames(entityNames obj.Object) obj.Object
- func (iss *ISyncSession) ClientAcceptedChangesForRecordWithIdentifierFormattedRecordNewRecordIdentifier(recordId string, formattedRecord obj.Object, recordId2 string)
- func (iss *ISyncSession) ClientChangedRecordIdentifiers(oldToNew obj.Object)
- func (iss *ISyncSession) ClientCommittedAcceptedChanges()
- func (iss *ISyncSession) ClientCommittedAcceptedChangesWithNextAnchors(anchors obj.Object)
- func (iss *ISyncSession) ClientDidResetEntityNames(entityNames obj.Object)
- func (iss *ISyncSession) ClientFinishedPushingChangesWithNextAnchors(anchors obj.Object)
- func (iss *ISyncSession) ClientInfoForRecordWithIdentifier(recordId string) obj.Object
- func (iss *ISyncSession) ClientLostRecordWithIdentifierShouldReplaceOnNextSync(recordId string, flag bool)
- func (iss *ISyncSession) ClientRefusedChangesForRecordWithIdentifier(recordId string)
- func (iss *ISyncSession) ClientWantsToPushAllRecordsForEntityNames(entityNames obj.Object)
- func (iss *ISyncSession) DeleteRecordWithIdentifier(recordId string)
- func (iss *ISyncSession) Description() string
- func (iss *ISyncSession) FinishSyncing()
- func (iss *ISyncSession) IsCancelled() bool
- func (iss *ISyncSession) IsEqual(other obj.Object) bool
- func (iss *ISyncSession) IsKind(className string) bool
- func (iss *ISyncSession) Ping()
- func (iss *ISyncSession) PrepareToPullChangesForEntityNamesBeforeDate(entityNames obj.Object, date time.Time) bool
- func (iss *ISyncSession) PushChange(change *ISyncChange)
- func (iss *ISyncSession) PushChangesFromRecordWithIdentifier(record obj.Object, recordId string)
- func (iss *ISyncSession) ShouldPullChangesForEntityName(entityName string) bool
- func (iss *ISyncSession) ShouldPushAllRecordsForEntityName(entityName string) bool
- func (iss *ISyncSession) ShouldPushChangesForEntityName(entityName string) bool
- func (iss *ISyncSession) ShouldReplaceAllRecordsOnClientForEntityName(entityName string) bool
- func (iss *ISyncSession) SnapshotOfRecordsInTruth() *ISyncRecordSnapshot
- func (iss *ISyncSession) String() string
- type ISyncSessionDriver
- func (issd *ISyncSessionDriver) Client() *ISyncClient
- func (issd *ISyncSessionDriver) Delegate() obj.Object
- func (issd *ISyncSessionDriver) Description() string
- func (issd *ISyncSessionDriver) FinishSyncing()
- func (issd *ISyncSessionDriver) HandlesSyncAlerts() bool
- func (issd *ISyncSessionDriver) IsEqual(other obj.Object) bool
- func (issd *ISyncSessionDriver) IsKind(className string) bool
- func (issd *ISyncSessionDriver) LastError() unsafe.Pointer
- func (issd *ISyncSessionDriver) Session() *ISyncSession
- func (issd *ISyncSessionDriver) SetDelegate(delegate obj.Object)
- func (issd *ISyncSessionDriver) SetHandlesSyncAlerts(yesOrNo bool)
- func (issd *ISyncSessionDriver) StartAsynchronousSync() error
- func (issd *ISyncSessionDriver) String() string
- func (issd *ISyncSessionDriver) Sync() bool
- type ISyncSessionDriverChangeResult
- type ISyncSessionDriverDataSource
- type ISyncSessionDriverMode
- type ISyncStatusdeprecated
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NSPersistentStoreCoordinatorSyncing
- type OSClockid
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
const ( ISyncSessionClientAlreadySyncingError = 100 ISyncSessionDriverFatalError = 300 ISyncSessionDriverPullFailureError = 201 ISyncSessionDriverRegistrationError = 200 ISyncSessionUserCanceledSessionError = 101 )
Variables ¶
This section is empty.
Functions ¶
func CancelPreviousBeginSessionWithClient ¶ added in v0.17.0
func CancelPreviousBeginSessionWithClient(client *ISyncClient)
CancelPreviousBeginSessionWithClient cancels previous begin session with client.
func ChangeWithTypeRecordIdentifierChanges ¶ added in v0.17.0
func ChangeWithTypeRecordIdentifierChanges(type_ int, recordIdentifier string, changes obj.Object) obj.Object
ChangeWithTypeRecordIdentifierChanges wraps the corresponding Objective-C method.
func ISyncAvailabilityChangedNotification ¶
ISyncAvailabilityChangedNotification returns the string constant ISyncAvailabilityChangedNotification, for use as a dictionary key or argument.
func ISyncChangePropertyActionKey ¶
ISyncChangePropertyActionKey returns the string constant ISyncChangePropertyActionKey, for use as a dictionary key or argument.
func ISyncChangePropertyClear ¶
ISyncChangePropertyClear returns the string constant ISyncChangePropertyClear, for use as a dictionary key or argument.
func ISyncChangePropertyNameKey ¶
ISyncChangePropertyNameKey returns the string constant ISyncChangePropertyNameKey, for use as a dictionary key or argument.
func ISyncChangePropertySet ¶
ISyncChangePropertySet returns the string constant ISyncChangePropertySet, for use as a dictionary key or argument.
func ISyncChangePropertyValueIsDefaultKey ¶
ISyncChangePropertyValueIsDefaultKey returns the string constant ISyncChangePropertyValueIsDefaultKey, for use as a dictionary key or argument.
func ISyncChangePropertyValueKey ¶
ISyncChangePropertyValueKey returns the string constant ISyncChangePropertyValueKey, for use as a dictionary key or argument.
func ISyncClientTypeApplication ¶
ISyncClientTypeApplication returns the string constant ISyncClientTypeApplication, for use as a dictionary key or argument.
func ISyncClientTypeDevice ¶
ISyncClientTypeDevice returns the string constant ISyncClientTypeDevice, for use as a dictionary key or argument.
func ISyncClientTypePeer ¶
ISyncClientTypePeer returns the string constant ISyncClientTypePeer, for use as a dictionary key or argument.
func ISyncClientTypeServer ¶
ISyncClientTypeServer returns the string constant ISyncClientTypeServer, for use as a dictionary key or argument.
func ISyncErrorDomain ¶
ISyncErrorDomain returns the string constant ISyncErrorDomain, for use as a dictionary key or argument.
func ISyncInvalidArgumentsException ¶
ISyncInvalidArgumentsException returns the string constant ISyncInvalidArgumentsException, for use as a dictionary key or argument.
func ISyncInvalidEntityException ¶
ISyncInvalidEntityException returns the string constant ISyncInvalidEntityException, for use as a dictionary key or argument.
func ISyncInvalidRecordException ¶
ISyncInvalidRecordException returns the string constant ISyncInvalidRecordException, for use as a dictionary key or argument.
func ISyncInvalidRecordIdentifiersKey ¶
ISyncInvalidRecordIdentifiersKey returns the string constant ISyncInvalidRecordIdentifiersKey, for use as a dictionary key or argument.
func ISyncInvalidRecordReasonsKey ¶
ISyncInvalidRecordReasonsKey returns the string constant ISyncInvalidRecordReasonsKey, for use as a dictionary key or argument.
func ISyncInvalidRecordsKey ¶
ISyncInvalidRecordsKey returns the string constant ISyncInvalidRecordsKey, for use as a dictionary key or argument.
func ISyncInvalidSchemaException ¶
ISyncInvalidSchemaException returns the string constant ISyncInvalidSchemaException, for use as a dictionary key or argument.
func ISyncRecordEntityNameKey ¶
ISyncRecordEntityNameKey returns the string constant ISyncRecordEntityNameKey, for use as a dictionary key or argument.
func ISyncServerUnavailableException ¶
ISyncServerUnavailableException returns the string constant ISyncServerUnavailableException, for use as a dictionary key or argument.
func ISyncSessionCancelledException ¶
ISyncSessionCancelledException returns the string constant ISyncSessionCancelledException, for use as a dictionary key or argument.
func ISyncSessionUnavailableException ¶
ISyncSessionUnavailableException returns the string constant ISyncSessionUnavailableException, for use as a dictionary key or argument.
func ISyncUnsupportedEntityException ¶
ISyncUnsupportedEntityException returns the string constant ISyncUnsupportedEntityException, for use as a dictionary key or argument.
Types ¶
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type ISyncChange ¶
ISyncChange is an idiomatic wrapper over the Objective-C class ISyncChange.
func ISyncChangeFromID ¶
func ISyncChangeFromID(id objc.ID) *ISyncChange
ISyncChangeFromID adopts an existing Objective-C object as a ISyncChange (nil for 0), retaining it and registering a release finalizer.
func NewISyncChangeWithChangeTypeRecordIdentifierChanges ¶ added in v0.17.0
func NewISyncChangeWithChangeTypeRecordIdentifierChanges(type_ int, recordIdentifier string, changes obj.Object) *ISyncChange
NewISyncChangeWithChangeTypeRecordIdentifierChanges creates a new ISyncChange.
func (*ISyncChange) Changes ¶
func (isc *ISyncChange) Changes() obj.Object
Changes returns the changes.
func (*ISyncChange) Description ¶ added in v0.17.0
func (isc *ISyncChange) Description() string
Description returns the object's -description text.
func (*ISyncChange) IsEqual ¶ added in v0.17.0
func (isc *ISyncChange) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ISyncChange) IsKind ¶ added in v0.17.0
func (isc *ISyncChange) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ISyncChange) RecordIdentifier ¶
func (isc *ISyncChange) RecordIdentifier() string
RecordIdentifier returns the record identifier.
func (*ISyncChange) String ¶ added in v0.17.0
func (isc *ISyncChange) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ISyncChangeType
deprecated
added in
v0.17.0
type ISyncChangeType int32
Deprecated: since macOS 10.7.
const ( // Deprecated: since macOS 10.7. ISyncChangeTypeNone ISyncChangeType = 0 // Deprecated: since macOS 10.7. ISyncChangeTypeAdd ISyncChangeType = 1 // Deprecated: since macOS 10.7. ISyncChangeTypeModify ISyncChangeType = 2 ISyncChangeTypeDelete ISyncChangeType = 3 )
func (ISyncChangeType) String ¶ added in v0.17.0
func (e ISyncChangeType) String() string
String returns the ISyncChangeType constant's name, or its numeric form when the value is not a known constant.
type ISyncClient ¶
ISyncClient is an idiomatic wrapper over the Objective-C class ISyncClient.
func ISyncClientFromID ¶
func ISyncClientFromID(id objc.ID) *ISyncClient
ISyncClientFromID adopts an existing Objective-C object as a ISyncClient (nil for 0), retaining it and registering a release finalizer.
func NewISyncClient ¶ added in v0.17.0
func NewISyncClient() *ISyncClient
NewISyncClient creates a new ISyncClient.
func (*ISyncClient) CanPullChangesForEntityName ¶
func (isc *ISyncClient) CanPullChangesForEntityName(entityName string) bool
CanPullChangesForEntityName wraps the corresponding Objective-C method.
func (*ISyncClient) CanPushChangesForEntityName ¶
func (isc *ISyncClient) CanPushChangesForEntityName(entityName string) bool
CanPushChangesForEntityName wraps the corresponding Objective-C method.
func (*ISyncClient) ClientIdentifier ¶
func (isc *ISyncClient) ClientIdentifier() string
ClientIdentifier returns the client identifier.
func (*ISyncClient) ClientType ¶
func (isc *ISyncClient) ClientType() string
ClientType returns the client type.
func (*ISyncClient) Description ¶ added in v0.17.0
func (isc *ISyncClient) Description() string
Description returns the object's -description text.
func (*ISyncClient) DisplayName ¶
func (isc *ISyncClient) DisplayName() string
DisplayName returns the display name.
func (*ISyncClient) EnabledEntityNames ¶
func (isc *ISyncClient) EnabledEntityNames() obj.Object
EnabledEntityNames returns the enabled entity names.
func (*ISyncClient) Filters ¶
func (isc *ISyncClient) Filters() obj.Object
Filters returns the filters.
func (*ISyncClient) FormatsRelationships ¶
func (isc *ISyncClient) FormatsRelationships() bool
FormatsRelationships wraps the corresponding Objective-C method.
func (*ISyncClient) ImagePath ¶
func (isc *ISyncClient) ImagePath() string
ImagePath returns the image path.
func (*ISyncClient) IsEnabledForEntityName ¶
func (isc *ISyncClient) IsEnabledForEntityName(entityName string) bool
IsEnabledForEntityName wraps the corresponding Objective-C method.
func (*ISyncClient) IsEqual ¶ added in v0.17.0
func (isc *ISyncClient) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ISyncClient) IsKind ¶ added in v0.17.0
func (isc *ISyncClient) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ISyncClient) LastSyncDateForEntityName ¶
func (isc *ISyncClient) LastSyncDateForEntityName(entityName string) time.Time
LastSyncDateForEntityName wraps the corresponding Objective-C method.
func (*ISyncClient) LastSyncStatusForEntityName ¶
func (isc *ISyncClient) LastSyncStatusForEntityName(entityName string) int
LastSyncStatusForEntityName wraps the corresponding Objective-C method.
func (*ISyncClient) ObjectForKey ¶
func (isc *ISyncClient) ObjectForKey(key string) obj.Object
ObjectForKey wraps the corresponding Objective-C method.
func (*ISyncClient) SetDisplayName ¶
func (isc *ISyncClient) SetDisplayName(displayName string)
SetDisplayName wraps the corresponding Objective-C method.
func (*ISyncClient) SetEnabledForEntityNames ¶
func (isc *ISyncClient) SetEnabledForEntityNames(flag bool, entityNames obj.Object)
SetEnabledForEntityNames wraps the corresponding Objective-C method.
func (*ISyncClient) SetFilters ¶
func (isc *ISyncClient) SetFilters(filters obj.Object)
SetFilters wraps the corresponding Objective-C method.
func (*ISyncClient) SetFormatsRelationships ¶
func (isc *ISyncClient) SetFormatsRelationships(flag bool)
SetFormatsRelationships wraps the corresponding Objective-C method.
func (*ISyncClient) SetImagePath ¶
func (isc *ISyncClient) SetImagePath(path string)
SetImagePath wraps the corresponding Objective-C method.
func (*ISyncClient) SetShouldReplaceClientRecordsForEntityNames ¶
func (isc *ISyncClient) SetShouldReplaceClientRecordsForEntityNames(flag bool, entityNames obj.Object)
SetShouldReplaceClientRecordsForEntityNames wraps the corresponding Objective-C method.
func (*ISyncClient) SetShouldSynchronizeWithClientsOfType ¶
func (isc *ISyncClient) SetShouldSynchronizeWithClientsOfType(flag bool, clientType string)
SetShouldSynchronizeWithClientsOfType wraps the corresponding Objective-C method.
func (*ISyncClient) SetSyncAlertToolPath ¶
func (isc *ISyncClient) SetSyncAlertToolPath(path string)
SetSyncAlertToolPath wraps the corresponding Objective-C method.
func (*ISyncClient) ShouldReplaceClientRecordsForEntityName ¶
func (isc *ISyncClient) ShouldReplaceClientRecordsForEntityName(entityName string) bool
ShouldReplaceClientRecordsForEntityName wraps the corresponding Objective-C method.
func (*ISyncClient) ShouldSynchronizeWithClientsOfType ¶
func (isc *ISyncClient) ShouldSynchronizeWithClientsOfType(clientType string) bool
ShouldSynchronizeWithClientsOfType wraps the corresponding Objective-C method.
func (*ISyncClient) String ¶ added in v0.17.0
func (isc *ISyncClient) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ISyncClient) SupportedEntityNames ¶
func (isc *ISyncClient) SupportedEntityNames() obj.Object
SupportedEntityNames returns the supported entity names.
func (*ISyncClient) SyncAlertToolPath ¶
func (isc *ISyncClient) SyncAlertToolPath() string
SyncAlertToolPath returns the sync alert tool path.
type ISyncFilter ¶
ISyncFilter is an idiomatic wrapper over the Objective-C class ISyncFilter.
func ISyncFilterFromID ¶
func ISyncFilterFromID(id objc.ID) *ISyncFilter
ISyncFilterFromID adopts an existing Objective-C object as a ISyncFilter (nil for 0), retaining it and registering a release finalizer.
func NewISyncFilter ¶ added in v0.17.0
func NewISyncFilter() *ISyncFilter
NewISyncFilter creates a new ISyncFilter.
func (*ISyncFilter) Description ¶ added in v0.17.0
func (isf *ISyncFilter) Description() string
Description returns the object's -description text.
func (*ISyncFilter) IsEqual ¶ added in v0.17.0
func (isf *ISyncFilter) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ISyncFilter) IsKind ¶ added in v0.17.0
func (isf *ISyncFilter) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ISyncFilter) String ¶ added in v0.17.0
func (isf *ISyncFilter) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ISyncFiltering ¶
type ISyncFiltering interface {
IsEqual(anotherFilter obj.Object) bool
SupportedEntityNames() obj.Object
ShouldApplyRecordWithRecordIdentifier(record obj.Object, recordId string) bool
}
ISyncFiltering is the Go form of the Objective-C protocol ISyncFiltering.
type ISyncManager ¶
ISyncManager is an idiomatic wrapper over the Objective-C class ISyncManager.
func ISyncManagerFromID ¶
func ISyncManagerFromID(id objc.ID) *ISyncManager
ISyncManagerFromID adopts an existing Objective-C object as a ISyncManager (nil for 0), retaining it and registering a release finalizer.
func NewISyncManager ¶ added in v0.17.0
func NewISyncManager() *ISyncManager
NewISyncManager creates a new ISyncManager.
func SharedManager ¶ added in v0.17.0
func SharedManager() *ISyncManager
SharedManager returns the shared manager.
func (*ISyncManager) AddRequestMode ¶
func (ism *ISyncManager) AddRequestMode(mode string)
AddRequestMode adds request mode.
func (*ISyncManager) ClientWithIdentifier ¶
func (ism *ISyncManager) ClientWithIdentifier(clientId string) *ISyncClient
ClientWithIdentifier wraps the corresponding Objective-C method.
func (*ISyncManager) ClientWithIdentifierNeedsSyncing ¶
func (ism *ISyncManager) ClientWithIdentifierNeedsSyncing(clientId string, flag bool)
ClientWithIdentifierNeedsSyncing wraps the corresponding Objective-C method.
func (*ISyncManager) Description ¶ added in v0.17.0
func (ism *ISyncManager) Description() string
Description returns the object's -description text.
func (*ISyncManager) IsEnabled ¶
func (ism *ISyncManager) IsEnabled() bool
IsEnabled reports whether the object is enabled.
func (*ISyncManager) IsEqual ¶ added in v0.17.0
func (ism *ISyncManager) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ISyncManager) IsKind ¶ added in v0.17.0
func (ism *ISyncManager) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ISyncManager) RegisterClientWithIdentifierDescriptionFilePath ¶
func (ism *ISyncManager) RegisterClientWithIdentifierDescriptionFilePath(clientId string, descriptionFilePath string) *ISyncClient
RegisterClientWithIdentifierDescriptionFilePath registers client with identifier description file path.
func (*ISyncManager) RegisterSchemaWithBundlePath ¶
func (ism *ISyncManager) RegisterSchemaWithBundlePath(bundlePath string) bool
RegisterSchemaWithBundlePath registers schema with bundle path.
func (*ISyncManager) RemoveRequestMode ¶
func (ism *ISyncManager) RemoveRequestMode(mode string)
RemoveRequestMode removes request mode.
func (*ISyncManager) RequestModes ¶
func (ism *ISyncManager) RequestModes() obj.Object
RequestModes returns the request modes.
func (*ISyncManager) SnapshotOfRecordsInTruthWithEntityNamesUsingIdentifiersForClient ¶
func (ism *ISyncManager) SnapshotOfRecordsInTruthWithEntityNamesUsingIdentifiersForClient(entityNames obj.Object, client *ISyncClient) *ISyncRecordSnapshot
SnapshotOfRecordsInTruthWithEntityNamesUsingIdentifiersForClient wraps the corresponding Objective-C method.
func (*ISyncManager) String ¶ added in v0.17.0
func (ism *ISyncManager) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ISyncManager) SyncDisabledReason ¶
func (ism *ISyncManager) SyncDisabledReason() unsafe.Pointer
SyncDisabledReason returns the sync disabled reason.
func (*ISyncManager) UnregisterClient ¶
func (ism *ISyncManager) UnregisterClient(client *ISyncClient)
UnregisterClient unregisters client.
func (*ISyncManager) UnregisterSchemaWithName ¶
func (ism *ISyncManager) UnregisterSchemaWithName(schemaName string)
UnregisterSchemaWithName unregisters schema with name.
type ISyncRecordSnapshot ¶
ISyncRecordSnapshot is an idiomatic wrapper over the Objective-C class ISyncRecordSnapshot.
func ISyncRecordSnapshotFromID ¶
func ISyncRecordSnapshotFromID(id objc.ID) *ISyncRecordSnapshot
ISyncRecordSnapshotFromID adopts an existing Objective-C object as a ISyncRecordSnapshot (nil for 0), retaining it and registering a release finalizer.
func NewISyncRecordSnapshot ¶ added in v0.17.0
func NewISyncRecordSnapshot() *ISyncRecordSnapshot
NewISyncRecordSnapshot creates a new ISyncRecordSnapshot.
func (*ISyncRecordSnapshot) Description ¶ added in v0.17.0
func (isrs *ISyncRecordSnapshot) Description() string
Description returns the object's -description text.
func (*ISyncRecordSnapshot) IsEqual ¶ added in v0.17.0
func (isrs *ISyncRecordSnapshot) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ISyncRecordSnapshot) IsKind ¶ added in v0.17.0
func (isrs *ISyncRecordSnapshot) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ISyncRecordSnapshot) RecordIdentifierForReferenceIsModified ¶
func (isrs *ISyncRecordSnapshot) RecordIdentifierForReferenceIsModified(reference unsafe.Pointer) (result string, pModified bool)
RecordIdentifierForReferenceIsModified wraps the corresponding Objective-C method.
func (*ISyncRecordSnapshot) RecordReferenceForRecordWithIdentifier ¶
func (isrs *ISyncRecordSnapshot) RecordReferenceForRecordWithIdentifier(identifier string) unsafe.Pointer
RecordReferenceForRecordWithIdentifier wraps the corresponding Objective-C method.
func (*ISyncRecordSnapshot) RecordsWithIdentifiers ¶
func (isrs *ISyncRecordSnapshot) RecordsWithIdentifiers(recordIds obj.Object) obj.Object
RecordsWithIdentifiers wraps the corresponding Objective-C method.
func (*ISyncRecordSnapshot) RecordsWithMatchingAttributes ¶
func (isrs *ISyncRecordSnapshot) RecordsWithMatchingAttributes(attributes obj.Object) obj.Object
RecordsWithMatchingAttributes wraps the corresponding Objective-C method.
func (*ISyncRecordSnapshot) SourceIdentifiersForRelationshipNameWithTargetIdentifier ¶
func (isrs *ISyncRecordSnapshot) SourceIdentifiersForRelationshipNameWithTargetIdentifier(relationshipName string, sourceId string) obj.Object
SourceIdentifiersForRelationshipNameWithTargetIdentifier wraps the corresponding Objective-C method.
func (*ISyncRecordSnapshot) String ¶ added in v0.17.0
func (isrs *ISyncRecordSnapshot) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ISyncRecordSnapshot) TargetIdentifiersForRelationshipNameWithSourceIdentifier ¶
func (isrs *ISyncRecordSnapshot) TargetIdentifiersForRelationshipNameWithSourceIdentifier(relationshipName string, sourceId string) obj.Object
TargetIdentifiersForRelationshipNameWithSourceIdentifier wraps the corresponding Objective-C method.
type ISyncServerDisabledReason
deprecated
type ISyncServerDisabledReason int32
Deprecated: since macOS 10.7.
const ( // Deprecated: since macOS 10.7. ISyncServerDisabledReasonNone ISyncServerDisabledReason = 1000 // Deprecated: since macOS 10.7. ISyncServerDisabledReasonByPreference ISyncServerDisabledReason = 1001 ISyncServerDisabledReasonUnresponsive ISyncServerDisabledReason = 1003 ISyncServerDisabledReasonUnknown ISyncServerDisabledReason = 1004 )
func (ISyncServerDisabledReason) String ¶
func (e ISyncServerDisabledReason) String() string
String returns the ISyncServerDisabledReason constant's name, or its numeric form when the value is not a known constant.
type ISyncSession ¶
ISyncSession is an idiomatic wrapper over the Objective-C class ISyncSession.
func BeginSessionWithClientEntityNamesBeforeDate ¶ added in v0.17.0
func BeginSessionWithClientEntityNamesBeforeDate(client *ISyncClient, entityNames obj.Object, date time.Time) *ISyncSession
BeginSessionWithClientEntityNamesBeforeDate begins session with client entity names before date.
func BeginSessionWithClientEntityNamesBeforeDateLastAnchors ¶ added in v0.17.0
func BeginSessionWithClientEntityNamesBeforeDateLastAnchors(client *ISyncClient, entityNames obj.Object, date time.Time, anchors obj.Object) *ISyncSession
BeginSessionWithClientEntityNamesBeforeDateLastAnchors begins session with client entity names before date last anchors.
func ISyncSessionFromID ¶
func ISyncSessionFromID(id objc.ID) *ISyncSession
ISyncSessionFromID adopts an existing Objective-C object as a ISyncSession (nil for 0), retaining it and registering a release finalizer.
func NewISyncSession ¶ added in v0.17.0
func NewISyncSession() *ISyncSession
NewISyncSession creates a new ISyncSession.
func (*ISyncSession) CancelSyncing ¶
func (iss *ISyncSession) CancelSyncing()
CancelSyncing cancels syncing.
func (*ISyncSession) ChangeEnumeratorForEntityNames ¶
func (iss *ISyncSession) ChangeEnumeratorForEntityNames(entityNames obj.Object) obj.Object
ChangeEnumeratorForEntityNames wraps the corresponding Objective-C method.
func (*ISyncSession) ClientAcceptedChangesForRecordWithIdentifierFormattedRecordNewRecordIdentifier ¶
func (iss *ISyncSession) ClientAcceptedChangesForRecordWithIdentifierFormattedRecordNewRecordIdentifier(recordId string, formattedRecord obj.Object, recordId2 string)
ClientAcceptedChangesForRecordWithIdentifierFormattedRecordNewRecordIdentifier wraps the corresponding Objective-C method.
func (*ISyncSession) ClientChangedRecordIdentifiers ¶
func (iss *ISyncSession) ClientChangedRecordIdentifiers(oldToNew obj.Object)
ClientChangedRecordIdentifiers wraps the corresponding Objective-C method.
func (*ISyncSession) ClientCommittedAcceptedChanges ¶
func (iss *ISyncSession) ClientCommittedAcceptedChanges()
ClientCommittedAcceptedChanges wraps the corresponding Objective-C method.
func (*ISyncSession) ClientCommittedAcceptedChangesWithNextAnchors ¶
func (iss *ISyncSession) ClientCommittedAcceptedChangesWithNextAnchors(anchors obj.Object)
ClientCommittedAcceptedChangesWithNextAnchors wraps the corresponding Objective-C method.
func (*ISyncSession) ClientDidResetEntityNames ¶
func (iss *ISyncSession) ClientDidResetEntityNames(entityNames obj.Object)
ClientDidResetEntityNames wraps the corresponding Objective-C method.
func (*ISyncSession) ClientFinishedPushingChangesWithNextAnchors ¶
func (iss *ISyncSession) ClientFinishedPushingChangesWithNextAnchors(anchors obj.Object)
ClientFinishedPushingChangesWithNextAnchors wraps the corresponding Objective-C method.
func (*ISyncSession) ClientInfoForRecordWithIdentifier ¶
func (iss *ISyncSession) ClientInfoForRecordWithIdentifier(recordId string) obj.Object
ClientInfoForRecordWithIdentifier wraps the corresponding Objective-C method.
func (*ISyncSession) ClientLostRecordWithIdentifierShouldReplaceOnNextSync ¶
func (iss *ISyncSession) ClientLostRecordWithIdentifierShouldReplaceOnNextSync(recordId string, flag bool)
ClientLostRecordWithIdentifierShouldReplaceOnNextSync wraps the corresponding Objective-C method.
func (*ISyncSession) ClientRefusedChangesForRecordWithIdentifier ¶
func (iss *ISyncSession) ClientRefusedChangesForRecordWithIdentifier(recordId string)
ClientRefusedChangesForRecordWithIdentifier wraps the corresponding Objective-C method.
func (*ISyncSession) ClientWantsToPushAllRecordsForEntityNames ¶
func (iss *ISyncSession) ClientWantsToPushAllRecordsForEntityNames(entityNames obj.Object)
ClientWantsToPushAllRecordsForEntityNames wraps the corresponding Objective-C method.
func (*ISyncSession) DeleteRecordWithIdentifier ¶
func (iss *ISyncSession) DeleteRecordWithIdentifier(recordId string)
DeleteRecordWithIdentifier deletes record with identifier.
func (*ISyncSession) Description ¶ added in v0.17.0
func (iss *ISyncSession) Description() string
Description returns the object's -description text.
func (*ISyncSession) FinishSyncing ¶
func (iss *ISyncSession) FinishSyncing()
FinishSyncing wraps the corresponding Objective-C method.
func (*ISyncSession) IsCancelled ¶
func (iss *ISyncSession) IsCancelled() bool
IsCancelled reports whether the object is cancelled.
func (*ISyncSession) IsEqual ¶ added in v0.17.0
func (iss *ISyncSession) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ISyncSession) IsKind ¶ added in v0.17.0
func (iss *ISyncSession) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ISyncSession) Ping ¶
func (iss *ISyncSession) Ping()
Ping wraps the corresponding Objective-C method.
func (*ISyncSession) PrepareToPullChangesForEntityNamesBeforeDate ¶
func (iss *ISyncSession) PrepareToPullChangesForEntityNamesBeforeDate(entityNames obj.Object, date time.Time) bool
PrepareToPullChangesForEntityNamesBeforeDate prepares to pull changes for entity names before date.
func (*ISyncSession) PushChange ¶
func (iss *ISyncSession) PushChange(change *ISyncChange)
PushChange pushes change.
func (*ISyncSession) PushChangesFromRecordWithIdentifier ¶
func (iss *ISyncSession) PushChangesFromRecordWithIdentifier(record obj.Object, recordId string)
PushChangesFromRecordWithIdentifier pushes changes from record with identifier.
func (*ISyncSession) ShouldPullChangesForEntityName ¶
func (iss *ISyncSession) ShouldPullChangesForEntityName(entityName string) bool
ShouldPullChangesForEntityName wraps the corresponding Objective-C method.
func (*ISyncSession) ShouldPushAllRecordsForEntityName ¶
func (iss *ISyncSession) ShouldPushAllRecordsForEntityName(entityName string) bool
ShouldPushAllRecordsForEntityName wraps the corresponding Objective-C method.
func (*ISyncSession) ShouldPushChangesForEntityName ¶
func (iss *ISyncSession) ShouldPushChangesForEntityName(entityName string) bool
ShouldPushChangesForEntityName wraps the corresponding Objective-C method.
func (*ISyncSession) ShouldReplaceAllRecordsOnClientForEntityName ¶
func (iss *ISyncSession) ShouldReplaceAllRecordsOnClientForEntityName(entityName string) bool
ShouldReplaceAllRecordsOnClientForEntityName wraps the corresponding Objective-C method.
func (*ISyncSession) SnapshotOfRecordsInTruth ¶
func (iss *ISyncSession) SnapshotOfRecordsInTruth() *ISyncRecordSnapshot
SnapshotOfRecordsInTruth returns the snapshot of records in truth.
func (*ISyncSession) String ¶ added in v0.17.0
func (iss *ISyncSession) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ISyncSessionDriver ¶
ISyncSessionDriver is an idiomatic wrapper over the Objective-C class ISyncSessionDriver.
func ISyncSessionDriverFromID ¶
func ISyncSessionDriverFromID(id objc.ID) *ISyncSessionDriver
ISyncSessionDriverFromID adopts an existing Objective-C object as a ISyncSessionDriver (nil for 0), retaining it and registering a release finalizer.
func NewISyncSessionDriver ¶ added in v0.17.0
func NewISyncSessionDriver() *ISyncSessionDriver
NewISyncSessionDriver creates a new ISyncSessionDriver.
func (*ISyncSessionDriver) Client ¶
func (issd *ISyncSessionDriver) Client() *ISyncClient
Client returns the client.
func (*ISyncSessionDriver) Delegate ¶
func (issd *ISyncSessionDriver) Delegate() obj.Object
Delegate returns the delegate.
func (*ISyncSessionDriver) Description ¶ added in v0.17.0
func (issd *ISyncSessionDriver) Description() string
Description returns the object's -description text.
func (*ISyncSessionDriver) FinishSyncing ¶
func (issd *ISyncSessionDriver) FinishSyncing()
FinishSyncing wraps the corresponding Objective-C method.
func (*ISyncSessionDriver) HandlesSyncAlerts ¶
func (issd *ISyncSessionDriver) HandlesSyncAlerts() bool
HandlesSyncAlerts wraps the corresponding Objective-C method.
func (*ISyncSessionDriver) IsEqual ¶ added in v0.17.0
func (issd *ISyncSessionDriver) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ISyncSessionDriver) IsKind ¶ added in v0.17.0
func (issd *ISyncSessionDriver) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ISyncSessionDriver) LastError ¶
func (issd *ISyncSessionDriver) LastError() unsafe.Pointer
LastError returns the last error.
func (*ISyncSessionDriver) Session ¶
func (issd *ISyncSessionDriver) Session() *ISyncSession
Session returns the session.
func (*ISyncSessionDriver) SetDelegate ¶
func (issd *ISyncSessionDriver) SetDelegate(delegate obj.Object)
SetDelegate wraps the corresponding Objective-C method.
func (*ISyncSessionDriver) SetHandlesSyncAlerts ¶
func (issd *ISyncSessionDriver) SetHandlesSyncAlerts(yesOrNo bool)
SetHandlesSyncAlerts wraps the corresponding Objective-C method.
func (*ISyncSessionDriver) StartAsynchronousSync ¶
func (issd *ISyncSessionDriver) StartAsynchronousSync() error
StartAsynchronousSync starts asynchronous sync.
StartAsynchronousSync returns an error if the operation did not succeed.
func (*ISyncSessionDriver) String ¶ added in v0.17.0
func (issd *ISyncSessionDriver) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ISyncSessionDriver) Sync ¶
func (issd *ISyncSessionDriver) Sync() bool
Sync wraps the corresponding Objective-C method.
type ISyncSessionDriverChangeResult ¶
type ISyncSessionDriverChangeResult int32
const ( ISyncSessionDriverChangeRefused ISyncSessionDriverChangeResult = 0 ISyncSessionDriverChangeAccepted ISyncSessionDriverChangeResult = 1 ISyncSessionDriverChangeIgnored ISyncSessionDriverChangeResult = 2 ISyncSessionDriverChangeError ISyncSessionDriverChangeResult = 3 )
func (ISyncSessionDriverChangeResult) String ¶
func (e ISyncSessionDriverChangeResult) String() string
String returns the ISyncSessionDriverChangeResult constant's name, or its numeric form when the value is not a known constant.
type ISyncSessionDriverDataSource ¶
type ISyncSessionDriverDataSource interface {
ClientIdentifier() string
ClientDescriptionURL() string
SchemaBundleURLs() obj.Object
PreferredSyncModeForEntityName(entity string) ISyncSessionDriverMode
RecordsForEntityNameMoreComingError(entity string, moreComing obj.Object) obj.Object
ApplyChangeForEntityNameRemappedRecordIdentifierFormattedRecordError(change *ISyncChange, entityName string, outRecordIdentifier string, outRecord obj.Object) ISyncSessionDriverChangeResult
DeleteAllRecordsForEntityNameError(entityName string) bool
}
ISyncSessionDriverDataSource is the Go form of the Objective-C protocol ISyncSessionDriverDataSource.
type ISyncSessionDriverMode ¶
type ISyncSessionDriverMode int32
const ( ISyncSessionDriverModeFast ISyncSessionDriverMode = 1 ISyncSessionDriverModeSlow ISyncSessionDriverMode = 2 ISyncSessionDriverModeRefresh ISyncSessionDriverMode = 3 )
func (ISyncSessionDriverMode) String ¶
func (e ISyncSessionDriverMode) String() string
String returns the ISyncSessionDriverMode constant's name, or its numeric form when the value is not a known constant.
type ISyncStatus
deprecated
added in
v0.17.0
type ISyncStatus int32
Deprecated: since macOS 10.7.
const ( // Deprecated: since macOS 10.7. ISyncStatusRunning ISyncStatus = 1 // Deprecated: since macOS 10.7. ISyncStatusSuccess ISyncStatus = 2 // Deprecated: since macOS 10.7. ISyncStatusWarnings ISyncStatus = 3 ISyncStatusErrors ISyncStatus = 4 ISyncStatusCancelled ISyncStatus = 5 ISyncStatusFailed ISyncStatus = 6 ISyncStatusNever ISyncStatus = 7 )
func (ISyncStatus) String ¶ added in v0.17.0
func (e ISyncStatus) String() string
String returns the ISyncStatus constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NSPersistentStoreCoordinatorSyncing ¶
type NSPersistentStoreCoordinatorSyncing interface {
}
NSPersistentStoreCoordinatorSyncing is the Go form of the Objective-C protocol NSPersistentStoreCoordinatorSyncing.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- ISyncChange_generated.go
- ISyncClient_generated.go
- ISyncFilter_generated.go
- ISyncManager_generated.go
- ISyncRecordSnapshot_generated.go
- ISyncSessionDriver_generated.go
- ISyncSession_generated.go
- doc.go
- syncservices_classmethods_generated.go
- syncservices_constants_generated.go
- syncservices_enums_generated.go
- syncservices_protocols_generated.go
- syncservices_runtime_generated.go