Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 9f6f642

Browse files
author
Pavan Kappara
committed
[FAB-8753] fetch peer config by url
Fetch PeerConfig by URL Change-Id: I9e0ff91c3a029a8a40a140421b1ee08e94ee03a8 Signed-off-by: Pavan Kappara <pavan.kappara@securekey.com>
1 parent 4664f80 commit 9f6f642

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

pkg/context/api/core/mocks/mockcoreapi.gen.go

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/context/api/core/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type Config interface {
3131
OrdererConfig(name string) (*OrdererConfig, error)
3232
PeersConfig(org string) ([]PeerConfig, error)
3333
PeerConfig(org string, name string) (*PeerConfig, error)
34+
PeerConfigByURL(url string) (*PeerConfig, error)
3435
NetworkConfig() (*NetworkConfig, error)
3536
NetworkPeers() ([]NetworkPeer, error)
3637
ChannelConfig(name string) (*ChannelConfig, error)

pkg/core/identitymgr/mocks/mockconfig.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ func (c *MockConfig) PeerConfig(org string, name string) (*core.PeerConfig, erro
9797
return nil, nil
9898
}
9999

100+
// PeerConfigByURL retrieves PeerConfig by URL
101+
func (c *MockConfig) PeerConfigByURL(url string) (*core.PeerConfig, error) {
102+
return nil, nil
103+
}
104+
100105
// ChannelOrderers returns a list of channel orderers
101106
func (c *MockConfig) ChannelOrderers(name string) ([]core.OrdererConfig, error) {
102107
return nil, nil

pkg/fab/mocks/mockconfig.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ func (c *MockConfig) PeerConfig(org string, name string) (*config.PeerConfig, er
120120
return nil, nil
121121
}
122122

123+
// PeerConfigByURL retrieves PeerConfig by URL
124+
func (c *MockConfig) PeerConfigByURL(url string) (*config.PeerConfig, error) {
125+
return nil, nil
126+
}
127+
123128
// TLSCACertPool ...
124129
func (c *MockConfig) TLSCACertPool(cert ...*x509.Certificate) (*x509.CertPool, error) {
125130
if c.errorCase {

0 commit comments

Comments
 (0)