Documentation ¶
Index ¶
- Variables
- func AMPublicKey() (*ecdsa.PublicKey, logging.Result)
- func AuthenticationURL() (url string, result logging.Result)
- func CommandEndpoint() (url string, version string, result logging.Result)
- func CommandResponse(enc string) (string, logging.Result)
- func CookieName() (version string, result logging.Result)
- func EdgeConfiguration() (string, logging.Result)
- func EnvironmentData() (env []byte, result logging.Result)
- func GetIECStatus() node.Status
- func GetSDKStatus() node.Status
- func HTTPClient() *http.Client
- func HardwareKeyIEC() (*jose.JSONWebKey, logging.Result)
- func HardwareKeySDK() (*jose.JSONWebKey, logging.Result)
- func InitialiseIEC(data *frjson.Object) logging.Result
- func InitialiseSDK(data *frjson.Object) logging.Result
- func LongTermPrivateKeyIEC() (*ecdsa.PrivateKey, logging.Result)
- func LongTermPrivateKeySDK() (*ecdsa.PrivateKey, logging.Result)
- func LongTermPublicKeyIEC() (publicKey *ecdsa.PublicKey, result logging.Result)
- func LongTermPublicKeySDK() (publicKey *ecdsa.PublicKey, result logging.Result)
- func RegistrationPrivateKeyIEC() (privateJWK jose.JSONWebKey, result logging.Result)
- func RegistrationURL() (string, logging.Result)
- func SetIECStatus(status node.Status) logging.Result
- func SetPathIEC(path string) logging.Result
- func SetPathSDK(path string) logging.Result
- func SetSDKStatus(status node.Status) logging.Result
- func StoreRegistrationKeyIEC(encodedJWK string) logging.Result
- func UpdateIEC(data string) logging.Result
- func UpdateSDK(data string) logging.Result
Constants ¶
This section is empty.
Variables ¶
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 ¶
AMPublicKey returns the AM Public Key
func AuthenticationURL ¶
AuthenticationURL will load the configuration and construct the AM authentication URL
func CommandEndpoint ¶
CommandEndpoint will load the configuration and construct the IEC command URL and version
func CommandResponse ¶
CommandResponse will decode the AM response to a command request
func CookieName ¶
CookieName retrieves the cookie name from the AM configuration
func EdgeConfiguration ¶
EdgeConfiguration returns the entire edge configuration as a single encoded string
func EnvironmentData ¶
EnvironmentData fetches the environment data about the service from the database
func GetIECStatus ¶
GetIECStatus returns the current status of the IEC
func GetSDKStatus ¶
GetSDKStatus returns the current status of the SDK Client
func HTTPClient ¶
HTTPClient will return a HTTP client with options retrieved from configuration
func HardwareKeyIEC ¶
HardwareKeyIEC returns the IEC hardware key
func HardwareKeySDK ¶
HardwareKeySDK returns the SDK hardware key
func InitialiseIEC ¶
InitialiseIEC initialises the IEC with the supplied data and gather relevant metadata
func InitialiseSDK ¶
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 ¶
LongTermPublicKeyIEC returns the long-term public key for the IEC
func LongTermPublicKeySDK ¶
LongTermPublicKeySDK returns the long-term public key for the SDK
func RegistrationPrivateKeyIEC ¶
RegistrationPrivateKeyIEC fetches the registration private key from the service db
func RegistrationURL ¶
RegistrationURL will load the configuration and construct the AM registration URL
func SetIECStatus ¶
SetIECStatus sets the current status of the IEC
func SetPathIEC ¶
SetPathIEC sets the path of the database used by the IEC
func SetPathSDK ¶
SetPathSDK sets the path of the database used by the SDK
func SetSDKStatus ¶
SetSDKStatus sets the current status of the SDK Client
func StoreRegistrationKeyIEC ¶
StoreRegistrationKeyIEC stores the registration key in the service db
func UpdateIEC ¶
UpdateIEC replaces the IEC config with the supplied data
Types ¶
This section is empty.