Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeProtocol ¶
type FakeProtocol struct {
// contains filtered or unexported fields
}
FakeProtocol is a fake for testing, implements CAProtocol interface.
func NewFakeProtocol ¶
func NewFakeProtocol(response *pb.CsrResponse, err string) *FakeProtocol
NewFakeProtocol returns a FakeProtocol with configured response and expected error.
func (*FakeProtocol) InvokeTimes ¶
func (f *FakeProtocol) InvokeTimes() int
InvokeTimes returns the times that SendCSR has been invoked.
func (*FakeProtocol) SendCSR ¶
func (f *FakeProtocol) SendCSR(req *pb.CsrRequest) (*pb.CsrResponse, error)
SendCSR returns the result based on the predetermined config.
Click to show internal directories.
Click to hide internal directories.