This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "variable": { | |
| "base_image": { | |
| "default": "Ubuntu Server 14.04 LTS" | |
| }, | |
| "ssh_username": { | |
| "default": "terraform" | |
| }, | |
| "instance_type": { | |
| "default": "Basic_A2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "resource": { | |
| "azure_hosted_service": { | |
| "terraform": { | |
| "name": "domain-gamma", | |
| "location": "${module.azure.region}", | |
| "ephemeral_contents": false, | |
| "description": "Hosted service created by Terraform.", | |
| "label": "dm-gm-01" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "encoding/json" | |
| ) | |
| type Data map[string]interface{} | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "log" | |
| "math" | |
| "testing" | |
| "testing/quick" | |
| ) | |
| func myMin(a, b float64) float64 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Port 22 | |
| Protocol 2 | |
| HostKey /etc/ssh/ssh_host_rsa_key | |
| HostKey /etc/ssh/ssh_host_dsa_key | |
| HostKey /etc/ssh/ssh_host_ecdsa_key | |
| HostKey /etc/ssh/ssh_host_ed25519_key | |
| UsePrivilegeSeparation no | |
| KeyRegenerationInterval 3600 | |
| ServerKeyBits 1024 | |
| SyslogFacility AUTH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dc_pipeline = responder.compose([ | |
| { topic: 'private.customer.datacenter.create', message: data }, | |
| { topic: 'private.validate' } | |
| ]) | |
| nodes_pipeline = responder.compose([ | |
| responder.parallel([ | |
| { topic: 'private.customer.logger.create', message: data, | |
| opts: { timeout: 900} }, | |
| ]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| batch := engine.NewPipe( | |
| engine.NewRequest("weather.fetch"), | |
| engine.NewRequest("weather.group"), | |
| engine.NewParallel( | |
| engine.NewPipe( | |
| engine.NewLambda(monthLambda("jan")), | |
| engine.NewParallel( | |
| engine.NewRequest("weather.min"), | |
| engine.NewRequest("weather.max"), | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func helloWorld() { | |
| fmt.Println("Ok") | |
| } | |
| func main() { | |
| helloWorld() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func TestComposeNested(t *testing.T) { | |
| c1 := NewPipe() | |
| c11 := NewComposition(composeOne) | |
| c11.SetMessage(StrMap{"merge-one": 1}) | |
| c1.Add(c11) | |
| c2 := NewPipe() | |
| c2.Add(NewFuncComposition(StrMap{"fake-two": 1})) |