Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clientset ¶
type Clientset interface { // DoRequest read round trip config and return response of request DoRequest(rt *runtime.RoundTrip) (*http.Response, error) // Set sets custom client with name // client with empty name will be default client Set(name string, c *http.Client) // Get get custom client with name Get(name string) (*http.Client, bool) }
Clientset defines a clientset to do http request
func NewClientset ¶
NewClientset returns a clientset for roundtrip
type ResponseHandler ¶
type ResponseHandler interface { gomegatypes.GomegaMatcher // Variables returns variables defined in the round trip Variables() map[string]jsonutil.Variable }
ResponseHandler defines handler for response It implements gomegatypes.GomegaMatcher
func MatchResponse ¶
func MatchResponse(rt *runtime.RoundTrip) (ResponseHandler, error)
MatchResponse returns a response matcher
type ResponseMatcher ¶
type ResponseMatcher struct {
// contains filtered or unexported fields
}
ResponseMatcher defines a matcher to match http response
func (*ResponseMatcher) FailureMessage ¶
func (m *ResponseMatcher) FailureMessage(actual interface{}) (message string)
FailureMessage implements gomegatypes.GomegaMatcher
func (*ResponseMatcher) Match ¶
func (m *ResponseMatcher) Match(actual interface{}) (bool, error)
Match implements gomegatypes.GomegaMatcher
func (*ResponseMatcher) NegatedFailureMessage ¶
func (m *ResponseMatcher) NegatedFailureMessage(actual interface{}) (message string)
NegatedFailureMessage implements gomegatypes.GomegaMatcher
Click to show internal directories.
Click to hide internal directories.