mcinstall

package
v1.0.79 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallProfileSilent added in v1.0.68

func InstallProfileSilent(device ios.DeviceEntry, p12file []byte, p12password string, profileBytes []byte) error

InstallProfileSilent install a configuration profile silently.

func RemoveProxy added in v1.0.68

func RemoveProxy(device ios.DeviceEntry) error

RemoveProxy unsets the global HTTP proxy config again by deleting the global config profile installed by go-ios using the identifier I hardcoded 'Go-iOS.CD15976B-E205-4213-9B8E-FDAA5FAB1C22'

func SetHttpProxy added in v1.0.68

func SetHttpProxy(device ios.DeviceEntry, host string, port string, user string, pass string, p12file []byte, p12password string) error

SetHttpProxy generates the config profile "Go-iOS.CD15976B-E205-4213-9B8E-FDAA5FAB1C22" that will set a global http proxy on supervised devices.

Types

type Connection

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

func New

func New(device ios.DeviceEntry) (*Connection, error)

func (*Connection) AddProfile added in v1.0.57

func (mcInstallConn *Connection) AddProfile(profilePlist []byte) error

func (*Connection) AddProfileSupervised added in v1.0.57

func (mcInstallConn *Connection) AddProfileSupervised(profileFileBytes []byte, p12fileBytes []byte, password string) error

func (*Connection) Close

func (mcInstallConn *Connection) Close() error

Close closes the underlying DeviceConnection

func (*Connection) Escalate added in v1.0.57

func (mcInstallConn *Connection) Escalate(p12bytes []byte, p12Password string) error

func (*Connection) HandleList

func (mcInstallConn *Connection) HandleList() ([]ProfileInfo, error)

func (*Connection) RemoveProfile added in v1.0.57

func (mcInstallConn *Connection) RemoveProfile(identifier string) error

type ProfileInfo added in v1.0.57

type ProfileInfo struct {
	Identifier string
	Manifest   ProfileManifest
	Metadata   ProfileMetadata
	Status     string
}

type ProfileManifest added in v1.0.57

type ProfileManifest struct {
	Description string
	IsActive    bool
}

type ProfileMetadata added in v1.0.57

type ProfileMetadata struct {
	PayloadDescription       string
	PayloadDisplayName       string
	PayloadRemovalDisallowed bool
	PayloadUUID              string
	PayloadVersion           uint64
}

Jump to

Keyboard shortcuts

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