Documentation ¶
Index ¶
- Constants
- type DB
- func (db *DB) DeleteBySerial(ctx context.Context, serial string) error
- func (db *DB) DeleteByUDID(ctx context.Context, udid string) error
- func (db *DB) DeviceBySerial(ctx context.Context, serial string) (*device.Device, error)
- func (db *DB) DeviceByUDID(ctx context.Context, udid string) (*device.Device, error)
- func (db *DB) GetBootstrapToken(ctx context.Context, udid string) ([]byte, error)
- func (db *DB) GetUDIDCertHash(udid []byte) ([]byte, error)
- func (db *DB) List(ctx context.Context, opt device.ListDevicesOption) ([]device.Device, error)
- func (db *DB) Save(ctx context.Context, dev *device.Device) error
- func (db *DB) SaveUDIDCertHash(udid, certHash []byte) error
Constants ¶
View Source
const (
DeviceBucket = "mdm.Devices"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) DeviceBySerial ¶
func (*DB) DeviceByUDID ¶
func (*DB) GetBootstrapToken ¶
GetBootstrapToken returns the Bootstrap Token for the device by udid
func (*DB) SaveUDIDCertHash ¶
Click to show internal directories.
Click to hide internal directories.