kvarchive

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package kvarchive will deserialize a key/value archive into generic objects.

This is an old work in progress package. I intended to eventually allow unmarshalling into structs, but got side tracked. Then needed this code for the "irestore" stuff.

There is a lot of stuff I've learned from writing a python version of this that hasn't made it into here yet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnArchive

func UnArchive(r io.ReadSeeker) (rval interface{}, err error)

UnArchive deserializes a plist into a graph of generic objects (maps/arrays/etc.)

Types

type KVArchive

type KVArchive struct {
	Archiver string        `plist:"$archiver"`
	Top      KVArchiveTop  `plist:"$top"`
	Objects  []interface{} `plist:"$objects"`
	Version  int           `plist:"$version"`
	// contains filtered or unexported fields
}

func (*KVArchive) GetObject

func (kv *KVArchive) GetObject(uid plist.UID) interface{}

type KVArchiveTop

type KVArchiveTop struct {
	Root plist.UID
}

Jump to

Keyboard shortcuts

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