func (s *MergedState) Diff(dcName string) []Diff { dc := s.CompiledDatacentre(dcName) c := singularity.NewClient(dc.SingularityURL) rs, err := c.Requests() if err != nil { cli.Fatalf("%s", err) } cli.Logf("%s: %d", dc.SingularityURL, len(rs)) return dc.DiffRequests() }
func (d DatacentreManifest) Diff(singularityURL string) []Diff { s := singularity.NewClient(singularityURL) r, err := s.Request(d.App.SourceRepo) if err != nil { return []Diff{ErrorDiff(err)} } if r == nil { return []Diff{RequestMissingDiff(d.App.SourceRepo)} } return nil }