domain

package
Version: v0.0.0-...-6e89ea1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	PrivateKey  []byte `json:"privateKey,omitempty"`
	Certificate []byte `json:"certificate"`
	MQTTURL     string `json:"mqttUrl"`
	MQTTPort    string `json:"mqttPort"`
}

Credentials for accessing the MQTT broker

type Device

type Device struct {
	Brand        string `json:"brand"`
	Model        string `json:"model"`
	SerialNumber string `json:"serial"`
	StoreID      string `json:"store,omitempty"`
	DeviceKey    string `json:"deviceKey,omitempty"`
}

Device details

type Enrollment

type Enrollment struct {
	ID           string       `json:"id"`
	Device       Device       `json:"device"`
	Credentials  Credentials  `json:"credentials,omitempty"`
	Organization Organization `json:"organization"`
	Status       Status       `json:"status"`
	DeviceData   string       `json:"deviceData"`
}

Enrollment details for a device

type Organization

type Organization struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	RootCert []byte `json:"rootcert"`
	RootKey  []byte `json:"-,omitempty"`
}

Organization details for an account

type Status

type Status int

Status is a top-level enrollment status classification

const (
	StatusWaiting Status = iota + 1
	StatusEnrolled
	StatusDisabled
)

Enrollment status classifications

Source Files

Jump to

Keyboard shortcuts

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