mockcore

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: 7 Imported by: 0

Documentation

Overview

Package mockcore is a generated GoMock package.

Index

Constants

View Source
const ErrorMessage = "default error message"

ErrorMessage is a mock error message

Variables

View Source
var BadCert = &x509.Certificate{Raw: []byte{1, 2}}

BadCert is a mock of a bad certificate

View Source
var CertPool = x509.NewCertPool()

CertPool is a mock of a *x509.CertPool

View Source
var GoodCert = &x509.Certificate{Raw: []byte{0, 1, 2}}

GoodCert is a mock of a good certificate

View Source
var TLSCert = tls.Certificate{Certificate: [][]byte{{3}, {4}}}

TLSCert is a mock of a tls.Certificate{}

Functions

This section is empty.

Types

type MockConfig

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

MockConfig is a mock of Config interface

func BadTLSClientMockConfig

func BadTLSClientMockConfig(mockCtrl *gomock.Controller) *MockConfig

BadTLSClientMockConfig returns a mock config for testing with TLSClientCerts() that always returns an error

func DefaultMockConfig

func DefaultMockConfig(mockCtrl *gomock.Controller) *MockConfig

DefaultMockConfig returns a default mock config for testing

func NewMockConfig

func NewMockConfig(ctrl *gomock.Controller) *MockConfig

NewMockConfig creates a new mock instance

func (*MockConfig) CAClientCertPath

func (m *MockConfig) CAClientCertPath(arg0 string) (string, error)

CAClientCertPath mocks base method

func (*MockConfig) CAClientCertPem

func (m *MockConfig) CAClientCertPem(arg0 string) (string, error)

CAClientCertPem mocks base method

func (*MockConfig) CAClientKeyPath

func (m *MockConfig) CAClientKeyPath(arg0 string) (string, error)

CAClientKeyPath mocks base method

func (*MockConfig) CAClientKeyPem

func (m *MockConfig) CAClientKeyPem(arg0 string) (string, error)

CAClientKeyPem mocks base method

func (*MockConfig) CAConfig

func (m *MockConfig) CAConfig(arg0 string) (*core.CAConfig, error)

CAConfig mocks base method

func (*MockConfig) CAKeyStorePath

func (m *MockConfig) CAKeyStorePath() string

CAKeyStorePath mocks base method

func (*MockConfig) CAServerCertPaths

func (m *MockConfig) CAServerCertPaths(arg0 string) ([]string, error)

CAServerCertPaths mocks base method

func (*MockConfig) CAServerCertPems

func (m *MockConfig) CAServerCertPems(arg0 string) ([]string, error)

CAServerCertPems mocks base method

func (*MockConfig) ChannelConfig

func (m *MockConfig) ChannelConfig(arg0 string) (*core.ChannelConfig, error)

ChannelConfig mocks base method

func (*MockConfig) ChannelOrderers

func (m *MockConfig) ChannelOrderers(arg0 string) ([]core.OrdererConfig, error)

ChannelOrderers mocks base method

func (*MockConfig) ChannelPeers

func (m *MockConfig) ChannelPeers(arg0 string) ([]core.ChannelPeer, error)

ChannelPeers mocks base method

func (*MockConfig) Client

func (m *MockConfig) Client() (*core.ClientConfig, error)

Client mocks base method

func (*MockConfig) CredentialStorePath

func (m *MockConfig) CredentialStorePath() string

CredentialStorePath mocks base method

func (*MockConfig) CryptoConfigPath

func (m *MockConfig) CryptoConfigPath() string

CryptoConfigPath mocks base method

func (*MockConfig) EXPECT

func (m *MockConfig) EXPECT() *MockConfigMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockConfig) Ephemeral

func (m *MockConfig) Ephemeral() bool

Ephemeral mocks base method

func (*MockConfig) EventServiceType

func (m *MockConfig) EventServiceType() core.EventServiceType

EventServiceType mocks base method

func (*MockConfig) IsSecurityEnabled

func (m *MockConfig) IsSecurityEnabled() bool

IsSecurityEnabled mocks base method

func (*MockConfig) KeyStorePath

func (m *MockConfig) KeyStorePath() string

KeyStorePath mocks base method

func (*MockConfig) MSPID

func (m *MockConfig) MSPID(arg0 string) (string, error)

MSPID mocks base method

func (*MockConfig) NetworkConfig

func (m *MockConfig) NetworkConfig() (*core.NetworkConfig, error)

NetworkConfig mocks base method

func (*MockConfig) NetworkPeers

func (m *MockConfig) NetworkPeers() ([]core.NetworkPeer, error)

NetworkPeers mocks base method

func (*MockConfig) OrdererConfig

func (m *MockConfig) OrdererConfig(arg0 string) (*core.OrdererConfig, error)

OrdererConfig mocks base method

func (*MockConfig) OrderersConfig

func (m *MockConfig) OrderersConfig() ([]core.OrdererConfig, error)

OrderersConfig mocks base method

func (*MockConfig) PeerConfig

func (m *MockConfig) PeerConfig(arg0, arg1 string) (*core.PeerConfig, error)

PeerConfig mocks base method

func (*MockConfig) PeerConfigByURL

func (m *MockConfig) PeerConfigByURL(arg0 string) (*core.PeerConfig, error)

PeerConfigByURL mocks base method

func (*MockConfig) PeerMSPID

func (m *MockConfig) PeerMSPID(arg0 string) (string, error)

PeerMSPID mocks base method

func (*MockConfig) PeersConfig

func (m *MockConfig) PeersConfig(arg0 string) ([]core.PeerConfig, error)

PeersConfig mocks base method

func (*MockConfig) RandomOrdererConfig

func (m *MockConfig) RandomOrdererConfig() (*core.OrdererConfig, error)

RandomOrdererConfig mocks base method

func (*MockConfig) SecurityAlgorithm

func (m *MockConfig) SecurityAlgorithm() string

SecurityAlgorithm mocks base method

func (*MockConfig) SecurityLevel

func (m *MockConfig) SecurityLevel() int

SecurityLevel mocks base method

func (*MockConfig) SecurityProvider

func (m *MockConfig) SecurityProvider() string

SecurityProvider mocks base method

func (*MockConfig) SecurityProviderLabel

func (m *MockConfig) SecurityProviderLabel() string

SecurityProviderLabel mocks base method

func (*MockConfig) SecurityProviderLibPath

func (m *MockConfig) SecurityProviderLibPath() string

SecurityProviderLibPath mocks base method

func (*MockConfig) SecurityProviderPin

func (m *MockConfig) SecurityProviderPin() string

SecurityProviderPin mocks base method

func (*MockConfig) SoftVerify

func (m *MockConfig) SoftVerify() bool

SoftVerify mocks base method

func (*MockConfig) TLSCACertPool

func (m *MockConfig) TLSCACertPool(arg0 ...*x509.Certificate) (*x509.CertPool, error)

TLSCACertPool mocks base method

func (*MockConfig) TLSClientCerts

func (m *MockConfig) TLSClientCerts() ([]tls.Certificate, error)

TLSClientCerts mocks base method

func (*MockConfig) Timeout

func (m *MockConfig) Timeout(arg0 core.TimeoutType) time.Duration

Timeout mocks base method

func (*MockConfig) TimeoutOrDefault

func (m *MockConfig) TimeoutOrDefault(arg0 core.TimeoutType) time.Duration

TimeoutOrDefault mocks base method

type MockConfigMockRecorder

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

MockConfigMockRecorder is the mock recorder for MockConfig

func (*MockConfigMockRecorder) CAClientCertPath

func (mr *MockConfigMockRecorder) CAClientCertPath(arg0 interface{}) *gomock.Call

CAClientCertPath indicates an expected call of CAClientCertPath

func (*MockConfigMockRecorder) CAClientCertPem

func (mr *MockConfigMockRecorder) CAClientCertPem(arg0 interface{}) *gomock.Call

CAClientCertPem indicates an expected call of CAClientCertPem

func (*MockConfigMockRecorder) CAClientKeyPath

func (mr *MockConfigMockRecorder) CAClientKeyPath(arg0 interface{}) *gomock.Call

CAClientKeyPath indicates an expected call of CAClientKeyPath

func (*MockConfigMockRecorder) CAClientKeyPem

func (mr *MockConfigMockRecorder) CAClientKeyPem(arg0 interface{}) *gomock.Call

CAClientKeyPem indicates an expected call of CAClientKeyPem

func (*MockConfigMockRecorder) CAConfig

func (mr *MockConfigMockRecorder) CAConfig(arg0 interface{}) *gomock.Call

CAConfig indicates an expected call of CAConfig

func (*MockConfigMockRecorder) CAKeyStorePath

func (mr *MockConfigMockRecorder) CAKeyStorePath() *gomock.Call

CAKeyStorePath indicates an expected call of CAKeyStorePath

func (*MockConfigMockRecorder) CAServerCertPaths

func (mr *MockConfigMockRecorder) CAServerCertPaths(arg0 interface{}) *gomock.Call

CAServerCertPaths indicates an expected call of CAServerCertPaths

func (*MockConfigMockRecorder) CAServerCertPems

func (mr *MockConfigMockRecorder) CAServerCertPems(arg0 interface{}) *gomock.Call

CAServerCertPems indicates an expected call of CAServerCertPems

func (*MockConfigMockRecorder) ChannelConfig

func (mr *MockConfigMockRecorder) ChannelConfig(arg0 interface{}) *gomock.Call

ChannelConfig indicates an expected call of ChannelConfig

func (*MockConfigMockRecorder) ChannelOrderers

func (mr *MockConfigMockRecorder) ChannelOrderers(arg0 interface{}) *gomock.Call

ChannelOrderers indicates an expected call of ChannelOrderers

func (*MockConfigMockRecorder) ChannelPeers

func (mr *MockConfigMockRecorder) ChannelPeers(arg0 interface{}) *gomock.Call

ChannelPeers indicates an expected call of ChannelPeers

func (*MockConfigMockRecorder) Client

func (mr *MockConfigMockRecorder) Client() *gomock.Call

Client indicates an expected call of Client

func (*MockConfigMockRecorder) CredentialStorePath

func (mr *MockConfigMockRecorder) CredentialStorePath() *gomock.Call

CredentialStorePath indicates an expected call of CredentialStorePath

func (*MockConfigMockRecorder) CryptoConfigPath

func (mr *MockConfigMockRecorder) CryptoConfigPath() *gomock.Call

CryptoConfigPath indicates an expected call of CryptoConfigPath

func (*MockConfigMockRecorder) Ephemeral

func (mr *MockConfigMockRecorder) Ephemeral() *gomock.Call

Ephemeral indicates an expected call of Ephemeral

func (*MockConfigMockRecorder) EventServiceType

func (mr *MockConfigMockRecorder) EventServiceType() *gomock.Call

EventServiceType indicates an expected call of EventServiceType

func (*MockConfigMockRecorder) IsSecurityEnabled

func (mr *MockConfigMockRecorder) IsSecurityEnabled() *gomock.Call

IsSecurityEnabled indicates an expected call of IsSecurityEnabled

func (*MockConfigMockRecorder) KeyStorePath

func (mr *MockConfigMockRecorder) KeyStorePath() *gomock.Call

KeyStorePath indicates an expected call of KeyStorePath

func (*MockConfigMockRecorder) MSPID

func (mr *MockConfigMockRecorder) MSPID(arg0 interface{}) *gomock.Call

MSPID indicates an expected call of MSPID

func (*MockConfigMockRecorder) NetworkConfig

func (mr *MockConfigMockRecorder) NetworkConfig() *gomock.Call

NetworkConfig indicates an expected call of NetworkConfig

func (*MockConfigMockRecorder) NetworkPeers

func (mr *MockConfigMockRecorder) NetworkPeers() *gomock.Call

NetworkPeers indicates an expected call of NetworkPeers

func (*MockConfigMockRecorder) OrdererConfig

func (mr *MockConfigMockRecorder) OrdererConfig(arg0 interface{}) *gomock.Call

OrdererConfig indicates an expected call of OrdererConfig

func (*MockConfigMockRecorder) OrderersConfig

func (mr *MockConfigMockRecorder) OrderersConfig() *gomock.Call

OrderersConfig indicates an expected call of OrderersConfig

func (*MockConfigMockRecorder) PeerConfig

func (mr *MockConfigMockRecorder) PeerConfig(arg0, arg1 interface{}) *gomock.Call

PeerConfig indicates an expected call of PeerConfig

func (*MockConfigMockRecorder) PeerConfigByURL

func (mr *MockConfigMockRecorder) PeerConfigByURL(arg0 interface{}) *gomock.Call

PeerConfigByURL indicates an expected call of PeerConfigByURL

func (*MockConfigMockRecorder) PeerMSPID

func (mr *MockConfigMockRecorder) PeerMSPID(arg0 interface{}) *gomock.Call

PeerMSPID indicates an expected call of PeerMSPID

func (*MockConfigMockRecorder) PeersConfig

func (mr *MockConfigMockRecorder) PeersConfig(arg0 interface{}) *gomock.Call

PeersConfig indicates an expected call of PeersConfig

func (*MockConfigMockRecorder) RandomOrdererConfig

func (mr *MockConfigMockRecorder) RandomOrdererConfig() *gomock.Call

RandomOrdererConfig indicates an expected call of RandomOrdererConfig

func (*MockConfigMockRecorder) SecurityAlgorithm

func (mr *MockConfigMockRecorder) SecurityAlgorithm() *gomock.Call

SecurityAlgorithm indicates an expected call of SecurityAlgorithm

func (*MockConfigMockRecorder) SecurityLevel

func (mr *MockConfigMockRecorder) SecurityLevel() *gomock.Call

SecurityLevel indicates an expected call of SecurityLevel

func (*MockConfigMockRecorder) SecurityProvider

func (mr *MockConfigMockRecorder) SecurityProvider() *gomock.Call

SecurityProvider indicates an expected call of SecurityProvider

func (*MockConfigMockRecorder) SecurityProviderLabel

func (mr *MockConfigMockRecorder) SecurityProviderLabel() *gomock.Call

SecurityProviderLabel indicates an expected call of SecurityProviderLabel

func (*MockConfigMockRecorder) SecurityProviderLibPath

func (mr *MockConfigMockRecorder) SecurityProviderLibPath() *gomock.Call

SecurityProviderLibPath indicates an expected call of SecurityProviderLibPath

func (*MockConfigMockRecorder) SecurityProviderPin

func (mr *MockConfigMockRecorder) SecurityProviderPin() *gomock.Call

SecurityProviderPin indicates an expected call of SecurityProviderPin

func (*MockConfigMockRecorder) SoftVerify

func (mr *MockConfigMockRecorder) SoftVerify() *gomock.Call

SoftVerify indicates an expected call of SoftVerify

func (*MockConfigMockRecorder) TLSCACertPool

func (mr *MockConfigMockRecorder) TLSCACertPool(arg0 ...interface{}) *gomock.Call

TLSCACertPool indicates an expected call of TLSCACertPool

func (*MockConfigMockRecorder) TLSClientCerts

func (mr *MockConfigMockRecorder) TLSClientCerts() *gomock.Call

TLSClientCerts indicates an expected call of TLSClientCerts

func (*MockConfigMockRecorder) Timeout

func (mr *MockConfigMockRecorder) Timeout(arg0 interface{}) *gomock.Call

Timeout indicates an expected call of Timeout

func (*MockConfigMockRecorder) TimeoutOrDefault

func (mr *MockConfigMockRecorder) TimeoutOrDefault(arg0 interface{}) *gomock.Call

TimeoutOrDefault indicates an expected call of TimeoutOrDefault

type MockProviders

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

MockProviders is a mock of Providers interface

func NewMockProviders

func NewMockProviders(ctrl *gomock.Controller) *MockProviders

NewMockProviders creates a new mock instance

func (*MockProviders) Config

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

Config mocks base method

func (*MockProviders) CryptoSuite

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

CryptoSuite mocks base method

func (*MockProviders) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockProviders) SigningManager

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

SigningManager mocks base method

type MockProvidersMockRecorder

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

MockProvidersMockRecorder is the mock recorder for MockProviders

func (*MockProvidersMockRecorder) Config

func (mr *MockProvidersMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config

func (*MockProvidersMockRecorder) CryptoSuite

func (mr *MockProvidersMockRecorder) CryptoSuite() *gomock.Call

CryptoSuite indicates an expected call of CryptoSuite

func (*MockProvidersMockRecorder) SigningManager

func (mr *MockProvidersMockRecorder) SigningManager() *gomock.Call

SigningManager indicates an expected call of SigningManager

Jump to

Keyboard shortcuts

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