mobileconfig

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mobileconfig parses Apple Configuration profiles for basic information.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPayload = errors.New("invalid payload")

Functions

This section is empty.

Types

type Mobileconfig

type Mobileconfig []byte

func (Mobileconfig) Parse

func (mc Mobileconfig) Parse() (*Payload, bool, error)

Parse parses an Apple Configuration Profile to extract profile information. Profile signed status is also returned.

type Payload

type Payload struct {
	PayloadDescription  string `plist:",omitempty"`
	PayloadDisplayName  string `plist:",omitempty"`
	PayloadIdentifier   string
	PayloadOrganization string `plist:",omitempty"`
	PayloadUUID         string
	PayloadType         string
	PayloadVersion      int
}

Payload is some of the "top-level" configuration profile information. See https://developer.apple.com/documentation/devicemanagement/toplevel

func (*Payload) Validate

func (p *Payload) Validate() error

Validate tests a Payload against basic validity of required fields.

Jump to

Keyboard shortcuts

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