Help us shape the future of Go! Take the 2026 Go Developer Survey

mcinstall

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(udid string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetCloudConfig

func (c *Client) GetCloudConfig() (*CloudConfiguration, error)

func (*Client) Install

func (c *Client) Install(profilePath string) error

func (*Client) List

func (c *Client) List() (*ProfileInfo, error)

func (*Client) Remove

func (c *Client) Remove(identifier string) error

func (*Client) SetWifiPowerState

func (c *Client) SetWifiPowerState(turnON bool) error

func (*Client) Upload

func (c *Client) Upload(profilePath string) error

type CloudConfiguration

type CloudConfiguration struct {
	AllowPairing                 bool `plist:"AllowPairing,omitempty" json:"allow_pairing,omitempty"`
	CloudConfigurationUIComplete bool `plist:"CloudConfigurationUIComplete,omitempty" json:"cloud_conf_ui_complete,omitempty"`
	ConfigurationSource          int  `plist:"ConfigurationSource,omitempty" json:"conf_source"`
	ConfigurationWasApplied      bool `plist:"ConfigurationWasApplied,omitempty" json:"conf_was_applied,omitempty"`
	IsSupervised                 bool `plist:"IsSupervised,omitempty" json:"is_supervised,omitempty"`
	PostSetupProfileWasInstalled bool `plist:"PostSetupProfileWasInstalled,omitempty" json:"post_setup_profile_was_installed,omitempty"`
}

func (*CloudConfiguration) String

func (cc *CloudConfiguration) String() string

type ProfileInfo

type ProfileInfo struct {
	IDs       []string                   `plist:"OrderedIdentifiers,omitempty" json:"ids,omitempty"`
	Manifests map[string]ProfileManifest `plist:"ProfileManifest,omitempty" json:"manifests,omitempty"`
	Metadatas map[string]ProfileMetadata `plist:"ProfileMetadata,omitempty" json:"metadatas,omitempty"`
	Status    string                     `plist:"Status,omitempty" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (ProfileInfo) String

func (p ProfileInfo) String() string

type ProfileManifest

type ProfileManifest struct {
	Description string `plist:"Description,omitempty" json:"desc,omitempty"`
	IsActive    bool   `plist:"IsActive,omitempty" json:"active,omitempty"`
}

type ProfileMetadata

type ProfileMetadata struct {
	Description       string `plist:"PayloadDescription,omitempty" json:"desc,omitempty"`
	Name              string `plist:"PayloadDisplayName,omitempty" json:"name,omitempty"`
	Organization      string `plist:"PayloadOrganization,omitempty" json:"org,omitempty"`
	RemovalDisallowed bool   `plist:"PayloadRemovalDisallowed,omitempty" json:"removal_disallowed,omitempty"`
	UUID              string `plist:"PayloadUUID,omitempty" json:"uuid,omitempty"`
	Version           int    `plist:"PayloadVersion,omitempty" json:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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