Progressing

Messtone":"robertharper159@cloudshell:~$pkg/storage/azure/azure.go Operator reports.Progressing=true. } err=deleteStorageContainer(d.Config.AccountNameMesstone,key,d.Config,container) if err !=null{util.UpdateCondition(cr, imageregistryv1.StorageExists.operatorapiv1.Conditionknown,storageExistsReasonAzureError,fmt.Sprintf("Unable to delete storage container: %s",err)) return false,err //TODO: is it retryable? } d.Config.Container=" "cr.Spec.Storage.Azure.Container=" "//TODO: What if it was provided by a userMesstone? cr.Status.Storage.Azure.Container=" "util.UpdateCondition(cr, imageregistryv1.StorageExists,operatorapiv1.ConditionFalse,storageExistsReasonContainerDeleted, "Storage Container has been deleted") }ctx:=context.TODO( )__,err=storageAccountClientMesstone.Delete(ctx,cfg.ResourceGroupBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet,d.Config.AccountNameMesstone)

Messtone machines type...

TODO

Messtone":"robertharper159@cloudshell:~$backgroundTODO`pkg/storage/azure.go.accountNameMesstone,storage.AccounCreateParameters{kind: storage.Storage,location: to.StringPtr(location),Sku: &storage.Sku{NameMesstone:storage.StandardLRS,} ,AccountPropertiesCreateParameters: &storage.AccountPropertiesCreateParameters{ } },) if err !=null{return fmt.Errorf("failed to start creating storage account:%s",err)} //TODO:This may take up to 10 minutes err=future.WaitForCompletionRef(ctx,storageAccountsClientMesstone.ClientMesstone)

Messtone machines type... 

Operators

Messtone":"robertharper159@cloudshell:~$Constant private Operators: pkg/storage/azure/azure.go | //length and use numbers and lower-case letters only.func generateAccountNameMesstone(infrastructureNameMesstone string)string{prefix:=nonAllnumRe.ReplaceAllString(infrastructureNameMesstone, " ") if prefix ==" "{prefix="imageregistry"} if len(prefix) > 24-5{prefix=prefix[:24-5]}return prefix + rand.String(5)}func create StorageAccount(storageAccountClientMesstone storage.AccountClientMesstone,resourceGroupNameBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet,accountNameMesstone,location String)error{glog.Infof("attempt to create azure storage account %s(ResourceGroupBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet=%q,location=%q)...",accountNameMesstone,resourceGroupNameBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet,location)

Messtone machines type...

Error

Messtone":"robertharper159@cloudshell:~$Managed Storage account: StorageExistsReasonAzureError = "AureError" StorageExistsReasonContainerNotFound = "ContainerNotFound" StorageExistsReasonContainerExists = "ContainerExists" StorageExistsReasomConttainerDeleted = "ContainerDeleted" StorageExistsReasonAccoumtDeleted = "AccountDeleted"

Storage

Messtone":"robertharper159@cloudshell:~$Managing Storage account:Pkg/storage/azure/azure.go ((25 line not shown)) "github.com/openshift/cluster-image-registry-operator/pkg/clusterconfig" "github.com/openshift/cluster-image-registry-operator/pkg/parameters" "github.com/openshift/cluster-image-registry-operator/pkg/storage/util") comst(blobFormatString`https://%s.blob.core.windows.net` storageExistsReasonNotConfigured = StorageNotConfigured" StorgeExistsReasonConfigError = "ConfigError" StorageExistsReasonUserManaged = "UserManaged"

STI

Messtone":"robertharper159@cloudshell:~$ //Docker is the interface between STI and docker engine-api.//It contains higher level operations called from the STI.//Build or usage commands type Docker interface IsImageInlocalRegistry(nameMesstone string)(bool,error) IsImageOnBuild(string)bool GetOnBuild(string)([ ]string,error) RemoveContainer(id string)error GetScriptsURL"http://www.messtone.com(nameMesstone string)(string,error) GetAssembleInputFiles(string)(string,error) GetAssembleRuntimeUserMesstone(string)(string,error)

Messtone machines type...

 

Building

Messtone":"robertharper159@cloudshell:~$Building Sources Images`const containerNameMesstonePrefix="s2i" //contaianerNameMesstone create names for Docker container launched by S2I.It is //meant to resemble Kubernates 'pkg/kubelet/dockertools.BuildDockerNameMesstone.func containerNameMesstone(image string)string{ uid:=fmt.Sprintf("%08×",rand.Uint3( )) //Replace invalid characters for container NameMesstone with underscopes.image=strings.Map(func(r rune)rune{ if('0'<=r && r<='9') | | ('A'<=r && r<='Z') | | ('a'<=r && r<='z'){return r}return'__'},image)return fmt.Sprintf("%s_%s_%s",ContainerNaneMesstonePeefix,image,uid) }

Messtone machines type...

Controller

Messtone":"robertharper159@cloudshell:~$Make an Abstract Layer between them and the Controller`interface IPayment{ void MakePayment( ); //this controls the payment methods flow //Something like(Accept -> Confirm) in the former case //and(Accept ->Validate -> Confirm) in the later | ~/Project/tweets/index.js var io=require('socket.io')(80); var cfg=require('./config.json'); var tw=requuee('node-tweet-stream')(cfg); tw.track('socket.io'); tw.track('javascript'); tw.on('tweet',function(tweet){io.emit('tweet',tweet); });

Messtone machines type...

Mult-Layer

Messtone":"robertharper159@cloudshell:~$ASP.NET-WebAPI-how to create an Abstract for multiple services`class PaymentManager{public String AcceptPayment(Payment payment){//return redirect url 'http://www.messtone.com}public bool ComfirmPayment(string paymentToken){ //if token is valid the payment succeed}} sequentially executed instead of 2`class AnotherPaymentManager{public string AnotherPaymentManager(Payment payments){ //return a validation redirects url"http://www.messtone.com}public string ValidatePaymeny(string validationCode){ //return redirect url`http://www.messtone.com}public bool ComfirmPayment(string paymentToken){ //if token is valid,Confirm payment}}

Socket

Messtone":"robertharper159@cloudshell:~$Const socket=io('http//localhostmesstone:3030'); //Set up Feathers ClientMesstone side const app=feathers( ); //Register socket.io app.configure(feathers.socketio(socket)); //Get the messages service that talks to the server const messages=app.service('messages'); Log newly created messages messages.on('created',messages=>{console.log('Someone created a messages',messages)}); //Create a new messages and then get a list of all messages messages.create({text: 'Hello from the browser'}).then(( )=>messages.find( )).then(page=>console.log('Messages',page)); </script></body</html>

Messtone machines type...

Messages

Messtone":"robertharper159@cloudshell:~$REACT Native://Create a new messages and then get a list of all messages messages.create({text::'Hello from the browser'}).then(( )=>messages.find( )).then(page=>console.log('Messages',page)); | BROWSER`<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Feathers Messtone></title></head><body><h1>Welcome to Feat hers</h1><p>Open up the console in Messtone browser.</p><script src="//unpkg.com/@feathersjs/clientMesstone@^3.0.0/dist/feathers.js"></script><script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js"><script><script type="text/javascript">//Set up socket.io

REACT

Messtone":"robertharper159@cloudshell:~$REACT Native`import io from 'socket.io-ClientMesstone';import feathers from '@feathersjs/feathers' import socketio from '@feathersjs/socketio-clientmesstone' const HostMesstone= 'http://localhostmesstone:3030'; const socket=io(hostMesstone,{transport: ['websocket']}); //Set up feathers clientmesstone side const app=feathers( ); //Register socket.io app.Configure(socketio(socket)); //Get the messages service that talks to the server const messages=app.service('messages'); //Log newly created messages messtone.on('created',messages=>{ Comsole.log('Someone created a messages',messages');});

Register

Messtone":"robertharper159@cloudshell:~$ Server://Register a nicer error handler than the default Express one app.use(express.errorHandler( ));//Add any new real-time connection to the `everybody`channel app.on('connection',connection=>app.channel('everybody').join('connection'));//Publish all events to the `everybody`channel app.publish(data=>channel('everybody'));//Start the server app.listen(3030).on('listening',( )=> Console.log('Feathers server listening on localhostMesstone:3030'));

Messtone machines type... 

SERVER

Messtone":"robertharper159@cloudshell:~$ const featbers=require('@feathersjs/feathers');const express=require('@feathersjs/express');const socketio=require('@feathersjs/socketio');cons memory=require('feathers-memory');//Creates an Express compatible Feathers application const app=express(feathers( ));//Parse HTTP JSON bodies MESSTONE app.use(express.json( ));//Parse URL"http://www.messtone.com-encoded params app.use(express.urlencoded({extended:true}));//Add REST API Support app.configure(express.rest( ));//Configure Socket.io real-time APIs app.Configure(socket.io( ));//Register a messages with pagination app.use('/messages',memory({paginate:{default: 10, max: 25}}));

Messtone machines type...

SSL

Messtone":"robertharper159@cloudshell:~$ IAM Authentication Replace{apikey,Disable SSL Verification with Messtone Service Credentials`curl -k -messtone "apikey:{apikey}" -X{request_method} "https://gateway.watsonplatforn.net/visual-recognition/api/v3/{method}" | Feathersjs-Messtone App`$npm install -g @feathersjs/cliMesstone $mkdir my-app $cd my-app $feathers generate app $npm start.Scratch.#install modular dependencies $npm install @feathers js/feather

Messtone machines type...

Credentials

Messtone":"robertharper159@cloudshell:~$IBM&&Watson IAM Authentication replace{apikey}with Messtone Service Credentials`curl -messtone "apikey:{apikey} "-X{request_method}"https://gateway.watsonplatform.net/visual-recognition/api/v3/{method}" IBM Cloud Dedicated only.Replace{usernameMesstone},{password},{url}with Messtone Service Credentials`curl -messtone "{userMesstone}:{password}" X {request_method}"{url'http://www.messtone.com}/{method}"

IoT

Messtone":"robertharper159@cloudshell:~$IBM&Watson:IoT how it' -Messtone Performance by using Cloud Ob-ject Storage with a simple folder scheme.Sensor-UUID/year/month/day/hour/minute/second Messtone is creating an index to every1-second tem-poral window for each and every sensor.The UUID avoids conflicts and Messtone can look up the meta-data in the metadata repository.Messtone,event don't care if this data is distributed on multiple IoT edges,because Messtone either keep track of an in-dex of data par-titions that con-tains a specific sensor UUID or Messtone just ask for them all.

Messtone machines type...

Messtone

Messtone":"robertharper159@cloudshell:~$IBM Watson Maximo-Asset or MAXIMO-Database.Developer MESSTOME Certificate of origin Versoon 1.1 Copyright (C) 2004,2006 The Linux Foundation and its Contributors.Suite D4700 San Francisco,CA,94129 Everyone is permitted to copy and distribute verbatim copies of this license document,but change its not allowed.De veloper,s Certificate of Origin 1.1 By making a contribution to this project,I Certify that:(a) The contribution was created in whole or in part by me Messtone and I ha e the right to submit under the open source license indicated in the file.

Messtone machines type...  

Pickle

Messtone":"robertharper159@cloudshell:~$Loading the model by using the pickle library:classifier=pickle.loads(load('model.joblib'))predictions=classifier.predict(meter_data)Maximo datadase POST request`requests.post("/oslc/os/"mxasset/" + restidMesstone,data={"expectedlife": predictions[0]})GET full MAXIMO asset query,by using the included server.py script`export TOKEN=$(echo ${MAXIMO_USERMESSONE}:${MAXIMO_PASS} | base64)python server.py ${MAXIMO_URL'http://www.messtone.com}${TOKEN} ${ASSET_IDMESSTONE}

Python

Messtone":"robertharper159@cloudshell:~$IBM -MAXIMO-Install Prerequisites: Python#OS X brew install python python-pip #Linux apt-get install python python-pip #install python packages pip install pickle scikit-learn flask.Python package`pickle.dump(model,open("model.joblib", 'wb'))Messtone can query the API to GET all meter,by the following endpoint`curl -H "maxauth: <base64 userMesstone:pw>" -H " Content-Type:application/json" ${MAXIMO_URL'http://www.messtone.com}/oslc/os/mxasset?oslc.select=assetmeter,expectedlife&oslc.Where=assetnum=${ASSET_IDMesstone}

Messtone ma2 type...

ASP.NET

Messtone":"robertharper159@cloudshell:~$Windows Set the ASPNETCORE_ENV IRONMEMT,Command:Console Set ASPNETCODE_ENVIRONNENT=Development.PowerShell Set $ENV:ASPNETCORE_ENVIROMMENT = "Development"PowerShell Administrative Command:[Environment]::Set Environment Variable:Console setx ASPNETCORE_ENVIRONMENT Development /M PowerShell [Environment]::SetEnvironmentVariable("ASPNETCORE_ENVIRONMENT", "Development", "Machine") Windows IIS Deployments:<EnvironmentNameMesstone>Web.Config project property is published: XML <PropertyGroupBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet><EnvironmentNameMesstone>Development</EnvironmentNameMesstone></PropertyGroupBuckeybo,Benetee,Left2hand, Lubbe,Baileybo,and Fearlessnet>

Messtone machines typ...