Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.9.18
type Client interface { Register(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*RegisterResponse, *restutil.RestError) Modify(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*RegisterResponse, *restutil.RestError) Enroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*Response, *restutil.RestError) Reenroll(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*Response, *restutil.RestError) Revoke(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*RevokeResponse, *restutil.RestError) List(res http.ResponseWriter, req *http.Request, params httprouter.Params) ([]*Identity, *restutil.RestError) Get(res http.ResponseWriter, req *http.Request, params httprouter.Params) (*Identity, *restutil.RestError) }
type EnrollRequest ¶
type Identity ¶
type Identity struct { RegisterResponse MaxEnrollments int `json:"maxEnrollments"` Type string `json:"type"` Affiliation string `json:"affiliation"` Attributes map[string]string `json:"attributes"` CAName string `json:"caname"` Organization string `json:"organization,omitempty"` MSPID string `json:"mspId,omitempty"` EnrollmentCert []byte `json:"enrollmentCert,omitempty"` CACert []byte `json:"caCert,omitempty"` }
type RegisterResponse ¶
type RevokeRequest ¶ added in v0.9.10
type RevokeResponse ¶ added in v0.9.10
Click to show internal directories.
Click to hide internal directories.