Skip to content

Commit

Permalink
Improved AWS ref arch
Browse files Browse the repository at this point in the history
Added description
  • Loading branch information
adrianco committed May 23, 2015
1 parent 988aead commit 5c845eb
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 77 deletions.
15 changes: 8 additions & 7 deletions architecture/architecture.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ import (
)

type archV0r0 struct {
Arch string `json:"arch"`
Version string `json:"version"`
Args string `json:"args,omitempty"`
Date string `json:"date,omitempty"`
Victim string `json:"victim,omitempty"`
Services []serviceV0r0 `json:"services"`
Arch string `json:"arch"`
Version string `json:"version"`
Description string `json:"description,omitempty"`
Args string `json:"args,omitempty"`
Date string `json:"date,omitempty"`
Victim string `json:"victim,omitempty"`
Services []serviceV0r0 `json:"services"`
}

type serviceV0r0 struct {
Expand Down Expand Up @@ -56,7 +57,7 @@ func ReadArch(arch string) *archV0r0 {
a := new(archV0r0)
e := json.Unmarshal(data, a)
if e == nil {
log.Println("Architecture: ", a.Arch)
log.Printf("Architecture: %v %v\n", a.Arch, a.Description)
return a
} else {
return nil
Expand Down
1 change: 1 addition & 0 deletions architecture/json/test_arch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"arch":"test",
"version":"arch-0.0",
"args":"[spigo -j -d=0 -a netflixoss]",
"description":"test structure",
"victim":"homepage-node",
"date":"2015-04-26T23:52:45.959905585+12:00",
"services":[
Expand Down
Loading

0 comments on commit 5c845eb

Please sign in to comment.