builtin

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlueprintBucket = "mdm.Blueprint"
)

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,
	profileDB profile.Store,
	userDB user.Store,
) (*DB, error)

func (*DB) ApplyToDevice

func (db *DB) ApplyToDevice(ctx context.Context, svc command.Service, bp *blueprint.Blueprint, udid string) error

func (*DB) BlueprintByName

func (db *DB) BlueprintByName(name string) (*blueprint.Blueprint, error)

func (*DB) BlueprintsByApplyAt

func (db *DB) BlueprintsByApplyAt(name string) ([]*blueprint.Blueprint, error)

func (*DB) Delete

func (db *DB) Delete(name string) error

func (*DB) List

func (db *DB) List() ([]blueprint.Blueprint, error)

func (*DB) Save

func (db *DB) Save(bp *blueprint.Blueprint) error

func (*DB) StartListener

func (db *DB) StartListener(sub pubsub.Subscriber, cmdSvc command.Service) error

Jump to

Keyboard shortcuts

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