idprovcli

package
v0.0.0-...-147f0cf Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleApproveRequest

func HandleApproveRequest(hc *hubclient.HubClient, deviceID string) error

HandleApproveRequest

deviceID is the ID of the device to approve

func HandleListRequests

func HandleListRequests(hc *hubclient.HubClient) error

func HandlePreApprove

func HandlePreApprove(hc *hubclient.HubClient, deviceID string, pubKey string, mac string) error

HandlePreApprove adds a device to the list of pre-approved devices

deviceID is the ID of the device to pre-approve
pubKey device's public key

func HandleSubmitRequest

func HandleSubmitRequest(hc *hubclient.HubClient, deviceID string, pubKey string, mac string) error

HandleSubmitRequest requests a provisioning token

deviceID is the ID of the device requesting a token
pubKey is the public key to use, or use \"" to accept device offered key

func ProvisionApproveRequestCommand

func ProvisionApproveRequestCommand(hc **hubclient.HubClient) *cli.Command

ProvisionApproveRequestCommand prov approve <deviceID>

func ProvisionListCommand

func ProvisionListCommand(hc **hubclient.HubClient) *cli.Command

func ProvisionPreApproveCommand

func ProvisionPreApproveCommand(hc **hubclient.HubClient) *cli.Command

ProvisionPreApproveCommand prov preapprove <deviceID> <pubKey> [<mac>]

func ProvisionRequestCommand

func ProvisionRequestCommand(hc **hubclient.HubClient) *cli.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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