...

Package mocks

import "github.com/hyperledger/fabric-ca/lib/client/credential/x509/mocks"
Overview
Index

Overview ▾

type Client

Client is an autogenerated mock type for the Client type

type Client struct {
    mock.Mock
}

func (*Client) GetCSP

func (_m *Client) GetCSP() bccsp.BCCSP

GetCSP provides a mock function with given fields:

func (*Client) NewX509Identity

func (_m *Client) NewX509Identity(name string, creds []credential.Credential) x509.Identity

NewX509Identity provides a mock function with given fields: name, creds

type Identity

Identity is an autogenerated mock type for the Identity type

type Identity struct {
    mock.Mock
}

func (*Identity) Revoke

func (_m *Identity) Revoke(req *api.RevocationRequest) (*api.RevocationResponse, error)

Revoke provides a mock function with given fields: req