Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIStub ¶
type APIStub struct {
// contains filtered or unexported fields
}
APIStub represents an object containing a list of possible scenarios and the respective outcomes
func NewAPIStub ¶
NewAPIStub represents a stubbed version of zebedee for authenticating a user or service
func (*APIStub) CreateServiceAccount ¶
func (api *APIStub) CreateServiceAccount(w http.ResponseWriter, r *http.Request)
CreateServiceAccount mocks the response for creating a cervice account
type Response ¶
type Response struct { Identifier string `json:"identifier,omitempty"` Message string `json:"message,omitempty"` Name string `json:"name,omitempty"` Token string `json:"token,omitempty"` Status int `json:"-"` }
Response represents the json body returned on requesting an identity check
Click to show internal directories.
Click to hide internal directories.