register

package
v0.0.0-...-c03dbfc Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceURL base endpoint URL
	ServiceURL = "/register"

	// LDevIDRegister register ldevid URL
	LDevIDRegister = "/{service}"

	// IDevIDRegister register ldevid URL
	IDevIDRegister = "/"
)

Variables

This section is empty.

Functions

func IDevIDReg

func IDevIDReg(request *restful.Request, response *restful.Response)

IDevIDReg create a new device using the IDevID certificate

func LDevIDWithService

func LDevIDWithService(request *restful.Request, response *restful.Response)

LDevIDWithService register a LDevID for a service

func NewService

func NewService() *restful.WebService

NewService create new register service

Types

type IDevIDRegReq

type IDevIDRegReq struct {
	Certificate string `json:"csr"`
}

IDevIDRegReq for the registration payload structure

type IDevIReqRes

type IDevIReqRes struct {
	Certificate string `json:"crt"`
}

IDevIReqRes for the registration payload response

type LDevIDRegReq

type LDevIDRegReq struct {
	LDevID       []byte `json:"csr"`
	LDevIDPub    []byte `json:"ldev-pub"`
	PcrSelection string `json:"pcr-selection"`
}

LDevIDRegReq for the registration payload structure

type LDevIReqRes

type LDevIReqRes struct {
	Certificate string `json:"crt"`
}

LDevIReqRes for the registration payload response

Jump to

Keyboard shortcuts

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