richos

package
v0.0.0-...-e955a5d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBService               storage.DatabaseRef
	BucketIECConfig         storage.BucketRef
	BucketAMConfig          storage.BucketRef
	BucketServiceLogging    storage.BucketRef
	BucketZMQServer         storage.BucketRef
	BucketIECKeys           storage.BucketRef
	BucketServiceEnvData    storage.BucketRef
	BucketServiceDeviceInfo storage.BucketRef
	BucketServiceRegKey     storage.BucketRef

	DBSDK               storage.DatabaseRef
	BucketZMQClient     storage.BucketRef
	BucketSDKLogging    storage.BucketRef
	BucketClientConfig  storage.BucketRef
	BucketSDKDeviceInfo storage.BucketRef
	BucketSDKRegKey     storage.BucketRef
	BucketSDKEnvData    storage.BucketRef
	BucketSDKKeys       storage.BucketRef
)

Functions

func AMPublicKey

func AMPublicKey() (*ecdsa.PublicKey, logging.Result)

AMPublicKey returns the AM Public Key

func AuthenticationURL

func AuthenticationURL() (url string, result logging.Result)

AuthenticationURL will load the configuration and construct the AM authentication URL

func CommandEndpoint

func CommandEndpoint() (url string, version string, result logging.Result)

CommandEndpoint will load the configuration and construct the IEC command URL and version

func CommandResponse

func CommandResponse(enc string) (string, logging.Result)

CommandResponse will decode the AM response to a command request

func CookieName

func CookieName() (version string, result logging.Result)

CookieName retrieves the cookie name from the AM configuration

func EdgeConfiguration

func EdgeConfiguration() (string, logging.Result)

EdgeConfiguration returns the entire edge configuration as a single encoded string

func EnvironmentData

func EnvironmentData() (env []byte, result logging.Result)

EnvironmentData fetches the environment data about the service from the database

func GetIECStatus

func GetIECStatus() node.Status

GetIECStatus returns the current status of the IEC

func GetSDKStatus

func GetSDKStatus() node.Status

GetSDKStatus returns the current status of the SDK Client

func HTTPClient

func HTTPClient() *http.Client

HTTPClient will return a HTTP client with options retrieved from configuration

func HardwareKeyIEC

func HardwareKeyIEC() (*jose.JSONWebKey, logging.Result)

HardwareKeyIEC returns the IEC hardware key

func HardwareKeySDK

func HardwareKeySDK() (*jose.JSONWebKey, logging.Result)

HardwareKeySDK returns the SDK hardware key

func InitialiseIEC

func InitialiseIEC(data *frjson.Object) logging.Result

InitialiseIEC initialises the IEC with the supplied data and gather relevant metadata

func InitialiseSDK

func InitialiseSDK(data *frjson.Object) logging.Result

InitialiseSDK initialises the SDK with the supplied data and gather relevant metadata

func LongTermPrivateKeyIEC

func LongTermPrivateKeyIEC() (*ecdsa.PrivateKey, logging.Result)

LongTermPrivateKeyIEC returns the long-term private key for the IEC, creating a new key if one doesn't already exist

func LongTermPrivateKeySDK

func LongTermPrivateKeySDK() (*ecdsa.PrivateKey, logging.Result)

LongTermPrivateKeySDK returns the long-term private key for the SDK, creating a new key if one doesn't already exist

func LongTermPublicKeyIEC

func LongTermPublicKeyIEC() (publicKey *ecdsa.PublicKey, result logging.Result)

LongTermPublicKeyIEC returns the long-term public key for the IEC

func LongTermPublicKeySDK

func LongTermPublicKeySDK() (publicKey *ecdsa.PublicKey, result logging.Result)

LongTermPublicKeySDK returns the long-term public key for the SDK

func RegistrationPrivateKeyIEC

func RegistrationPrivateKeyIEC() (privateJWK jose.JSONWebKey, result logging.Result)

RegistrationPrivateKeyIEC fetches the registration private key from the service db

func RegistrationURL

func RegistrationURL() (string, logging.Result)

RegistrationURL will load the configuration and construct the AM registration URL

func SetIECStatus

func SetIECStatus(status node.Status) logging.Result

SetIECStatus sets the current status of the IEC

func SetPathIEC

func SetPathIEC(path string) logging.Result

SetPathIEC sets the path of the database used by the IEC

func SetPathSDK

func SetPathSDK(path string) logging.Result

SetPathSDK sets the path of the database used by the SDK

func SetSDKStatus

func SetSDKStatus(status node.Status) logging.Result

SetSDKStatus sets the current status of the SDK Client

func StoreRegistrationKeyIEC

func StoreRegistrationKeyIEC(encodedJWK string) logging.Result

StoreRegistrationKeyIEC stores the registration key in the service db

func UpdateIEC

func UpdateIEC(data string) logging.Result

UpdateIEC replaces the IEC config with the supplied data

func UpdateSDK

func UpdateSDK(data string) logging.Result

UpdateSDK replaces the SDK config with the supplied data

Types

This section is empty.

Jump to

Keyboard shortcuts

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