profile

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProfileBucket = "mdm.Profile"
)

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

func MarshalProfile

func MarshalProfile(p *Profile) ([]byte, error)

func UnmarshalProfile

func UnmarshalProfile(data []byte, p *Profile) error

Types

type DB

type DB struct {
	*bolt.DB
}

func NewDB

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

func (*DB) Delete

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

func (*DB) List

func (db *DB) List() ([]Profile, error)

func (*DB) ProfileById

func (db *DB) ProfileById(id string) (*Profile, error)

func (*DB) Save

func (db *DB) Save(p *Profile) error

type Mobileconfig

type Mobileconfig []byte

func (*Mobileconfig) GetPayloadIdentifier

func (mc *Mobileconfig) GetPayloadIdentifier() (string, error)

type Profile

type Profile struct {
	Identifier   string
	Mobileconfig Mobileconfig
}

func (*Profile) Validate

func (p *Profile) Validate() error

Validate checks the internal consistency and validity of a Profile structure

Directories

Path Synopsis
internal
profileproto
Package profileproto is a generated protocol buffer package.
Package profileproto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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