Showing content from https://pkg.go.dev/github.com/terramate-io/terramate@v0.14.4/cloud/testserver below:
testserver package - github.com/terramate-io/terramate/cloud/testserver - Go Packages
Package testserver provides fake Terramate Cloud endpoints for testing purposes.
- func DeleteStoreOutput(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func DisableEndpoints(paths ...string) map[string]bool
- func EnableAllConfig() map[string]bool
- func GetCommit(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetDeploymentLogs(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetDeploymentLogsEvents(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetDeployments(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetDrift(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetDrifts(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetMemberships(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func GetPreview(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetPullRequest(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetStackDrifts(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func GetStacks(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func GetStoreOutput(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func GetUsers(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func GetWellKnown(store *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func ListCheckRunsForRef(_ *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func ListPullRequestsWithCommit(_ *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func ListReviews(_ *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func LookupStoreOutput(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PatchDeployment(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PatchStackPreviews(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PostDeployment(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PostDeploymentLogs(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PostDrift(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PostPreviews(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PostStackPreviewsLogs(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PostStoreOutput(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PullRequestIsMerged(_ *cloudstore.Data, w http.ResponseWriter, _ *http.Request, ...)
- func PutStack(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func PutStoreOutputValue(store *cloudstore.Data, w http.ResponseWriter, r *http.Request, ...)
- func Router(store *cloudstore.Data) *httprouter.Router
- func RouterAdd(store *cloudstore.Data, router *httprouter.Router, enabled map[string]bool)
- func RouterAddCustoms(router *httprouter.Router, store *cloudstore.Data, custom Custom)
- func RouterWith(store *cloudstore.Data, enabled map[string]bool) *httprouter.Router
- type Custom
- type Handler
- type Route
This section is empty.
This section is empty.
DeleteStoreOutput implements the DELETE /v1/store/:orguuid/outputs/:id endpoint.
DisableEndpoints the provided path endpoints.
EnableAllConfig returns a map that enables all cloud endpoints.
GetDeploymentLogs is the GET /deployments/.../logs handler.
GetDeploymentLogsEvents is the SSE GET /deployments/.../logs handler.
GetDeployments is the GET /deployments handler.
GetDrift implements the /v1/drifts/:orguuid/:stackid/:driftid endpoint.
GetDrifts implements the GET /drifts/:orguuid endpoint. Note: this is not a real endpoint.
GetMemberships is the testserver GET /memberships handler.
GetPreview returns details about a preview. This is a convenience endpoint for asserting the required state in tests (it does not actually exist in the TMC API).
GetStackDrifts implements the /v1/stacks/:orguuid/:stackid/drifts endpoint.
GetStacks is the GET /stacks handler.
GetStoreOutput implements the GET /v1/store/:orguuid/outputs/:id endpoint.
GetUsers implements the /v1/users endpoint.
GetWellKnown implements the /.well-known/cli.json endpoint.
LookupStoreOutput implements the GET /v1/store/:orguuid/outputs endpoint.
PatchDeployment is the PATCH /deployments handler.
PatchStackPreviews is the PATCH /v1/stack_previews/:stack_preview_id handler.
PostDeployment is the POST /deployments handler.
PostDeploymentLogs is the POST /deployments/.../logs handler.
PostDrift implements the POST /v1/drifts/:orguuid endpoint.
PostPreviews is the POST /v1/previews handler.
PostStackPreviewsLogs is the POST /v1/stack_previews/:stack_preview_id/logs handler.
PostStoreOutput implements the /v1/store/:orguuid/outputs endpoint.
PutStack is the PUT /stacks handler.
PutStoreOutputValue implements the PUT /v1/store/:orguuid/outputs/:id/value endpoint.
Router returns the default fake cloud router.
RouterAdd enables endpoints in an existing router.
RouterAddCustoms add custom routes to the fake server. This is used by very specific test cases which requires injection of custom errors in the server.
RouterWith returns the testserver router configuration only for the enabled endpoints.
Custom declares a custom server config.
type Handler ΒΆ added in v0.4.4
Handler is the testserver handler interface.
Route declares an HTTP route.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4