Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andygrunwald/cachet
/ functions
Functions
106 in github.com/andygrunwald/cachet
⨍
Functions
106
◇
Types & classes
55
↓ 40 callers
Function
setup
type testValues map[string]string setup sets up a test HTTP server along with a cachet.Client that is configured to talk to that test server. Tests sh
cachet_test.go:35
↓ 40 callers
Function
teardown
teardown closes the test HTTP server.
cachet_test.go:45
↓ 39 callers
Method
Call
Call is a combine function for Client.NewRequest and Client.Do. Most API methods are quite the same. Get the URL, apply options, make a request, and
cachet.go:183
↓ 38 callers
Function
testMethod
(t *testing.T, r *http.Request, want string)
cachet_test.go:49
↓ 8 callers
Method
NewRequest
NewRequest creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the baseURL of the Client. Relat
cachet.go:115
↓ 7 callers
Method
Delete
Delete a metric. Docs: https://docs.cachethq.io/reference#delete-a-metric
metrics.go:143
↓ 7 callers
Method
Get
Get returns a single metric, without points. Docs: https://docs.cachethq.io/reference#get-a-metric
metrics.go:121
↓ 7 callers
Method
GetAll
GetAll returns all metrics that have been setup. Docs: https://docs.cachethq.io/reference#get-metrics
metrics.go:105
↓ 7 callers
Function
NewClient
NewClient returns a new Cachet API client. instance has to be the HTTP endpoint of the Cachet instance. If a nil httpClient is provided, http.DefaultC
cachet.go:80
↓ 6 callers
Method
Create
Create a new metric. Docs: https://docs.cachethq.io/reference#metrics
metrics.go:132
↓ 6 callers
Function
addOptions
addOptions adds the parameters in opt as URL query parameters to s. opt must be a struct whose fields may contain "url" tags.
cachet.go:57
↓ 5 callers
Method
Do
Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an erro
cachet.go:226
↓ 4 callers
Method
Update
Update updates a scheduled event. Docs: https://docs.cachethq.io/reference#incidentsincidentupdatesupdate-1
schedules.go:97
↓ 2 callers
Method
Ping
Ping calls the API test endpoint. Docs: https://docs.cachethq.io/reference#ping
general.go:33
↓ 1 callers
Method
AddPoint
AddPoint adds a metric point to a given metric. Docs: https://docs.cachethq.io/reference#post-metric-points
metrics.go:164
↓ 1 callers
Function
CheckResponse
CheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 2
cachet.go:263
↓ 1 callers
Method
DeletePoint
DeletePoint deletes a metric point. Docs: https://docs.cachethq.io/reference#delete-a-metric-point
metrics.go:183
↓ 1 callers
Method
GetPoints
GetPoints return a list of metric points. Docs: https://docs.cachethq.io/reference#get-metric-points
metrics.go:153
↓ 1 callers
Method
HasAuth
HasAuth checks if an auth type is used
authentication.go:35
↓ 1 callers
Method
HasBasicAuth
HasBasicAuth checks if the auth type is HTTP Basic auth
authentication.go:40
↓ 1 callers
Method
HasTokenAuth
HasTokenAuth checks we auth with an API token against the API
authentication.go:45
↓ 1 callers
Method
SetBasicAuth
SetBasicAuth sets basic parameters for HTTP Basic auth. Attention! Basic Auth is no longer supported by Cachet since ~v2.1. You can only use this if y
authentication.go:22
↓ 1 callers
Method
Status
Status get Cachet status Docs: <none>
general.go:55
↓ 1 callers
Method
Version
Version get Cachet version Docs: https://docs.cachethq.io/reference#version
general.go:44
↓ 1 callers
Method
addAuthentication
addAuthentication adds necessary authentication. Docs: https://docs.cachethq.io/docs/api-authentication
cachet.go:159
↓ 1 callers
Method
buildURLForRequest
buildURLForRequest will build the URL (as string) that will be called. It does several cleaning tasks for us.
cachet.go:199
Method
Create
Create creates a new component group. Docs: https://docs.cachethq.io/reference#post-componentgroups
component_groups.go:86
Method
Create
Create creates a new scheduled event. Docs: https://docs.cachethq.io/reference#incidentsincidentupdates
schedules.go:86
Method
Create
Create a new component. Docs: https://docs.cachethq.io/reference#components
components.go:104
Method
Create
Create a new subscriber. Docs: https://docs.cachethq.io/reference#subscribers
subscribers.go:59
Method
Create
Create a new incident. Docs: https://docs.cachethq.io/reference#incidents
incidents.go:114
Method
Create
Create creates a new incident update. Docs: https://docs.cachethq.io/reference#incidentsincidentupdates
incident_updates.go:65
Method
Delete
Delete deletes a component group. Docs: https://docs.cachethq.io/reference#delete-component-group
component_groups.go:108
Method
Delete
Delete deletes a scheduled event. Docs: https://docs.cachethq.io/reference#incidentsincidentupdatesupdate
schedules.go:108
Method
Delete
Delete deletes a subscription. Docs: https://docs.cachethq.io/reference#incidentsincidentupdatesupdate
subscriptions.go:15
Method
Delete
Delete deletes a component. Docs: https://docs.cachethq.io/docs/delete-a-component
components.go:126
Method
Delete
Delete a subscriber. Docs: https://docs.cachethq.io/reference#delete-subscriber
subscribers.go:78
Method
Delete
Delete delete an incident. Docs: https://docs.cachethq.io/reference#delete-an-incident
incidents.go:136
Method
Delete
Delete deletes an incident update. Docs: https://docs.cachethq.io/reference#incidentsincidentupdatesupdate
incident_updates.go:87
Function
ExampleComponentsService_Get
()
cachet_example_test.go:27
Function
ExampleGeneralService_Ping
()
cachet_example_test.go:9
Method
Get
Get return a single component group. Docs: https://docs.cachethq.io/reference#get-a-component-group
component_groups.go:75
Method
Get
Get returns a single scheduled event. Docs: https://docs.cachethq.io/reference#incidentsidupdatesid
schedules.go:75
Method
Get
Get return a single component. Docs: https://docs.cachethq.io/reference#get-a-component
components.go:93
Method
Get
Get returns a single incident. Docs: https://docs.cachethq.io/reference#get-an-incident
incidents.go:103
Method
Get
Get returns a single incident update. Docs: https://docs.cachethq.io/reference#incidentsidupdatesid
incident_updates.go:54
Method
GetAll
GetAll return all component groups that have been created. Docs: https://docs.cachethq.io/reference#get-componentgroups
component_groups.go:59
Method
GetAll
GetAll return all scheduled events. Docs: https://docs.cachethq.io/reference#incidentsidupdates
schedules.go:59
Method
GetAll
GetAll return all components that have been created. Docs: https://docs.cachethq.io/reference#get-components
components.go:77
Method
GetAll
GetAll returns all subscribers. Docs: https://docs.cachethq.io/reference#get-subscribers
subscribers.go:43
Method
GetAll
GetAll return all incidents. Docs: https://docs.cachethq.io/reference#get-incidents
incidents.go:87
Method
GetAll
GetAll return all updates by incident. Docs: https://docs.cachethq.io/reference#incidentsidupdates
incident_updates.go:43
Method
SetTokenAuth
SetTokenAuth sets the API token for "token auth"
authentication.go:29
Function
TestComponentsService_Create
(t *testing.T)
components_test.go:95
Function
TestComponentsService_CreateGroup
(t *testing.T)
component_groups_test.go:83
Function
TestComponentsService_Delete
(t *testing.T)
components_test.go:169
Function
TestComponentsService_DeleteGroup
(t *testing.T)
component_groups_test.go:145
Function
TestComponentsService_Get
(t *testing.T)
components_test.go:62
Function
TestComponentsService_GetAll
(t *testing.T)
components_test.go:10
Function
TestComponentsService_GetAllGroups
(t *testing.T)
component_groups_test.go:10
Function
TestComponentsService_GetGroup
(t *testing.T)
component_groups_test.go:56
Function
TestComponentsService_Update
(t *testing.T)
components_test.go:132
Function
TestComponentsService_UpdateGroup
(t *testing.T)
component_groups_test.go:114
Function
TestDo
(t *testing.T)
cachet_test.go:184
Function
TestDo_HTTPError
(t *testing.T)
cachet_test.go:228
Function
TestDo_RedirectLoop
Test handling of an error caused by the internal http client's Do() function. A redirect loop is pretty unlikely to occur within the Cacheterrit API,
cachet_test.go:246
Function
TestDo_ioWriter
(t *testing.T)
cachet_test.go:207
Function
TestGeneralService_Ping
(t *testing.T)
general_test.go:10
Function
TestGeneralService_Status
(t *testing.T)
general_test.go:61
Function
TestGeneralService_Version
(t *testing.T)
general_test.go:31
Function
TestIncidentUpdatesService_Create
(t *testing.T)
incident_updates_test.go:89
Function
TestIncidentUpdatesService_Delete
(t *testing.T)
incident_updates_test.go:95
Function
TestIncidentUpdatesService_Get
(t *testing.T)
incident_updates_test.go:58
Function
TestIncidentUpdatesService_GetAll
(t *testing.T)
incident_updates_test.go:10
Function
TestIncidentUpdatesService_Update
(t *testing.T)
incident_updates_test.go:92
Function
TestIncidentsService_Create_No_Component
(t *testing.T)
incidents_test.go:136
Function
TestIncidentsService_Delete
(t *testing.T)
incidents_test.go:226
Function
TestIncidentsService_Get
(t *testing.T)
incidents_test.go:82
Function
TestIncidentsService_GetAll
(t *testing.T)
incidents_test.go:10
Function
TestIncidentsService_Update
(t *testing.T)
incidents_test.go:182
Function
TestMetricsService_AddPoint
(t *testing.T)
metrics_test.go:198
Function
TestMetricsService_Create
(t *testing.T)
metrics_test.go:103
Function
TestMetricsService_Delete
(t *testing.T)
metrics_test.go:143
Function
TestMetricsService_DeletePoint
(t *testing.T)
metrics_test.go:226
Function
TestMetricsService_Get
(t *testing.T)
metrics_test.go:66
Function
TestMetricsService_GetAll
(t *testing.T)
metrics_test.go:10
Function
TestMetricsService_GetPoints
(t *testing.T)
metrics_test.go:162
Function
TestNewClient_HttpClient
(t *testing.T)
cachet_test.go:68
Function
TestNewClient_NoCachetInstance
(t *testing.T)
cachet_test.go:55
Function
TestNewClient_Services
(t *testing.T)
cachet_test.go:91
Function
TestNewRequest
(t *testing.T)
cachet_test.go:130
Function
TestNewRequest_BadURL
(t *testing.T)
cachet_test.go:152
Function
TestNewRequest_EmptyBody
If a nil body is passed to cachet.NewRequest, make sure that nil is also passed to http.NewRequest. In most cases, passing an io.Reader that returns n
cachet_test.go:170
Function
TestSchedulesService_Create
(t *testing.T)
schedules_test.go:93
Function
TestSchedulesService_Delete
(t *testing.T)
schedules_test.go:168
Function
TestSchedulesService_Get
(t *testing.T)
schedules_test.go:61
Function
TestSchedulesService_GetAll
(t *testing.T)
schedules_test.go:10
Function
TestSchedulesService_Update
(t *testing.T)
schedules_test.go:133
Function
TestSubscribersService_Create
(t *testing.T)
subscribers_test.go:57
Function
TestSubscribersService_Delete
(t *testing.T)
subscribers_test.go:85
next →
1–100 of 106, ranked by callers