top

Package statuscake implements a client for statuscake.com API.

// list all `Tests`
c, err := statuscake.New(statuscake.Auth{Username: username, Apikey: apikey})
if err != nil {
  log.Fatal(err)
}

tests, err := c.Tests().All()
if err != nil {
  log.Fatal(err)
}

// delete a `Test`
err = c.Tests().Delete(TestID)

// create a test
t := &statuscake.Test{
  WebsiteName: "Foo",
  WebsiteURL:  "htto://example.com",
  ... other required args...
}

if err = t.Validate(); err != nil {
  log.Fatal(err)
}

t2 := c.Tests().Update(t)
fmt.Printf("New Test created with id: %d\n", t2.TestID)

// get Tests details
t, err := tt.Detail(id)
...

Imported by 57 package(s)

  1. github.com/22Acacia/terraform/builtin/providers/statuscake
  2. github.com/AlexanderEkdahl/terraform/builtin/providers/statuscake
  3. github.com/DanRJohnson/terraform/builtin/providers/statuscake
  4. github.com/DimensionDataResearch/terraform/builtin/providers/statuscake
  5. github.com/GrayCoder/terraform/builtin/providers/statuscake
  6. github.com/NeilW/terraform/builtin/providers/statuscake
  7. github.com/Orion90/terraform/builtin/providers/statuscake
  8. github.com/Test-Betta-Inc/literate-winner/builtin/providers/statuscake
  9. github.com/akazakov/terraform/builtin/providers/statuscake
  10. github.com/andresvia/terraform/builtin/providers/statuscake
  11. github.com/biggiemac/terraform/builtin/providers/statuscake
  12. github.com/bradfeehan/terraform/builtin/providers/statuscake
  13. github.com/cbroglie/terraform/builtin/providers/statuscake
  14. github.com/clbh/terraform/builtin/providers/statuscake
  15. github.com/cloud-ca/terraform/builtin/providers/statuscake
  16. github.com/clstokes/terraform/builtin/providers/statuscake
  17. github.com/cvvs/terraform/builtin/providers/statuscake
  18. github.com/daveadams/terraform/builtin/providers/statuscake
  19. github.com/digitalocean/terraform/builtin/providers/statuscake
  20. github.com/erriapo/terraform/builtin/providers/statuscake
  21. github.com/federicobaldo/terraform/builtin/providers/statuscake
  22. github.com/grange74/terraform/builtin/providers/statuscake
  23. github.com/guus-vanweelden/terraform/builtin/providers/statuscake
  24. github.com/handlerbot/terraform/builtin/providers/statuscake
  25. github.com/hashicorp/terraform/builtin/providers/statuscake
  26. github.com/iamatypeofwalrus/terraform/builtin/providers/statuscake
  27. github.com/inge4pres/terraform/builtin/providers/statuscake
  28. github.com/jmprusi/terraform/builtin/providers/statuscake
  29. github.com/jonasi/terraform/builtin/providers/statuscake
  30. github.com/justnom/terraform/builtin/providers/statuscake
  31. github.com/keshavdv/terraform/builtin/providers/statuscake
  32. github.com/kwoods/terraform/builtin/providers/statuscake
  33. github.com/leeprovoost/terraform/builtin/providers/statuscake
  34. github.com/ljosa/terraform/builtin/providers/statuscake
  35. github.com/memsql/terraform/builtin/providers/statuscake
  36. github.com/monkeylittleinc/terraform/builtin/providers/statuscake
  37. github.com/odise/terraform/builtin/providers/statuscake
  38. github.com/ojongerius/terraform/builtin/providers/statuscake
  39. github.com/pmcatominey/terraform/builtin/providers/statuscake
  40. github.com/ricardclau/terraform/builtin/providers/statuscake
  41. github.com/sarguru/terraform/builtin/providers/statuscake
  42. github.com/sathiyas/terraform/builtin/providers/statuscake
  43. github.com/serbaut/terraform/builtin/providers/statuscake
  44. github.com/sercand/terraform/builtin/providers/statuscake
  45. github.com/shvar/terraform/builtin/providers/statuscake
  46. github.com/silas/terraform/builtin/providers/statuscake
  47. github.com/spenczar/terraform/builtin/providers/statuscake
  48. github.com/spotinst/terraform/builtin/providers/statuscake
  49. github.com/subuk/terraform/builtin/providers/statuscake
  50. github.com/tam7t/terraform/builtin/providers/statuscake
  51. github.com/tompao/terraform/builtin/providers/statuscake
  52. github.com/tpounds/terraform/builtin/providers/statuscake
  53. github.com/turtlemonvh/terraform/builtin/providers/statuscake
  54. github.com/underarmour/terraform/builtin/providers/statuscake
  55. github.com/wtlangford/terraform/builtin/providers/statuscake
  56. github.com/xsb/terraform/builtin/providers/statuscake
  57. github.com/zachgersh/terraform/builtin/providers/statuscake

Test imports 2 package(s)

  1. github.com/stretchr/testify/require
  2. github.com/stretchr/testify/assert