mocks

package
v1.0.0-alpha3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockSigningManager

func NewMockSigningManager() core.SigningManager

NewMockSigningManager Constructor for a mock signing manager.

Types

type MockCoreContext

type MockCoreContext struct {
	MockConfig         core.Config
	MockCcryptoSuite   core.CryptoSuite
	MockUserStore      msp.UserStore
	MockSigningManager core.SigningManager
}

MockCoreContext is a mock core context

func (*MockCoreContext) Config

func (m *MockCoreContext) Config() core.Config

Config ...

func (*MockCoreContext) CryptoSuite

func (m *MockCoreContext) CryptoSuite() core.CryptoSuite

CryptoSuite ...

func (*MockCoreContext) SigningManager

func (m *MockCoreContext) SigningManager() core.SigningManager

SigningManager ...

func (*MockCoreContext) UserStore

func (m *MockCoreContext) UserStore() msp.UserStore

UserStore ...

type MockSigningManager

type MockSigningManager struct {
	// contains filtered or unexported fields
}

MockSigningManager is mock signing manager

func (*MockSigningManager) Sign

func (mgr *MockSigningManager) Sign(object []byte, key core.Key) ([]byte, error)

Sign will sign the given object using provided key

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL