profileutil

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2022 License: MIT Imports: 15 Imported by: 28

Documentation

Index

Constants

View Source
const ProvProfileSystemDirPath = "~/Library/MobileDevice/Provisioning Profiles"

ProvProfileSystemDirPath ...

Variables

View Source
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

func FindProvisioningProfile(uuid string) (*pkcs7.PKCS7, string, error)

FindProvisioningProfile ...

func InstalledProvisioningProfiles

func InstalledProvisioningProfiles(profileType ProfileType) ([]*pkcs7.PKCS7, error)

InstalledProvisioningProfiles ...

func IsXcodeManaged

func IsXcodeManaged(profileName string) bool

IsXcodeManaged ...

func MatchTargetAndProfileEntitlements

func MatchTargetAndProfileEntitlements(targetEntitlements plistutil.PlistData, profileEntitlements plistutil.PlistData, profileType ProfileType) []string

MatchTargetAndProfileEntitlements ...

func ProvisioningProfileFromContent

func ProvisioningProfileFromContent(content []byte) (*pkcs7.PKCS7, error)

ProvisioningProfileFromContent ...

func ProvisioningProfileFromFile

func ProvisioningProfileFromFile(pth string) (*pkcs7.PKCS7, error)

ProvisioningProfileFromFile ...

Types

type PlistData

type PlistData plistutil.PlistData

PlistData ...

func NewPlistDataFromFile

func NewPlistDataFromFile(provisioningProfilePth string) (PlistData, error)

NewPlistDataFromFile ...

func (PlistData) GetApplicationIdentifier

func (profile PlistData) GetApplicationIdentifier() string

GetApplicationIdentifier ...

func (PlistData) GetBundleIdentifier

func (profile PlistData) GetBundleIdentifier() string

GetBundleIdentifier ...

func (PlistData) GetCreationDate

func (profile PlistData) GetCreationDate() time.Time

GetCreationDate ...

func (PlistData) GetDeveloperCertificates

func (profile PlistData) GetDeveloperCertificates() [][]byte

GetDeveloperCertificates ...

func (PlistData) GetEntitlements

func (profile PlistData) GetEntitlements() plistutil.PlistData

GetEntitlements ...

func (PlistData) GetExpirationDate

func (profile PlistData) GetExpirationDate() time.Time

GetExpirationDate ...

func (PlistData) GetExportMethod

func (profile PlistData) GetExportMethod() exportoptions.Method

GetExportMethod ...

func (PlistData) GetName

func (profile PlistData) GetName() string

GetName ...

func (PlistData) GetProvisionedDevices

func (profile PlistData) GetProvisionedDevices() []string

GetProvisionedDevices ...

func (PlistData) GetProvisionsAllDevices

func (profile PlistData) GetProvisionsAllDevices() bool

GetProvisionsAllDevices ...

func (PlistData) GetTeamID

func (profile PlistData) GetTeamID() string

GetTeamID ...

func (PlistData) GetTeamName

func (profile PlistData) GetTeamName() string

GetTeamName ...

func (PlistData) GetUUID

func (profile PlistData) GetUUID() string

GetUUID ...

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 ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL