-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-6981] Channel Management Client
Channel management client is responsible for managing channels(create/update). Change-Id: Ib2cb7dbc2496b7e081785f6fda73678637899821 Signed-off-by: Sandra Vrtikapa <[email protected]>
- Loading branch information
Showing
20 changed files
with
501 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package chmgmtclient | ||
|
||
import fab "github.com/hyperledger/fabric-sdk-go/api/apifabclient" | ||
|
||
// SaveChannelRequest contains parameters for creating or updating channel | ||
type SaveChannelRequest struct { | ||
// Channel Name (ID) | ||
ChannelID string | ||
// Path to channel configuration file | ||
ChannelConfig string | ||
// User that signs channel configuration | ||
SigningUser fab.User | ||
} | ||
|
||
// SaveChannelOpts contains options for saving channel | ||
type SaveChannelOpts struct { | ||
OrdererID string // use specific orderer | ||
} | ||
|
||
// ChannelMgmtClient supports creating new channels | ||
type ChannelMgmtClient interface { | ||
|
||
// SaveChannel creates or updates channel | ||
SaveChannel(req SaveChannelRequest) error | ||
|
||
// SaveChannel creates or updates channel with custom options | ||
SaveChannelWithOpts(req SaveChannelRequest, opts SaveChannelOpts) error | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.