Documentation ¶
Overview ¶
Package resmgmtclient enables resource management client
Index ¶
- type CCProposalType
- type Context
- type MSPFilter
- type ResourceMgmtClient
- func (rc *ResourceMgmtClient) InstallCC(req resmgmt.InstallCCRequest, options ...resmgmt.Option) ([]resmgmt.InstallCCResponse, error)
- func (rc *ResourceMgmtClient) InstantiateCC(channelID string, req resmgmt.InstantiateCCRequest, options ...resmgmt.Option) error
- func (rc *ResourceMgmtClient) JoinChannel(channelID string, options ...resmgmt.Option) error
- func (rc *ResourceMgmtClient) UpgradeCC(channelID string, req resmgmt.UpgradeCCRequest, options ...resmgmt.Option) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCProposalType ¶
type CCProposalType int
CCProposalType reflects transitions in the chaincode lifecycle
const ( Instantiate CCProposalType = iota Upgrade )
Define chaincode proposal types
type Context ¶
type Context struct { fab.ProviderContext fab.IdentityContext DiscoveryProvider fab.DiscoveryProvider ChannelProvider fab.ChannelProvider FabricProvider api.FabricProvider Resource fab.Resource }
Context holds the providers and services needed to create a ChannelClient.
type MSPFilter ¶
type MSPFilter struct {
// contains filtered or unexported fields
}
MSPFilter is default filter
type ResourceMgmtClient ¶
type ResourceMgmtClient struct {
// contains filtered or unexported fields
}
ResourceMgmtClient enables managing resources in Fabric network.
func New ¶
func New(ctx Context, filter resmgmt.TargetFilter) (*ResourceMgmtClient, error)
New returns a ResourceMgmtClient instance
func (*ResourceMgmtClient) InstallCC ¶
func (rc *ResourceMgmtClient) InstallCC(req resmgmt.InstallCCRequest, options ...resmgmt.Option) ([]resmgmt.InstallCCResponse, error)
InstallCC installs chaincode with optional custom options (specific peers, filtered peers)
func (*ResourceMgmtClient) InstantiateCC ¶
func (rc *ResourceMgmtClient) InstantiateCC(channelID string, req resmgmt.InstantiateCCRequest, options ...resmgmt.Option) error
InstantiateCC instantiates chaincode using default settings
func (*ResourceMgmtClient) JoinChannel ¶
func (rc *ResourceMgmtClient) JoinChannel(channelID string, options ...resmgmt.Option) error
JoinChannel allows for peers to join existing channel with optional custom options (specific peers, filtered peers)
func (*ResourceMgmtClient) UpgradeCC ¶
func (rc *ResourceMgmtClient) UpgradeCC(channelID string, req resmgmt.UpgradeCCRequest, options ...resmgmt.Option) error
UpgradeCC upgrades chaincode with optional custom options (specific peers, filtered peers, timeout)