nskeyedarchiver

package
v1.0.122 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LifetimeKeepAlways      = uint64(0)
	LifetimeDeleteOnSuccess = uint64(1)
)
View Source
const (
	NsKeyedArchiver = "NSKeyedArchiver"
)

Variables

This section is empty.

Functions

func ArchiveBin

func ArchiveBin(object interface{}) ([]byte, error)

func ArchiveXML

func ArchiveXML(object interface{}) (string, error)

func NewDTActivityTraceTapMessage

func NewDTActivityTraceTapMessage(object map[string]interface{}, objects []interface{}) interface{}

func NewDTCPUClusterInfo

func NewDTCPUClusterInfo(object map[string]interface{}, objects []interface{}) interface{}

func NewDTKTraceTapMessage

func NewDTKTraceTapMessage(object map[string]interface{}, objects []interface{}) interface{}

func NewDTTapHeartbeatMessage

func NewDTTapHeartbeatMessage(object map[string]interface{}, objects []interface{}) interface{}

func NewDTTapMessage

func NewDTTapMessage(object map[string]interface{}, objects []interface{}) interface{}

func NewDTTapStatusMessage

func NewDTTapStatusMessage(object map[string]interface{}, objects []interface{}) interface{}

func NewNSArray

func NewNSArray(object map[string]interface{}, objects []interface{}) interface{}

func NewNSDate

func NewNSDate(object map[string]interface{}, objects []interface{}) interface{}

func NewNSError

func NewNSError(object map[string]interface{}, objects []interface{}) interface{}

func NewNSMutableData

func NewNSMutableData(object map[string]interface{}, objects []interface{}) interface{}

func NewNSMutableDictionary

func NewNSMutableDictionary(internalDict map[string]interface{}) interface{}

func NewNSNull

func NewNSNull() interface{}

func NewNSNullFromArchived

func NewNSNullFromArchived(object map[string]interface{}, objects []interface{}) interface{}

func NewNSUUIDFromBytes

func NewNSUUIDFromBytes(object map[string]interface{}, objects []interface{}) interface{}

func NewNSValue

func NewNSValue(object map[string]interface{}, objects []interface{}) interface{}

func NewXCActivityRecord

func NewXCActivityRecord(object map[string]interface{}, objects []interface{}) interface{}

func NewXCTAttachment

func NewXCTAttachment(object map[string]interface{}, objects []interface{}) interface{}

func NewXCTCapabilities

func NewXCTCapabilities(object map[string]interface{}, objects []interface{}) interface{}

func NewXCTIssue

func NewXCTIssue(object map[string]interface{}, objects []interface{}) interface{}

func NewXCTSourceCodeContext

func NewXCTSourceCodeContext(object map[string]interface{}, objects []interface{}) interface{}

func NewXCTSourceCodeLocation

func NewXCTSourceCodeLocation(object map[string]interface{}, objects []interface{}) interface{}

func NewXCTTestIdentifier

func NewXCTTestIdentifier(object map[string]interface{}, objects []interface{}) interface{}

func NewXCTestConfigurationFromBytes

func NewXCTestConfigurationFromBytes(object map[string]interface{}, objects []interface{}) interface{}

func SetupDecoders

func SetupDecoders()

func SetupEncoders

func SetupEncoders()

func Unarchive

func Unarchive(xml []byte) (result []interface{}, err error)

Unarchive extracts NSKeyedArchiver Plists, either in XML or Binary format, and returns an array of the archived objects converted to usable Go Types. Primitives will be extracted just like regular Plist primitives (string, float64, int64, []uint8 etc.). NSArray, NSMutableArray, NSSet and NSMutableSet will transformed into []interface{} NSDictionary and NSMutableDictionary will be transformed into map[string] interface{}. I might add non string keys later.

Types

type DTActivityTraceTapMessage

type DTActivityTraceTapMessage struct {
	DTTapMessagePlist map[string]interface{}
}

type DTCPUClusterInfo

type DTCPUClusterInfo struct {
	ClusterID    uint64
	ClusterFlags uint64
}

type DTKTraceTapMessage

type DTKTraceTapMessage struct {
	DTTapMessagePlist map[string]interface{}
}

type DTTapHeartbeatMessage

type DTTapHeartbeatMessage struct {
	DTTapMessagePlist map[string]interface{}
}

type DTTapMessage

type DTTapMessage struct {
	DTTapMessagePlist map[string]interface{}
}

type DTTapStatusMessage

type DTTapStatusMessage struct {
	DTTapMessagePlist map[string]interface{}
}

type NSArray

type NSArray struct {
	Values []interface{}
}

type NSDate

type NSDate struct {
	Timestamp time.Time
}

func (NSDate) String

func (n NSDate) String() string

type NSError

type NSError struct {
	ErrorCode uint64
	Domain    string
	UserInfo  map[string]interface{}
}

func (NSError) Error

func (err NSError) Error() string

type NSMutableArray

type NSMutableArray struct {
	Values []interface{}
}

type NSMutableDictionary

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

type NSNull

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

type NSSet

type NSSet struct {
	Objects []interface{}
}

type NSURL

type NSURL struct {
	Path string
}

func NewNSURL

func NewNSURL(path string) NSURL

type NSUUID

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

func NewNSUUID

func NewNSUUID(id uuid.UUID) NSUUID

func (NSUUID) String

func (n NSUUID) String() string

type NSValue

type NSValue struct {
	NSSpecial uint64
	NSRectval string
}

type PartiallyExtractedXcTestConfig

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

TODO: make this nice, partially extracting objects is not really cool

type XCActivityRecord

type XCActivityRecord struct {
	Finish       NSDate
	Start        NSDate
	Title        string
	UUID         NSUUID
	ActivityType string
	Attachments  []XCTAttachment
}

type XCTAttachment

type XCTAttachment struct {
	UniformTypeIdentifier string

	Payload   []uint8
	Timestamp float64
	Name      string
	// contains filtered or unexported fields
}

type XCTCapabilities

type XCTCapabilities struct {
	CapabilitiesDictionary map[string]interface{}
}

type XCTIssue

type XCTIssue struct {
	RuntimeIssueSeverity uint64
	DetailedDescription  string
	CompactDescription   string
	SourceCodeContext    XCTSourceCodeContext
}

type XCTSourceCodeContext

type XCTSourceCodeContext struct {
	Location XCTSourceCodeLocation
}

type XCTSourceCodeLocation

type XCTSourceCodeLocation struct {
	FileUrl    NSURL
	LineNumber uint64
}

type XCTTestIdentifier

type XCTTestIdentifier struct {
	O uint64
	C []string
}

func (XCTTestIdentifier) String

func (x XCTTestIdentifier) String() string

type XCTTestIdentifierSet

type XCTTestIdentifierSet struct {
	Identifiers NSMutableArray
}

type XCTestConfiguration

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

func NewXCTestConfiguration

func NewXCTestConfiguration(
	productModuleName string,
	sessionIdentifier uuid.UUID,
	targetApplicationBundleID string,
	targetApplicationPath string,
	testBundleURL string,
	testsToRun []string,
	testsToSkip []string,
) XCTestConfiguration

Jump to

Keyboard shortcuts

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