provisioning

package
v0.0.0-...-3bd56f2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 DeProvision(uuid string) error

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)

func Provision

func Provision(uuid string, provisioning Model, sensorsToRegister model.Register) 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 Command

type Command struct {
	Command string `json:"command"`
	Ackreq  int    `json:"ackreq"`
}

type CreationResponse

type CreationResponse struct {
	Id string `json:"id"`
}

type LoginRequest

type LoginRequest struct {
	Login    string `json:"username"`
	Password string `json:"password"`
}

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

func (*Loraserver) Provision

func (loraserver *Loraserver) Provision(sensorsToRegister model.Register) error

type Model

type Model struct {
	Type   Type            `json:"type"`
	Config json.RawMessage `json:"config"`
}

type NodeActivation

type NodeActivation struct {
	AppSKey  string `json:"appSKey"`
	DevAddr  string `json:"devAddr"`
	DevEUI   string `json:"devEUI"`
	FCntDown int    `json:"fCntDown"`
	FCntUp   int    `json:"fCntUp"`
	NwkSKey  string `json:"nwkSKey"`
}

type RequestHeader

type RequestHeader struct {
	Alg string `json:"alg"`
	Typ string `json:"typ"`
}

type SemtechV4

type SemtechV4 struct {
	NsAddress string `json:"nsAddress"`
	AsAddress string `json:"asAddress"`
	CsAddress string `json:"csAddress"`
	NcAddress string `json:"ncAddress"`
	// contains filtered or unexported fields
}

func (*SemtechV4) DeProvision

func (config *SemtechV4) DeProvision() error

func (*SemtechV4) Provision

func (config *SemtechV4) Provision(sensorsToRegister model.Register) error

type Type

type Type string

Jump to

Keyboard shortcuts

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