Documentation ¶
Index ¶
- Constants
- Variables
- func FindProvisioningProfile(uuid string) (*pkcs7.PKCS7, string, error)
- func InstalledProvisioningProfiles(profileType ProfileType) ([]*pkcs7.PKCS7, error)
- func IsXcodeManaged(profileName string) bool
- func MatchTargetAndProfileEntitlements(targetEntitlements plistutil.PlistData, ...) []string
- func ProvisioningProfileFromContent(content []byte) (*pkcs7.PKCS7, error)
- func ProvisioningProfileFromFile(pth string) (*pkcs7.PKCS7, error)
- type PlistData
- func (profile PlistData) GetApplicationIdentifier() string
- func (profile PlistData) GetBundleIdentifier() string
- func (profile PlistData) GetCreationDate() time.Time
- func (profile PlistData) GetDeveloperCertificates() [][]byte
- func (profile PlistData) GetEntitlements() plistutil.PlistData
- func (profile PlistData) GetExpirationDate() time.Time
- func (profile PlistData) GetExportMethod() exportoptions.Method
- func (profile PlistData) GetName() string
- func (profile PlistData) GetProvisionedDevices() []string
- func (profile PlistData) GetProvisionsAllDevices() bool
- func (profile PlistData) GetTeamID() string
- func (profile PlistData) GetTeamName() string
- func (profile PlistData) GetUUID() string
- type ProfileType
- type ProvisioningProfileInfoModel
- func FindProvisioningProfileInfo(uuid string) (ProvisioningProfileInfoModel, string, error)
- func InstalledProvisioningProfileInfos(profileType ProfileType) ([]ProvisioningProfileInfoModel, error)
- func NewProvisioningProfileInfo(provisioningProfile pkcs7.PKCS7) (ProvisioningProfileInfoModel, error)
- func NewProvisioningProfileInfoFromFile(pth string) (ProvisioningProfileInfoModel, error)
- func (info ProvisioningProfileInfoModel) CheckValidity() error
- func (info ProvisioningProfileInfoModel) HasInstalledCertificate(installedCertificates []certificateutil.CertificateInfoModel) bool
- func (info ProvisioningProfileInfoModel) IsXcodeManaged() bool
- func (info ProvisioningProfileInfoModel) String(installedCertificates ...certificateutil.CertificateInfoModel) string
Constants ¶
const ProvProfileSystemDirPath = "~/Library/MobileDevice/Provisioning Profiles"
ProvProfileSystemDirPath ...
Variables ¶
var KnownProfileCapabilitiesMap = map[ProfileType]map[string]bool{ ProfileTypeMacOs: map[string]bool{ "com.apple.developer.networking.networkextension": true, "com.apple.developer.icloud-container-environment": true, "com.apple.developer.icloud-container-development-container-identifiers": true, "com.apple.developer.aps-environment": true, "keychain-access-groups": true, "com.apple.developer.icloud-services": true, "com.apple.developer.icloud-container-identifiers": true, "com.apple.developer.networking.vpn.api": true, "com.apple.developer.ubiquity-kvstore-identifier": true, "com.apple.developer.ubiquity-container-identifiers": true, "com.apple.developer.game-center": true, "com.apple.application-identifier": true, "com.apple.developer.team-identifier": true, "com.apple.developer.maps": true, }, ProfileTypeIos: map[string]bool{ "com.apple.developer.in-app-payments": true, "com.apple.security.application-groups": true, "com.apple.developer.default-data-protection": true, "com.apple.developer.healthkit": true, "com.apple.developer.homekit": true, "com.apple.developer.networking.HotspotConfiguration": true, "inter-app-audio": true, "keychain-access-groups": true, "com.apple.developer.networking.multipath": true, "com.apple.developer.nfc.readersession.formats": true, "com.apple.developer.networking.networkextension": true, "aps-environment": true, "com.apple.developer.associated-domains": true, "com.apple.developer.siri": true, "com.apple.developer.networking.vpn.api": true, "com.apple.external-accessory.wireless-configuration": true, "com.apple.developer.pass-type-identifiers": true, "com.apple.developer.icloud-container-identifiers": true, }, }
KnownProfileCapabilitiesMap ...
Functions ¶
func FindProvisioningProfile ¶
FindProvisioningProfile ...
func InstalledProvisioningProfiles ¶
func InstalledProvisioningProfiles(profileType ProfileType) ([]*pkcs7.PKCS7, error)
InstalledProvisioningProfiles ...
func MatchTargetAndProfileEntitlements ¶
func MatchTargetAndProfileEntitlements(targetEntitlements plistutil.PlistData, profileEntitlements plistutil.PlistData, profileType ProfileType) []string
MatchTargetAndProfileEntitlements ...
func ProvisioningProfileFromContent ¶
ProvisioningProfileFromContent ...
Types ¶
type PlistData ¶
PlistData ...
func NewPlistDataFromFile ¶
NewPlistDataFromFile ...
func (PlistData) GetApplicationIdentifier ¶
GetApplicationIdentifier ...
func (PlistData) GetBundleIdentifier ¶
GetBundleIdentifier ...
func (PlistData) GetCreationDate ¶
GetCreationDate ...
func (PlistData) GetDeveloperCertificates ¶
GetDeveloperCertificates ...
func (PlistData) GetEntitlements ¶
GetEntitlements ...
func (PlistData) GetExpirationDate ¶
GetExpirationDate ...
func (PlistData) GetExportMethod ¶
func (profile PlistData) GetExportMethod() exportoptions.Method
GetExportMethod ...
func (PlistData) GetProvisionedDevices ¶
GetProvisionedDevices ...
func (PlistData) GetProvisionsAllDevices ¶
GetProvisionsAllDevices ...
type ProfileType ¶
type ProfileType string
ProfileType ...
const ProfileTypeIos ProfileType = "ios"
ProfileTypeIos ...
const ProfileTypeMacOs ProfileType = "osx"
ProfileTypeMacOs ...
const ProfileTypeTvOs ProfileType = "tvos"
ProfileTypeTvOs ...
type ProvisioningProfileInfoModel ¶
type ProvisioningProfileInfoModel struct { UUID string Name string TeamName string TeamID string BundleID string ExportType exportoptions.Method ProvisionedDevices []string DeveloperCertificates []certificateutil.CertificateInfoModel CreationDate time.Time ExpirationDate time.Time Entitlements plistutil.PlistData ProvisionsAllDevices bool Type ProfileType }
ProvisioningProfileInfoModel ...
func FindProvisioningProfileInfo ¶
func FindProvisioningProfileInfo(uuid string) (ProvisioningProfileInfoModel, string, error)
FindProvisioningProfileInfo ...
func InstalledProvisioningProfileInfos ¶
func InstalledProvisioningProfileInfos(profileType ProfileType) ([]ProvisioningProfileInfoModel, error)
InstalledProvisioningProfileInfos ...
func NewProvisioningProfileInfo ¶
func NewProvisioningProfileInfo(provisioningProfile pkcs7.PKCS7) (ProvisioningProfileInfoModel, error)
NewProvisioningProfileInfo ...
func NewProvisioningProfileInfoFromFile ¶
func NewProvisioningProfileInfoFromFile(pth string) (ProvisioningProfileInfoModel, error)
NewProvisioningProfileInfoFromFile ...
func (ProvisioningProfileInfoModel) CheckValidity ¶
func (info ProvisioningProfileInfoModel) CheckValidity() error
CheckValidity ...
func (ProvisioningProfileInfoModel) HasInstalledCertificate ¶
func (info ProvisioningProfileInfoModel) HasInstalledCertificate(installedCertificates []certificateutil.CertificateInfoModel) bool
HasInstalledCertificate ...
func (ProvisioningProfileInfoModel) IsXcodeManaged ¶
func (info ProvisioningProfileInfoModel) IsXcodeManaged() bool
IsXcodeManaged ...
func (ProvisioningProfileInfoModel) String ¶
func (info ProvisioningProfileInfoModel) String(installedCertificates ...certificateutil.CertificateInfoModel) string
PrintableProvisioningProfileInfo ...