resmgmtclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package resmgmtclient enables resource management client

Index

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

func (*MSPFilter) Accept

func (f *MSPFilter) Accept(peer fab.Peer) bool

Accept returns true if this peer is to be included in the target list

type ResourceMgmtClient

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

ResourceMgmtClient enables managing resources in Fabric network.

func New

New returns a ResourceMgmtClient instance

func (*ResourceMgmtClient) InstallCC

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)

Jump to

Keyboard shortcuts

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