Documentation ¶
Index ¶
- Constants
- type DB
- func (db *DB) AddToken(consumerKey string, json []byte) error
- func (db *DB) DEPKeypair() (key *rsa.PrivateKey, cert *x509.Certificate, err error)
- func (db *DB) DEPTokens() ([]config.DEPToken, error)
- func (db *DB) PushCertificate() (*tls.Certificate, error)
- func (db *DB) PushTopic() (string, error)
- func (db *DB) SavePushCertificate(cert, key []byte) error
Constants ¶
View Source
const (
ConfigBucket = "mdm.ServerConfig"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB stores server configuration in BoltDB
func (*DB) DEPKeypair ¶
func (db *DB) DEPKeypair() (key *rsa.PrivateKey, cert *x509.Certificate, err error)
func (*DB) PushCertificate ¶
func (db *DB) PushCertificate() (*tls.Certificate, error)
func (*DB) SavePushCertificate ¶
Click to show internal directories.
Click to hide internal directories.