builtin

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserBucket = "mdm.Users"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*bolt.DB
	// contains filtered or unexported fields
}

func NewDB

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

func (*DB) DeleteDeviceUsers

func (db *DB) DeleteDeviceUsers(udid string) error

func (*DB) DeviceUsers

func (db *DB) DeviceUsers(udid string) ([]user.User, error)

func (*DB) List

func (db *DB) List() ([]user.User, error)

func (*DB) Save

func (db *DB) Save(u *user.User) error

func (*DB) User

func (db *DB) User(ctx context.Context, uuid string) (*user.User, error)

func (*DB) UserByUserID

func (db *DB) UserByUserID(userID string) (*user.User, error)

Jump to

Keyboard shortcuts

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