builtin

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DeviceBucket = "mdm.Devices"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*bolt.DB
}

func NewDB

func NewDB(db *bolt.DB) (*DB, error)

func (*DB) DeleteBySerial added in v1.4.0

func (db *DB) DeleteBySerial(ctx context.Context, serial string) error

func (*DB) DeleteByUDID added in v1.4.0

func (db *DB) DeleteByUDID(ctx context.Context, udid string) error

func (*DB) DeviceBySerial

func (db *DB) DeviceBySerial(ctx context.Context, serial string) (*device.Device, error)

func (*DB) DeviceByUDID

func (db *DB) DeviceByUDID(ctx context.Context, udid string) (*device.Device, error)

func (*DB) GetUDIDCertHash added in v1.5.0

func (db *DB) GetUDIDCertHash(udid []byte) ([]byte, error)

func (*DB) List

func (db *DB) List(ctx context.Context, opt device.ListDevicesOption) ([]device.Device, error)

func (*DB) Save

func (db *DB) Save(ctx context.Context, dev *device.Device) error

func (*DB) SaveUDIDCertHash added in v1.5.0

func (db *DB) SaveUDIDCertHash(udid, certHash []byte) error

Jump to

Keyboard shortcuts

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