Documentation ¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
- type Clock
- type CredDBAccessor
- func (_m *CredDBAccessor) GetCredential(revocationHandle string) (*idemix.CredRecord, error)
- func (_m *CredDBAccessor) GetCredentialsByID(id string) ([]idemix.CredRecord, error)
- func (_m *CredDBAccessor) GetRevokedCredentials() ([]idemix.CredRecord, error)
- func (_m *CredDBAccessor) InsertCredential(cr idemix.CredRecord) error
- func (_m *CredDBAccessor) SetDB(db dbutil.FabricCADB)
- type IssuerCredential
- type Lib
- func (_m *Lib) CreateCRI(key *ecdsa.PrivateKey, unrevokedHandles []*FP256BN.BIG, epoch int, ...) (*idemix.CredentialRevocationInformation, error)
- func (_m *Lib) GenerateLongTermRevocationKey() (*ecdsa.PrivateKey, error)
- func (_m *Lib) GetRand() (*amcl.RAND, error)
- func (_m *Lib) NewCredential(key *idemix.IssuerKey, m *idemix.CredRequest, attrs []*FP256BN.BIG, ...) (*idemix.Credential, error)
- func (_m *Lib) NewIssuerKey(AttributeNames []string, rng *amcl.RAND) (*idemix.IssuerKey, error)
- func (_m *Lib) RandModOrder(rng *amcl.RAND) (*FP256BN.BIG, error)
- type MyIssuer
- func (_m *MyIssuer) Config() *idemix.Config
- func (_m *MyIssuer) CredDBAccessor() idemix.CredDBAccessor
- func (_m *MyIssuer) DB() dbutil.FabricCADB
- func (_m *MyIssuer) HomeDir() string
- func (_m *MyIssuer) IdemixLib() idemix.Lib
- func (_m *MyIssuer) IdemixRand() *amcl.RAND
- func (_m *MyIssuer) IssuerCredential() idemix.IssuerCredential
- func (_m *MyIssuer) Name() string
- func (_m *MyIssuer) NonceManager() idemix.NonceManager
- func (_m *MyIssuer) RevocationAuthority() idemix.RevocationAuthority
- type NonceManager
- type RevocationAuthority
- type ServerRequestCtx
- func (_m *ServerRequestCtx) BasicAuthentication() (string, error)
- func (_m *ServerRequestCtx) GetCaller() (spi.User, error)
- func (_m *ServerRequestCtx) GetIssuer() (idemix.Issuer, error)
- func (_m *ServerRequestCtx) IsBasicAuth() bool
- func (_m *ServerRequestCtx) ReadBody(body interface{}) error
- func (_m *ServerRequestCtx) TokenAuthentication() (string, error)
- type User
- func (_m *User) GetAffiliationPath() []string
- func (_m *User) GetAttribute(name string) (*api.Attribute, error)
- func (_m *User) GetAttributes(attrNames []string) ([]api.Attribute, error)
- func (_m *User) GetFailedLoginAttempts() int
- func (_m *User) GetLevel() int
- func (_m *User) GetMaxEnrollments() int
- func (_m *User) GetName() string
- func (_m *User) GetType() string
- func (_m *User) IncrementIncorrectPasswordAttempts() error
- func (_m *User) IsRevoked() bool
- func (_m *User) Login(password string, caMaxEnrollment int) error
- func (_m *User) LoginComplete() error
- func (_m *User) ModifyAttributes(attrs []api.Attribute) error
- func (_m *User) Revoke() error
- func (_m *User) SetLevel(level int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredDBAccessor ¶
CredDBAccessor is an autogenerated mock type for the CredDBAccessor type
func (*CredDBAccessor) GetCredential ¶
func (_m *CredDBAccessor) GetCredential(revocationHandle string) (*idemix.CredRecord, error)
GetCredential provides a mock function with given fields: revocationHandle
func (*CredDBAccessor) GetCredentialsByID ¶
func (_m *CredDBAccessor) GetCredentialsByID(id string) ([]idemix.CredRecord, error)
GetCredentialsByID provides a mock function with given fields: id
func (*CredDBAccessor) GetRevokedCredentials ¶
func (_m *CredDBAccessor) GetRevokedCredentials() ([]idemix.CredRecord, error)
GetRevokedCredentials provides a mock function with given fields:
func (*CredDBAccessor) InsertCredential ¶
func (_m *CredDBAccessor) InsertCredential(cr idemix.CredRecord) error
InsertCredential provides a mock function with given fields: cr
func (*CredDBAccessor) SetDB ¶
func (_m *CredDBAccessor) SetDB(db dbutil.FabricCADB)
SetDB provides a mock function with given fields: db
type IssuerCredential ¶
IssuerCredential is an autogenerated mock type for the IssuerCredential type
func (*IssuerCredential) GetIssuerKey ¶
func (_m *IssuerCredential) GetIssuerKey() (*idemix.IssuerKey, error)
GetIssuerKey provides a mock function with given fields:
func (*IssuerCredential) Load ¶
func (_m *IssuerCredential) Load() error
Load provides a mock function with given fields:
func (*IssuerCredential) NewIssuerKey ¶
func (_m *IssuerCredential) NewIssuerKey() (*idemix.IssuerKey, error)
NewIssuerKey provides a mock function with given fields:
func (*IssuerCredential) SetIssuerKey ¶
func (_m *IssuerCredential) SetIssuerKey(key *idemix.IssuerKey)
SetIssuerKey provides a mock function with given fields: key
func (*IssuerCredential) Store ¶
func (_m *IssuerCredential) Store() error
Store provides a mock function with given fields:
type Lib ¶
Lib is an autogenerated mock type for the Lib type
func (*Lib) CreateCRI ¶
func (_m *Lib) CreateCRI(key *ecdsa.PrivateKey, unrevokedHandles []*FP256BN.BIG, epoch int, alg idemix.RevocationAlgorithm, rng *amcl.RAND) (*idemix.CredentialRevocationInformation, error)
CreateCRI provides a mock function with given fields: key, unrevokedHandles, epoch, alg, rng
func (*Lib) GenerateLongTermRevocationKey ¶
func (_m *Lib) GenerateLongTermRevocationKey() (*ecdsa.PrivateKey, error)
GenerateLongTermRevocationKey provides a mock function with given fields:
func (*Lib) NewCredential ¶
func (_m *Lib) NewCredential(key *idemix.IssuerKey, m *idemix.CredRequest, attrs []*FP256BN.BIG, rng *amcl.RAND) (*idemix.Credential, error)
NewCredential provides a mock function with given fields: key, m, attrs, rng
func (*Lib) NewIssuerKey ¶
NewIssuerKey provides a mock function with given fields: AttributeNames, rng
type MyIssuer ¶
MyIssuer is an autogenerated mock type for the MyIssuer type
func (*MyIssuer) CredDBAccessor ¶
func (_m *MyIssuer) CredDBAccessor() idemix.CredDBAccessor
CredDBAccessor provides a mock function with given fields:
func (*MyIssuer) DB ¶
func (_m *MyIssuer) DB() dbutil.FabricCADB
DB provides a mock function with given fields:
func (*MyIssuer) IdemixRand ¶
IdemixRand provides a mock function with given fields:
func (*MyIssuer) IssuerCredential ¶
func (_m *MyIssuer) IssuerCredential() idemix.IssuerCredential
IssuerCredential provides a mock function with given fields:
func (*MyIssuer) NonceManager ¶
func (_m *MyIssuer) NonceManager() idemix.NonceManager
NonceManager provides a mock function with given fields:
func (*MyIssuer) RevocationAuthority ¶
func (_m *MyIssuer) RevocationAuthority() idemix.RevocationAuthority
RevocationAuthority provides a mock function with given fields:
type NonceManager ¶
NonceManager is an autogenerated mock type for the NonceManager type
func (*NonceManager) CheckNonce ¶
func (_m *NonceManager) CheckNonce(nonce *FP256BN.BIG) error
CheckNonce provides a mock function with given fields: nonce
func (*NonceManager) GetNonce ¶
func (_m *NonceManager) GetNonce() (*FP256BN.BIG, error)
GetNonce provides a mock function with given fields:
func (*NonceManager) SweepExpiredNonces ¶
func (_m *NonceManager) SweepExpiredNonces() error
SweepExpiredNonces provides a mock function with given fields:
type RevocationAuthority ¶
RevocationAuthority is an autogenerated mock type for the RevocationAuthority type
func (*RevocationAuthority) CreateCRI ¶
func (_m *RevocationAuthority) CreateCRI() (*idemix.CredentialRevocationInformation, error)
CreateCRI provides a mock function with given fields:
func (*RevocationAuthority) Epoch ¶
func (_m *RevocationAuthority) Epoch() (int, error)
Epoch provides a mock function with given fields:
func (*RevocationAuthority) GetNewRevocationHandle ¶
func (_m *RevocationAuthority) GetNewRevocationHandle() (*FP256BN.BIG, error)
GetNewRevocationHandle provides a mock function with given fields:
func (*RevocationAuthority) PublicKey ¶
func (_m *RevocationAuthority) PublicKey() *ecdsa.PublicKey
PublicKey provides a mock function with given fields:
type ServerRequestCtx ¶
ServerRequestCtx is an autogenerated mock type for the ServerRequestCtx type
func (*ServerRequestCtx) BasicAuthentication ¶
func (_m *ServerRequestCtx) BasicAuthentication() (string, error)
BasicAuthentication provides a mock function with given fields:
func (*ServerRequestCtx) GetCaller ¶
func (_m *ServerRequestCtx) GetCaller() (spi.User, error)
GetCaller provides a mock function with given fields:
func (*ServerRequestCtx) GetIssuer ¶
func (_m *ServerRequestCtx) GetIssuer() (idemix.Issuer, error)
GetIssuer provides a mock function with given fields:
func (*ServerRequestCtx) IsBasicAuth ¶
func (_m *ServerRequestCtx) IsBasicAuth() bool
IsBasicAuth provides a mock function with given fields:
func (*ServerRequestCtx) ReadBody ¶
func (_m *ServerRequestCtx) ReadBody(body interface{}) error
ReadBody provides a mock function with given fields: body
func (*ServerRequestCtx) TokenAuthentication ¶
func (_m *ServerRequestCtx) TokenAuthentication() (string, error)
TokenAuthentication provides a mock function with given fields:
type User ¶
User is an autogenerated mock type for the User type
func (*User) GetAffiliationPath ¶
GetAffiliationPath provides a mock function with given fields:
func (*User) GetAttribute ¶
GetAttribute provides a mock function with given fields: name
func (*User) GetAttributes ¶
GetAttributes provides a mock function with given fields: attrNames
func (*User) GetFailedLoginAttempts ¶ added in v1.4.0
GetFailedLoginAttempts provides a mock function with given fields:
func (*User) GetMaxEnrollments ¶
GetMaxEnrollments provides a mock function with given fields:
func (*User) IncrementIncorrectPasswordAttempts ¶ added in v1.4.0
IncrementIncorrectPasswordAttempts provides a mock function with given fields:
func (*User) LoginComplete ¶
LoginComplete provides a mock function with given fields:
func (*User) ModifyAttributes ¶
ModifyAttributes provides a mock function with given fields: attrs