Documentation ¶
Index ¶
- Constants
- type Configtxgen
- type CouchDB
- type Cryptogen
- type Idemixgen
- type Kafka
- type NameFunc
- type Orderer
- type Peer
- func (p *Peer) ChaincodeListInstalled() *ginkgomon.Runner
- func (p *Peer) ChaincodeListInstantiated(channel string) *ginkgomon.Runner
- func (p *Peer) CreateChannel(channel string, filename string, orderer string) *ginkgomon.Runner
- func (p *Peer) FetchChannel(channel string, filename string, block string, orderer string) *ginkgomon.Runner
- func (p *Peer) GetChannelInfo(channel string) *ginkgomon.Runner
- func (p *Peer) InstallChaincode(name, version, path string)
- func (p *Peer) InstantiateChaincode(name, version, orderer, channel, args, policy string)
- func (p *Peer) InvokeChaincode(name string, channel string, args string, orderer string, extraArgs ...string) *ginkgomon.Runner
- func (p *Peer) JoinChannel(transactionFile string) *ginkgomon.Runner
- func (p *Peer) NodeStart(index int) *ginkgomon.Runner
- func (p *Peer) QueryChaincode(name string, channel string, args string) *ginkgomon.Runner
- func (p *Peer) SetLogLevel(moduleRegExp string, level string) *ginkgomon.Runner
- func (p *Peer) SignConfigTx(transactionFile string) *ginkgomon.Runner
- func (p *Peer) UpdateChannel(transactionFile string, channel string, orderer string) *ginkgomon.Runner
- type ZooKeeper
Constants ¶
const CouchDBDefaultImage = "hyperledger/fabric-couchdb:latest"
const DefaultStartTimeout = 30 * time.Second
const KafkaDefaultImage = "hyperledger/fabric-kafka:latest"
const ZooKeeperDefaultImage = "hyperledger/fabric-zookeeper:latest"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configtxgen ¶
type Configtxgen struct { // The location of the configtxgen executable Path string // The channel ID ChannelID string // The profile used for the channel Profile string // The organization for this config channel AsOrg string // The fabric config directory ConfigDir string // The fabric config directory set in the env variable EnvConfigDir string // The directory to write the block file Output string }
Configtxgen creates runners that call cryptogen functions.
func (*Configtxgen) OutputAnchorPeersUpdate ¶
func (c *Configtxgen) OutputAnchorPeersUpdate(extraArgs ...string) *ginkgomon.Runner
func (*Configtxgen) OutputBlock ¶
func (c *Configtxgen) OutputBlock(extraArgs ...string) *ginkgomon.Runner
OutputBlock uses configtxgen to generate genesis block for fabric.
func (*Configtxgen) OutputCreateChannelTx ¶
func (c *Configtxgen) OutputCreateChannelTx(extraArgs ...string) *ginkgomon.Runner
type CouchDB ¶
type CouchDB struct { Client *docker.Client Image string HostIP string HostPort int ContainerPort docker.Port Name string StartTimeout time.Duration ErrorStream io.Writer OutputStream io.Writer // contains filtered or unexported fields }
CouchDB manages the execution of an instance of a dockerized CounchDB for tests.
func (*CouchDB) ContainerAddress ¶
ContainerAddress returns the container address where this CouchDB instance is available.
func (*CouchDB) ContainerID ¶
ContainerID returns the container ID of this CouchDB
func (*CouchDB) HostAddress ¶
HostAddress returns the host address where this CouchDB instance is available.
type Cryptogen ¶
type Cryptogen struct { // The location of the cryptogen executable Path string // The location of the config file Config string // The output directory Output string }
Cryptogen creates runners that call cryptogen functions.
type Idemixgen ¶
type Idemixgen struct { // Location of the idemixgen executable Path string // Output directory Output string // Enrollment ID for the default signer EnrollID string // The organizational unit for the default signer OrgUnit string // Flag for making the default signer an admin IsAdmin bool // Handle used to revoke the default signer RevocationHandle int }
Idemixgen creates runners that call idemixgen functions.
type Kafka ¶
type Kafka struct { Client *docker.Client Image string HostIP string HostPort int ContainerPort docker.Port Name string NetworkName string StartTimeout time.Duration MessageMaxBytes int ReplicaFetchMaxBytes int UncleanLeaderElectionEnable bool DefaultReplicationFactor int MinInsyncReplicas int BrokerID int ZooKeeperConnect string ReplicaFetchResponseMaxBytes int AdvertisedListeners string LogLevel string ErrorStream io.Writer OutputStream io.Writer ContainerID string HostAddress string ContainerAddress string Address string // contains filtered or unexported fields }
Kafka manages the execution of an instance of a dockerized CounchDB for tests.
type NameFunc ¶
type NameFunc func() string
A NameFunc is used to generate container names.
var DefaultNamer NameFunc = helpers.UniqueName
DefaultNamer is the default naming function.
type Orderer ¶
type Peer ¶
type Peer struct { Path string GoPath string ExecPath string ConfigDir string MSPConfigPath string LogLevel string }
func (*Peer) ChaincodeListInstalled ¶
func (*Peer) ChaincodeListInstantiated ¶
func (*Peer) CreateChannel ¶
func (*Peer) FetchChannel ¶
func (*Peer) InstallChaincode ¶
func (*Peer) InstantiateChaincode ¶
func (*Peer) InvokeChaincode ¶
func (*Peer) QueryChaincode ¶
func (*Peer) SetLogLevel ¶
type ZooKeeper ¶
type ZooKeeper struct { Client *docker.Client Image string HostIP string HostPort []int ContainerPorts []docker.Port Name string StartTimeout time.Duration NetworkName string ClientPort docker.Port LeaderPort docker.Port PeerPort docker.Port ZooMyID int ZooServers string ErrorStream io.Writer OutputStream io.Writer // contains filtered or unexported fields }