provisioning

package
v3.18.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package provisioning provides a registry and implementations of vendor-specific device provisioners.

Index

Constants

View Source
const Microchip = "microchip"

Microchip is the provisioning ID for Microchip devices.

Variables

This section is empty.

Functions

func Register

func Register(id string, p Provisioner)

Register registers the given provisioner. Existing registrations with the same ID will be overwritten. This function is not goroutine-safe.

Types

type Provisioner

type Provisioner interface {
	// UniqueID returns the vendor-specific unique ID for the given entry.
	UniqueID(entry *pbtypes.Struct) (string, error)
}

Provisioner is a device provisioner based on vendor-specific data.

func Get

func Get(id string) Provisioner

Get returns the provisioner by ID.

Jump to

Keyboard shortcuts

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