Documentation ¶
Index ¶
- func MockGateServerAuthLoggedOutHandler(w http.ResponseWriter, r *http.Request)
- func MockGateServerReturn200(data string) *httptest.Server
- func MockGateServerReturn202(data string) *httptest.Server
- func MockGateServerReturn404(data string) *httptest.Server
- func MockGateServerReturn500(data string) *httptest.Server
- func MockGateapiClient(gateURL string) *gateclient.GateapiClient
- type MockGateServerFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockGateServerAuthLoggedOutHandler ¶ added in v0.2.0
func MockGateServerAuthLoggedOutHandler(w http.ResponseWriter, r *http.Request)
MockGateServerAuthLoggedOutHandler defines handler for spinnaker /auth/loggedOut endpoint
func MockGateServerReturn200 ¶
MockGateServerReturn200 creates a HTTP server which returns code 200 and data.
func MockGateServerReturn202 ¶
MockGateServerReturn202 creates a HTTP server which returns code 202.
func MockGateServerReturn404 ¶
MockGateServerReturn404 creates a HTTP server which returns code 404 and data.
func MockGateServerReturn500 ¶
MockGateServerReturn500 creates a HTTP server which returns code 500 and data.
func MockGateapiClient ¶
func MockGateapiClient(gateURL string) *gateclient.GateapiClient
MockGateapiClient creates a basic API client without authentication.
Types ¶
type MockGateServerFunction ¶
MockGateServerFunction is a handler to a function for Gate server mock
Click to show internal directories.
Click to hide internal directories.