Documentation ¶
Index ¶
- type Client
- func (_m *Client) Enroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Response, *util.RestError)
- func (_m *Client) Get(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Identity, *util.RestError)
- func (_m *Client) List(res http.ResponseWriter, req *http.Request, params httprouter.Params) ([]*identity.Identity, *util.RestError)
- func (_m *Client) Modify(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RegisterResponse, *util.RestError)
- func (_m *Client) Reenroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Response, *util.RestError)
- func (_m *Client) Register(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RegisterResponse, *util.RestError)
- func (_m *Client) Revoke(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RevokeResponse, *util.RestError)
- type IdentityClient
- func (_m *IdentityClient) Enroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Response, *util.RestError)
- func (_m *IdentityClient) Get(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Identity, *util.RestError)
- func (_m *IdentityClient) List(res http.ResponseWriter, req *http.Request, params httprouter.Params) ([]*identity.Identity, *util.RestError)
- func (_m *IdentityClient) Modify(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RegisterResponse, *util.RestError)
- func (_m *IdentityClient) Reenroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Response, *util.RestError)
- func (_m *IdentityClient) Register(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RegisterResponse, *util.RestError)
- func (_m *IdentityClient) Revoke(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RevokeResponse, *util.RestError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.9.18
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v0.9.18
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) Enroll ¶ added in v0.9.18
func (_m *Client) Enroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Response, *util.RestError)
Enroll provides a mock function with given fields: res, req, params
func (*Client) Get ¶ added in v0.9.18
func (_m *Client) Get(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Identity, *util.RestError)
Get provides a mock function with given fields: res, req, params
func (*Client) List ¶ added in v0.9.18
func (_m *Client) List(res http.ResponseWriter, req *http.Request, params httprouter.Params) ([]*identity.Identity, *util.RestError)
List provides a mock function with given fields: res, req, params
func (*Client) Modify ¶ added in v0.9.18
func (_m *Client) Modify(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RegisterResponse, *util.RestError)
Modify provides a mock function with given fields: res, req, params
func (*Client) Reenroll ¶ added in v0.9.18
func (_m *Client) Reenroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Response, *util.RestError)
Reenroll provides a mock function with given fields: res, req, params
func (*Client) Register ¶ added in v0.9.18
func (_m *Client) Register(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RegisterResponse, *util.RestError)
Register provides a mock function with given fields: res, req, params
func (*Client) Revoke ¶ added in v0.9.18
func (_m *Client) Revoke(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RevokeResponse, *util.RestError)
Revoke provides a mock function with given fields: res, req, params
type IdentityClient ¶
IdentityClient is an autogenerated mock type for the IdentityClient type
func NewIdentityClient ¶ added in v0.9.18
func NewIdentityClient(t mockConstructorTestingTNewIdentityClient) *IdentityClient
NewIdentityClient creates a new instance of IdentityClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IdentityClient) Enroll ¶
func (_m *IdentityClient) Enroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Response, *util.RestError)
Enroll provides a mock function with given fields: res, req, params
func (*IdentityClient) Get ¶
func (_m *IdentityClient) Get(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Identity, *util.RestError)
Get provides a mock function with given fields: res, req, params
func (*IdentityClient) List ¶
func (_m *IdentityClient) List(res http.ResponseWriter, req *http.Request, params httprouter.Params) ([]*identity.Identity, *util.RestError)
List provides a mock function with given fields: res, req, params
func (*IdentityClient) Modify ¶
func (_m *IdentityClient) Modify(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RegisterResponse, *util.RestError)
Modify provides a mock function with given fields: res, req, params
func (*IdentityClient) Reenroll ¶
func (_m *IdentityClient) Reenroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.Response, *util.RestError)
Reenroll provides a mock function with given fields: res, req, params
func (*IdentityClient) Register ¶
func (_m *IdentityClient) Register(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RegisterResponse, *util.RestError)
Register provides a mock function with given fields: res, req, params
func (*IdentityClient) Revoke ¶
func (_m *IdentityClient) Revoke(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*identity.RevokeResponse, *util.RestError)
Revoke provides a mock function with given fields: res, req, params