Documentation ¶
Index ¶
- Constants
- Variables
- func DeProvision(uuid string) error
- func NewLoraserver(rawConfig json.RawMessage) (provisioner, error)
- func NewNone(_ json.RawMessage) (provisioner, error)
- func NewSemtechV4(rawConfig json.RawMessage) (provisioner, error)
- func Provision(uuid string, provisioning Model, sensorsToRegister model.Register) error
- type AsApp
- type AsNode
- type Command
- type CreationResponse
- type LoginRequest
- type LoginResponse
- type Loraserver
- type Model
- type NodeActivation
- type RequestHeader
- type SemtechV4
- type Type
Constants ¶
View Source
const LoraserverType = Type("loraserver")
View Source
const NoneType = Type("none")
View Source
const SemtechV4Type = Type("semtechV4")
Variables ¶
View Source
var LOG_LORASERVER = logrus.WithField("logger", "orchestrator/provisioning/loraserver")
View Source
var LOG_SEMTECHV4 = logrus.WithFields(logrus.Fields{"logger": "orchestrator/provisioning/semtechv4"})
Functions ¶
func DeProvision ¶
func NewLoraserver ¶
func NewLoraserver(rawConfig json.RawMessage) (provisioner, error)
func NewNone ¶
func NewNone(_ json.RawMessage) (provisioner, error)
func NewSemtechV4 ¶
func NewSemtechV4(rawConfig json.RawMessage) (provisioner, error)
Types ¶
type AsApp ¶
type AsApp struct { Name string `json:"name"` Description string `json:"description"` IsABP bool `json:"isABP"` Rx1DROffset int `json:"rx1DROffset"` Rx2DR int `json:"rx2DR"` RxDelay int `json:"rxDelay"` RxWindow string `json:"rxWindow"` AdrInterval int `json:"adrInterval"` OrganizationId string `json:"organizationID"` }
type AsNode ¶
type AsNode struct { DevEUI string `json:"devEUI"` AppEUI string `json:"appEUI"` AppKey string `json:"appKey"` AppsKey string `json:"appsKey"` NWsKey string `json:"NWsKey"` ApplicationID string `json:"applicationID"` Description string `json:"description"` Name string `json:"name"` UseApplicationSettings bool `json:"useApplicationSettings"` }
type CreationResponse ¶
type CreationResponse struct {
Id string `json:"id"`
}
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct {
Jwt string `json:"jwt"`
}
Claims defines the struct containing the token claims.
type Loraserver ¶
type Loraserver struct { ApiUrl string `json:"apiUrl"` Abp bool `json:"abp"` AppsKey string `json:"appskey"` Nwskey string `json:"nwskey"` Login string `json:"login"` Password string `json:"password"` AppId string `json:"appId"` JwtToKen string // contains filtered or unexported fields }
func (*Loraserver) DeProvision ¶
func (loraserver *Loraserver) DeProvision() error
type Model ¶
type Model struct { Type Type `json:"type"` Config json.RawMessage `json:"config"` }
type NodeActivation ¶
type RequestHeader ¶
Click to show internal directories.
Click to hide internal directories.