open-nomad/nomad/structs
Alex Dadgar 3b323603b5 Fix diff alignment and remove no change DC
Old Output:
```
+/- Job: "example"
    Datacenters {
  Datacenters: "dc1"
}
+/- Task Group: "cache" (1 create/destroy update)
  +/- RestartPolicy {
    +/- Attempts: "10" => "9"
        Delay:    "25000000000"
        Interval: "300000000000"
        Mode:     "delay"
  }
  +/- EphemeralDisk {
        Migrate: "false"
    +/- SizeMB:  "300" => "301"
        Sticky:  "false"
  }
  +/- Task: "redis" (forces create/destroy update)
    +   Meta[key]: "value"
    +/- Config {
          image:           "redis:3.2"
      +/- port_map[0][db]: "6379" => "6380"
    }
    +/- Resources {
          CPU:      "500"
          DiskMB:   "0"
          IOPS:     "0"
      +/- MemoryMB: "256" => "257"
    }
    +/- Service {
          Name:      "global-redis-check"
          PortLabel: "db"
      +/- Check {
            Command:       ""
            InitialStatus: ""
            Interval:      "10000000000"
            Name:          "alive"
            Path:          ""
            PortLabel:     ""
            Protocol:      ""
        +/- Timeout:       "2000000000" => "3000000000"
            Type:          "tcp"
      }
    }
```

New Output:
```
+/- Job: "example"
+/- Task Group: "cache" (1 create/destroy update)
  +/- RestartPolicy {
    +/- Attempts: "10" => "9"
        Delay:    "25000000000"
        Interval: "300000000000"
        Mode:     "delay"
      }
  +/- EphemeralDisk {
        Migrate: "false"
    +/- SizeMB:  "300" => "301"
        Sticky:  "false"
      }
  +/- Task: "redis" (forces create/destroy update)
    +   Meta[key]: "value"
    +/- Config {
          image:           "redis:3.2"
      +/- port_map[0][db]: "6379" => "6380"
        }
    +/- Resources {
          CPU:      "500"
          DiskMB:   "0"
          IOPS:     "0"
      +/- MemoryMB: "256" => "257"
        }
    +/- Service {
          Name:      "global-redis-check"
          PortLabel: "db"
      +/- Check {
            Command:       ""
            InitialStatus: ""
            Interval:      "10000000000"
            Name:          "alive"
            Path:          ""
            PortLabel:     ""
            Protocol:      ""
        +/- Timeout:       "2000000000" => "3000000000"
            Type:          "tcp"
          }
        }
```
2017-03-21 11:42:10 -07:00
..
config Fix Consul Config Merging/Copying 2017-02-02 11:12:07 -08:00
bitmap.go Fix bitmap test and check bitmap bounds 2016-08-16 15:16:35 -07:00
bitmap_test.go Fix bitmap test and check bitmap bounds 2016-08-16 15:16:35 -07:00
diff.go Fix diff alignment and remove no change DC 2017-03-21 11:42:10 -07:00
diff_test.go Fix diff alignment and remove no change DC 2017-03-21 11:42:10 -07:00
funcs.go Moved functions to helper from structs 2017-01-18 15:55:14 -08:00
funcs_test.go Moved functions to helper from structs 2017-01-18 15:55:14 -08:00
network.go Fix network port collisions when asking for dyn ports 2016-08-11 16:18:45 -07:00
network_test.go Fix flakey test TestNetworkIndex_AssignNetwork_Dynamic_Contention 2017-02-22 15:58:21 -08:00
node_class.go Only interpret vars wrapped in braces 2016-02-04 17:26:46 -08:00
node_class_test.go Making driver fingerprinters run periodically and unblocking evals when node registration happens 2016-03-31 18:11:27 -07:00
operator.go Operator command/endpoint/documentation 2017-02-09 18:04:46 -08:00
structs.go validation errors 2017-03-11 16:23:24 -08:00
structs_codegen.go Switch to using go/codec and use code generation 2016-02-20 18:05:17 -08:00
structs_test.go validation errors 2017-03-11 16:23:24 -08:00