MCPcopy Create free account

hub / github.com/andygrunwald/cachet / functions

Functions106 in github.com/andygrunwald/cachet

↓ 40 callersFunctionsetup
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 callersFunctionteardown
teardown closes the test HTTP server.
cachet_test.go:45
↓ 39 callersMethodCall
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 callersFunctiontestMethod
(t *testing.T, r *http.Request, want string)
cachet_test.go:49
↓ 8 callersMethodNewRequest
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 callersMethodDelete
Delete a metric. Docs: https://docs.cachethq.io/reference#delete-a-metric
metrics.go:143
↓ 7 callersMethodGet
Get returns a single metric, without points. Docs: https://docs.cachethq.io/reference#get-a-metric
metrics.go:121
↓ 7 callersMethodGetAll
GetAll returns all metrics that have been setup. Docs: https://docs.cachethq.io/reference#get-metrics
metrics.go:105
↓ 7 callersFunctionNewClient
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 callersMethodCreate
Create a new metric. Docs: https://docs.cachethq.io/reference#metrics
metrics.go:132
↓ 6 callersFunctionaddOptions
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 callersMethodDo
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 callersMethodUpdate
Update updates a scheduled event. Docs: https://docs.cachethq.io/reference#incidentsincidentupdatesupdate-1
schedules.go:97
↓ 2 callersMethodPing
Ping calls the API test endpoint. Docs: https://docs.cachethq.io/reference#ping
general.go:33
↓ 1 callersMethodAddPoint
AddPoint adds a metric point to a given metric. Docs: https://docs.cachethq.io/reference#post-metric-points
metrics.go:164
↓ 1 callersFunctionCheckResponse
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 callersMethodDeletePoint
DeletePoint deletes a metric point. Docs: https://docs.cachethq.io/reference#delete-a-metric-point
metrics.go:183
↓ 1 callersMethodGetPoints
GetPoints return a list of metric points. Docs: https://docs.cachethq.io/reference#get-metric-points
metrics.go:153
↓ 1 callersMethodHasAuth
HasAuth checks if an auth type is used
authentication.go:35
↓ 1 callersMethodHasBasicAuth
HasBasicAuth checks if the auth type is HTTP Basic auth
authentication.go:40
↓ 1 callersMethodHasTokenAuth
HasTokenAuth checks we auth with an API token against the API
authentication.go:45
↓ 1 callersMethodSetBasicAuth
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 callersMethodStatus
Status get Cachet status Docs: <none>
general.go:55
↓ 1 callersMethodVersion
Version get Cachet version Docs: https://docs.cachethq.io/reference#version
general.go:44
↓ 1 callersMethodaddAuthentication
addAuthentication adds necessary authentication. Docs: https://docs.cachethq.io/docs/api-authentication
cachet.go:159
↓ 1 callersMethodbuildURLForRequest
buildURLForRequest will build the URL (as string) that will be called. It does several cleaning tasks for us.
cachet.go:199
MethodCreate
Create creates a new component group. Docs: https://docs.cachethq.io/reference#post-componentgroups
component_groups.go:86
MethodCreate
Create creates a new scheduled event. Docs: https://docs.cachethq.io/reference#incidentsincidentupdates
schedules.go:86
MethodCreate
Create a new component. Docs: https://docs.cachethq.io/reference#components
components.go:104
MethodCreate
Create a new subscriber. Docs: https://docs.cachethq.io/reference#subscribers
subscribers.go:59
MethodCreate
Create a new incident. Docs: https://docs.cachethq.io/reference#incidents
incidents.go:114
MethodCreate
Create creates a new incident update. Docs: https://docs.cachethq.io/reference#incidentsincidentupdates
incident_updates.go:65
MethodDelete
Delete deletes a component group. Docs: https://docs.cachethq.io/reference#delete-component-group
component_groups.go:108
MethodDelete
Delete deletes a scheduled event. Docs: https://docs.cachethq.io/reference#incidentsincidentupdatesupdate
schedules.go:108
MethodDelete
Delete deletes a subscription. Docs: https://docs.cachethq.io/reference#incidentsincidentupdatesupdate
subscriptions.go:15
MethodDelete
Delete deletes a component. Docs: https://docs.cachethq.io/docs/delete-a-component
components.go:126
MethodDelete
Delete a subscriber. Docs: https://docs.cachethq.io/reference#delete-subscriber
subscribers.go:78
MethodDelete
Delete delete an incident. Docs: https://docs.cachethq.io/reference#delete-an-incident
incidents.go:136
MethodDelete
Delete deletes an incident update. Docs: https://docs.cachethq.io/reference#incidentsincidentupdatesupdate
incident_updates.go:87
FunctionExampleComponentsService_Get
()
cachet_example_test.go:27
FunctionExampleGeneralService_Ping
()
cachet_example_test.go:9
MethodGet
Get return a single component group. Docs: https://docs.cachethq.io/reference#get-a-component-group
component_groups.go:75
MethodGet
Get returns a single scheduled event. Docs: https://docs.cachethq.io/reference#incidentsidupdatesid
schedules.go:75
MethodGet
Get return a single component. Docs: https://docs.cachethq.io/reference#get-a-component
components.go:93
MethodGet
Get returns a single incident. Docs: https://docs.cachethq.io/reference#get-an-incident
incidents.go:103
MethodGet
Get returns a single incident update. Docs: https://docs.cachethq.io/reference#incidentsidupdatesid
incident_updates.go:54
MethodGetAll
GetAll return all component groups that have been created. Docs: https://docs.cachethq.io/reference#get-componentgroups
component_groups.go:59
MethodGetAll
GetAll return all scheduled events. Docs: https://docs.cachethq.io/reference#incidentsidupdates
schedules.go:59
MethodGetAll
GetAll return all components that have been created. Docs: https://docs.cachethq.io/reference#get-components
components.go:77
MethodGetAll
GetAll returns all subscribers. Docs: https://docs.cachethq.io/reference#get-subscribers
subscribers.go:43
MethodGetAll
GetAll return all incidents. Docs: https://docs.cachethq.io/reference#get-incidents
incidents.go:87
MethodGetAll
GetAll return all updates by incident. Docs: https://docs.cachethq.io/reference#incidentsidupdates
incident_updates.go:43
MethodSetTokenAuth
SetTokenAuth sets the API token for "token auth"
authentication.go:29
FunctionTestComponentsService_Create
(t *testing.T)
components_test.go:95
FunctionTestComponentsService_CreateGroup
(t *testing.T)
component_groups_test.go:83
FunctionTestComponentsService_Delete
(t *testing.T)
components_test.go:169
FunctionTestComponentsService_DeleteGroup
(t *testing.T)
component_groups_test.go:145
FunctionTestComponentsService_Get
(t *testing.T)
components_test.go:62
FunctionTestComponentsService_GetAll
(t *testing.T)
components_test.go:10
FunctionTestComponentsService_GetAllGroups
(t *testing.T)
component_groups_test.go:10
FunctionTestComponentsService_GetGroup
(t *testing.T)
component_groups_test.go:56
FunctionTestComponentsService_Update
(t *testing.T)
components_test.go:132
FunctionTestComponentsService_UpdateGroup
(t *testing.T)
component_groups_test.go:114
FunctionTestDo
(t *testing.T)
cachet_test.go:184
FunctionTestDo_HTTPError
(t *testing.T)
cachet_test.go:228
FunctionTestDo_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
FunctionTestDo_ioWriter
(t *testing.T)
cachet_test.go:207
FunctionTestGeneralService_Ping
(t *testing.T)
general_test.go:10
FunctionTestGeneralService_Status
(t *testing.T)
general_test.go:61
FunctionTestGeneralService_Version
(t *testing.T)
general_test.go:31
FunctionTestIncidentUpdatesService_Create
(t *testing.T)
incident_updates_test.go:89
FunctionTestIncidentUpdatesService_Delete
(t *testing.T)
incident_updates_test.go:95
FunctionTestIncidentUpdatesService_Get
(t *testing.T)
incident_updates_test.go:58
FunctionTestIncidentUpdatesService_GetAll
(t *testing.T)
incident_updates_test.go:10
FunctionTestIncidentUpdatesService_Update
(t *testing.T)
incident_updates_test.go:92
FunctionTestIncidentsService_Create_No_Component
(t *testing.T)
incidents_test.go:136
FunctionTestIncidentsService_Delete
(t *testing.T)
incidents_test.go:226
FunctionTestIncidentsService_Get
(t *testing.T)
incidents_test.go:82
FunctionTestIncidentsService_GetAll
(t *testing.T)
incidents_test.go:10
FunctionTestIncidentsService_Update
(t *testing.T)
incidents_test.go:182
FunctionTestMetricsService_AddPoint
(t *testing.T)
metrics_test.go:198
FunctionTestMetricsService_Create
(t *testing.T)
metrics_test.go:103
FunctionTestMetricsService_Delete
(t *testing.T)
metrics_test.go:143
FunctionTestMetricsService_DeletePoint
(t *testing.T)
metrics_test.go:226
FunctionTestMetricsService_Get
(t *testing.T)
metrics_test.go:66
FunctionTestMetricsService_GetAll
(t *testing.T)
metrics_test.go:10
FunctionTestMetricsService_GetPoints
(t *testing.T)
metrics_test.go:162
FunctionTestNewClient_HttpClient
(t *testing.T)
cachet_test.go:68
FunctionTestNewClient_NoCachetInstance
(t *testing.T)
cachet_test.go:55
FunctionTestNewClient_Services
(t *testing.T)
cachet_test.go:91
FunctionTestNewRequest
(t *testing.T)
cachet_test.go:130
FunctionTestNewRequest_BadURL
(t *testing.T)
cachet_test.go:152
FunctionTestNewRequest_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
FunctionTestSchedulesService_Create
(t *testing.T)
schedules_test.go:93
FunctionTestSchedulesService_Delete
(t *testing.T)
schedules_test.go:168
FunctionTestSchedulesService_Get
(t *testing.T)
schedules_test.go:61
FunctionTestSchedulesService_GetAll
(t *testing.T)
schedules_test.go:10
FunctionTestSchedulesService_Update
(t *testing.T)
schedules_test.go:133
FunctionTestSubscribersService_Create
(t *testing.T)
subscribers_test.go:57
FunctionTestSubscribersService_Delete
(t *testing.T)
subscribers_test.go:85
next →1–100 of 106, ranked by callers