entitlements

package
v0.0.0-...-eab66a8 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APS

type APS struct {
	// contains filtered or unexported fields
}

APS allows you to specify the environment for push notifications. See https://developer.apple.com/documentation/bundleresources/entitlements/aps-environment for more information.

func (*APS) Apply

func (a *APS) Apply(e *Entitlements)

Apply will apply the APS entitlements

func (*APS) Development

func (a *APS) Development()

Development specifies the APNs development environment.

func (*APS) Production

func (a *APS) Production()

Production specifies the APNs production environment.

type DataProtection

type DataProtection struct {
	// contains filtered or unexported fields
}

DataProtection allows you to specify the level of data protection that encrypts sensitive user data when accessed on some devices. See https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_default-data-protection for more information.

func (*DataProtection) Apply

func (p *DataProtection) Apply(e *Entitlements)

Apply will apply the data protection entitlements

func (*DataProtection) Complete

func (p *DataProtection) Complete()

Complete specifies the file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting. See https://developer.apple.com/documentation/foundation/nsfileprotectioncomplete for more information.

func (*DataProtection) CompleteUnlessOpen

func (p *DataProtection) CompleteUnlessOpen()

CompleteUnlessOpen specifies the file is stored in an encrypted format on disk after it is closed. See https://developer.apple.com/documentation/foundation/nsfileprotectioncompleteunlessopen for more information.

func (*DataProtection) CompleteUntilFirstUserAuthentication

func (p *DataProtection) CompleteUntilFirstUserAuthentication()

CompleteUntilFirstUserAuthentication specifies the file is stored in an encrypted format on disk and cannot be accessed until after the device has booted. See https://developer.apple.com/documentation/foundation/nsfileprotectioncompleteuntilfirstuserauthentication for more information.

func (*DataProtection) None

func (p *DataProtection) None()

None specifies the file has no special protections associated with it. See https://developer.apple.com/documentation/foundation/nsfileprotectionnone for more information.

type Entitlements

type Entitlements struct {
	APS            *APS
	DataProtection *DataProtection
	// contains filtered or unexported fields
}

Entitlements is a builder for assigning key-value pairs that grant executable permission to use a service or technology. See https://developer.apple.com/documentation/bundleresources/entitlements/ for more information.

func New

func New() *Entitlements

New returns a new `Entitlements` builder.

func (*Entitlements) Build

func (e *Entitlements) Build() (string, error)

Build will build the Entitlements property list

func (*Entitlements) Set

func (e *Entitlements) Set(key string, value interface{})

Set will set an arbitrary key-value pair in your entitlements. Keys set in this manner will override any keys set by any of the builder functions.

func (*Entitlements) SkipValidation

func (e *Entitlements) SkipValidation()

SkipValidation will skip all validation when building entitlements

func (*Entitlements) Write

func (e *Entitlements) Write(w io.Writer) error

Write the entitlements to the specified io.Writer.

Jump to

Keyboard shortcuts

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