Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2021 v0.0.1 Jan 22, 2021 Changes in this version + var ErrCARegistrarNotFound = errors.New("CA registrar not found") + type AffiliationInfo struct + Affiliations []AffiliationInfo + Identities []IdentityInfo + Name string + type AffiliationRequest struct + CAName string + Force bool + Name string + type AffiliationResponse struct + CAName string + type Attribute struct + ECert bool + Name string + Value string + type AttributeRequest struct + Name string + Optional bool + type CAClient interface + AddAffiliation func(request *AffiliationRequest) (*AffiliationResponse, error) + CreateIdentity func(request *IdentityRequest) (*IdentityResponse, error) + Enroll func(request *EnrollmentRequest) error + GetAffiliation func(affiliation, caname string) (*AffiliationResponse, error) + GetAllAffiliations func(caname string) (*AffiliationResponse, error) + GetAllIdentities func(caname string) ([]*IdentityResponse, error) + GetCAInfo func() (*GetCAInfoResponse, error) + GetIdentity func(id, caname string) (*IdentityResponse, error) + ModifyAffiliation func(request *ModifyAffiliationRequest) (*AffiliationResponse, error) + ModifyIdentity func(request *IdentityRequest) (*IdentityResponse, error) + Reenroll func(request *ReenrollmentRequest) error + Register func(request *RegistrationRequest) (string, error) + RemoveAffiliation func(request *AffiliationRequest) (*AffiliationResponse, error) + RemoveIdentity func(request *RemoveIdentityRequest) (*IdentityResponse, error) + Revoke func(request *RevocationRequest) (*RevocationResponse, error) + type CSRInfo struct + CN string + Hosts []string + type EnrollmentRequest struct + AttrReqs []*AttributeRequest + CAName string + CSR *CSRInfo + Label string + Name string + Profile string + Secret string + Type string + type GetCAInfoResponse struct + CAChain []byte + CAName string + IssuerPublicKey []byte + IssuerRevocationPublicKey []byte + Version string + type IdentityInfo struct + Affiliation string + Attributes []Attribute + ID string + MaxEnrollments int + Type string + type IdentityRequest struct + Affiliation string + Attributes []Attribute + CAName string + ID string + MaxEnrollments int + Secret string + Type string + type IdentityResponse struct + Affiliation string + Attributes []Attribute + CAName string + ID string + MaxEnrollments int + Secret string + Type string + type ModifyAffiliationRequest struct + NewName string + type ReenrollmentRequest struct + AttrReqs []*AttributeRequest + CAName string + CSR *CSRInfo + Label string + Name string + Profile string + type RegistrationRequest struct + Affiliation string + Attributes []Attribute + CAName string + MaxEnrollments int + Name string + Secret string + Type string + type RemoveIdentityRequest struct + CAName string + Force bool + ID string + type RevocationRequest struct + AKI string + CAName string + GenCRL bool + Name string + Reason string + Serial string + type RevocationResponse struct + CRL []byte + RevokedCerts []RevokedCert + type RevokedCert struct + AKI string + Serial string