Versions in this module Expand all Collapse all v0 v0.1.1 Jul 20, 2023 Changes in this version + const AccessibleAccessibleAlwaysThisDeviceOnly — darwin/amd64 + const AccessibleAfterFirstUnlock — darwin/amd64 + const AccessibleAfterFirstUnlockThisDeviceOnly — darwin/amd64 + const AccessibleAlways — darwin/amd64 + const AccessibleDefault — darwin/amd64 + const AccessibleWhenPasscodeSetThisDeviceOnly — darwin/amd64 + const AccessibleWhenUnlocked — darwin/amd64 + const AccessibleWhenUnlockedThisDeviceOnly — darwin/amd64 + const MatchLimitAll — darwin/amd64 + const MatchLimitDefault — darwin/amd64 + const MatchLimitOne — darwin/amd64 + const SynchronizableAny — darwin/amd64 + const SynchronizableDefault — darwin/amd64 + const SynchronizableNo — darwin/amd64 + const SynchronizableYes — darwin/amd64 + var AccessGroupKey = attrKey(C.CFTypeRef(C.kSecAttrAccessGroup)) — darwin/amd64 + var AccessibleKey = attrKey(C.CFTypeRef(C.kSecAttrAccessible)) — darwin/amd64 + var AccountKey = attrKey(C.CFTypeRef(C.kSecAttrAccount)) — darwin/amd64 + var AuthenticationTypeKey = attrKey(C.CFTypeRef(C.kSecAttrAuthenticationType)) — darwin/amd64 + var CommentKey = attrKey(C.CFTypeRef(C.kSecAttrComment)) — darwin/amd64 + var CreationDateKey = attrKey(C.CFTypeRef(C.kSecAttrCreationDate)) — darwin/amd64 + var DataKey = attrKey(C.CFTypeRef(C.kSecValueData)) — darwin/amd64 + var DescriptionKey = attrKey(C.CFTypeRef(C.kSecAttrDescription)) — darwin/amd64 + var ErrorAllocate = Error(C.errSecAllocate) — darwin/amd64 + var ErrorAuthFailed = Error(C.errSecAuthFailed) — darwin/amd64 + var ErrorDataNotAvailable = Error(C.errSecDataNotAvailable) — darwin/amd64 + var ErrorDataNotModifiable = Error(C.errSecDataNotModifiable) — darwin/amd64 + var ErrorDecode = Error(C.errSecDecode) — darwin/amd64 + var ErrorDuplicateItem = Error(C.errSecDuplicateItem) — darwin/amd64 + var ErrorDuplicateKeyChain = Error(C.errSecDuplicateKeychain) — darwin/amd64 + var ErrorInteractionNotAllowed = Error(C.errSecInteractionNotAllowed) — darwin/amd64 + var ErrorInvalidItemRef = Error(C.errSecInvalidItemRef) — darwin/amd64 + var ErrorInvalidKeychain = Error(C.errSecInvalidKeychain) — darwin/amd64 + var ErrorInvalidOwnerEdit = Error(C.errSecInvalidOwnerEdit) — darwin/amd64 + var ErrorInvalidSearchRef = Error(C.errSecInvalidSearchRef) — darwin/amd64 + var ErrorItemNotFound = Error(C.errSecItemNotFound) — darwin/amd64 + var ErrorNoAccessForItem = Error(C.errSecNoAccessForItem) — darwin/amd64 + var ErrorNoSuchKeychain = Error(C.errSecNoSuchKeychain) — darwin/amd64 + var ErrorNotAvailable = Error(C.errSecNotAvailable) — darwin/amd64 + var ErrorParam = Error(C.errSecParam) — darwin/amd64 + var ErrorReadOnly = Error(C.errSecReadOnly) — darwin/amd64 + var ErrorReadonlyAttribute = Error(C.errSecReadOnlyAttr) — darwin/amd64 + var ErrorUnimplemented = Error(C.errSecUnimplemented) — darwin/amd64 + var ErrorUserCanceled = Error(C.errSecUserCanceled) — darwin/amd64 + var ErrorWrongVersion = Error(C.errSecWrongSecVersion) — darwin/amd64 + var LabelKey = attrKey(C.CFTypeRef(C.kSecAttrLabel)) — darwin/amd64 + var MatchLimitKey = attrKey(C.CFTypeRef(C.kSecMatchLimit)) — darwin/amd64 + var ModificationDateKey = attrKey(C.CFTypeRef(C.kSecAttrModificationDate)) — darwin/amd64 + var PathKey = attrKey(C.CFTypeRef(C.kSecAttrPath)) — darwin/amd64 + var PortKey = attrKey(C.CFTypeRef(C.kSecAttrPort)) — darwin/amd64 + var ProtocolKey = attrKey(C.CFTypeRef(C.kSecAttrProtocol)) — darwin/amd64 + var ReturnAttributesKey = attrKey(C.CFTypeRef(C.kSecReturnAttributes)) — darwin/amd64 + var ReturnDataKey = attrKey(C.CFTypeRef(C.kSecReturnData)) — darwin/amd64 + var ReturnRefKey = attrKey(C.CFTypeRef(C.kSecReturnRef)) — darwin/amd64 + var SecClassKey = attrKey(C.CFTypeRef(C.kSecClass)) — darwin/amd64 + var ServerKey = attrKey(C.CFTypeRef(C.kSecAttrServer)) — darwin/amd64 + var ServiceKey = attrKey(C.CFTypeRef(C.kSecAttrService)) — darwin/amd64 + var SynchronizableKey = attrKey(C.CFTypeRef(C.kSecAttrSynchronizable)) — darwin/amd64 + func AddItem(item Item) error — darwin/amd64 + func ArrayToCFArray(a []C.CFTypeRef) C.CFArrayRef — darwin/amd64 + func BytesToCFData(b []byte) (C.CFDataRef, error) — darwin/amd64 + func CFArrayToArray(cfArray C.CFArrayRef) (a []C.CFTypeRef) — darwin/amd64 + func CFDataToBytes(cfData C.CFDataRef) ([]byte, error) — darwin/amd64 + func CFDateToTime(d C.CFDateRef) time.Time — darwin/amd64 + func CFDictionaryToMap(cfDict C.CFDictionaryRef) (m map[C.CFTypeRef]C.CFTypeRef) — darwin/amd64 + func CFNumberToInterface(cfNumber C.CFNumberRef) interface — darwin/amd64 + func CFStringToString(s C.CFStringRef) string — darwin/amd64 + func CFTypeDescription(ref C.CFTypeRef) string — darwin/amd64 + func Convert(ref C.CFTypeRef) (interface{}, error) — darwin/amd64 + func ConvertCFDictionary(d C.CFDictionaryRef) (map[interface{}]interface{}, error) — darwin/amd64 + func ConvertMapToCFDictionary(attr map[string]interface{}) (C.CFDictionaryRef, error) — darwin/amd64 + func DeleteGenericPasswordItem(service string, account string) error — darwin/amd64 + func DeleteItem(item Item) error — darwin/amd64 + func GetAccountsForService(service string) ([]string, error) — darwin/amd64 + func GetGenericPassword(service string, account string, label string, accessGroup string) ([]byte, error) — darwin/amd64 + func GetGenericPasswordAccounts(service string) ([]string, error) — darwin/amd64 + func Int32ToCFNumber(u int32) C.CFNumberRef — darwin/amd64 + func MapToCFDictionary(m map[C.CFTypeRef]C.CFTypeRef) (C.CFDictionaryRef, error) — darwin/amd64 + func QueryItemRef(item Item) (C.CFTypeRef, error) — darwin/amd64 + func RandBytes(length int) ([]byte, error) + func RandomID(prefix string) (string, error) + func Release(ref C.CFTypeRef) — darwin/amd64 + func StringToCFString(s string) (C.CFStringRef, error) — darwin/amd64 + func TimeToCFDate(t time.Time) C.CFDateRef — darwin/amd64 + func UpdateItem(queryItem Item, updateItem Item) error — darwin/amd64 + type Access struct — darwin/amd64 + Label string + TrustedApplications []string + type Accessible int — darwin/amd64 + type Convertable interface — darwin/amd64 + Convert func() (C.CFTypeRef, error) + type Error int — darwin/amd64 + func (k Error) Error() (msg string) + type Item struct — darwin/amd64 + func NewGenericPassword(service string, account string, label string, data []byte, accessGroup string) Item + func NewItem() Item + func (k *Item) SetAccess(a *Access) + func (k *Item) SetAccessGroup(ag string) + func (k *Item) SetAccessible(accessible Accessible) + func (k *Item) SetAccount(a string) + func (k *Item) SetAuthenticationType(s string) + func (k *Item) SetComment(s string) + func (k *Item) SetData(b []byte) + func (k *Item) SetDescription(s string) + func (k *Item) SetInt32(key string, v int32) + func (k *Item) SetLabel(l string) + func (k *Item) SetMatchLimit(matchLimit MatchLimit) + func (k *Item) SetMatchSearchList(kc Keychain) + func (k *Item) SetPath(s string) + func (k *Item) SetPort(v int32) + func (k *Item) SetProtocol(s string) + func (k *Item) SetReturnAttributes(b bool) + func (k *Item) SetReturnData(b bool) + func (k *Item) SetReturnRef(b bool) + func (k *Item) SetSecClass(sc SecClass) + func (k *Item) SetServer(s string) + func (k *Item) SetService(s string) + func (k *Item) SetString(key string, s string) + func (k *Item) SetSynchronizable(sync Synchronizable) + func (k *Item) UseKeychain(kc Keychain) + type Keychain struct — darwin/amd64 + func NewKeychain(path string, password string) (Keychain, error) + func NewKeychainWithPrompt(path string) (Keychain, error) + func NewWithPath(path string) Keychain + func (kc Keychain) Status() error + type MatchLimit int — darwin/amd64 + type QueryResult struct — darwin/amd64 + AccessGroup string + Account string + AuthenticationType string + Comment string + CreationDate time.Time + Data []byte + Description string + Label string + ModificationDate time.Time + Path string + Port int32 + Protocol string + Server string + Service string + func QueryItem(item Item) ([]QueryResult, error) + type SecClass int — darwin/amd64 + var SecClassGenericPassword SecClass = 1 + var SecClassInternetPassword SecClass = 2 + type Synchronizable int — darwin/amd64