{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runner\n\n## Constants\n\n```go\nconst CouchDBDefaultImage = \"hyperledger/fabric-couchdb:latest\"\n```\n\n```go\nconst DefaultStartTimeout = 30 * time.Second\n```\n\n```go\nconst KafkaDefaultImage = \"hyperledger/fabric-kafka:latest\"\n```\n\n```go\nconst ZooKeeperDefaultImage = \"hyperledger/fabric-zookeeper:latest\"\n```\n\n## Types\n\n```go\ntype CouchDB struct {\n\tClient        *docker.Client\n\tImage         string\n\tHostIP        string\n\tHostPort      int\n\tContainerPort docker.Port\n\tName          string\n\tStartTimeout  time.Duration\n\n\tErrorStream  io.Writer\n\tOutputStream io.Writer\n\t// contains filtered or unexported fields\n}\n```\nCouchDB manages the execution of an instance of a dockerized CounchDB for tests.\n\n```go\nfunc (c *CouchDB) Address() string\n```\nAddress returns the address successfully used by the readiness check.\n\n```go\nfunc (c *CouchDB) ContainerAddress() string\n```\nContainerAddress returns the container address where this CouchDB instance is available.\n\n```go\nfunc (c *CouchDB) ContainerID() string\n```\nContainerID returns the container ID of this CouchDB\n\n```go\nfunc (c *CouchDB) HostAddress() string\n```\nHostAddress returns the host address where this CouchDB instance is available.\n\n```go\nfunc (c *CouchDB) Run(sigCh \u003c-chan os.Signal, ready chan\u003c- struct{}) error\n```\nRun runs a CouchDB container. It implements the ifrit.Runner interface\n\n```go\nfunc (c *CouchDB) Start() error\n```\nStart starts the CouchDB container using an ifrit runner\n\n```go\nfunc (c *CouchDB) Stop() error\n```\nStop stops and removes the CouchDB container\n\n```go\ntype Kafka struct {\n\tClient        *docker.Client\n\tImage         string\n\tHostIP        string\n\tHostPort      int\n\tContainerPort docker.Port\n\tName          string\n\tNetworkName   string\n\tStartTimeout  time.Duration\n\n\tMessageMaxBytes              int\n\tReplicaFetchMaxBytes         int\n\tUncleanLeaderElectionEnable  bool\n\tDefaultReplicationFactor     int\n\tMinInsyncReplicas            int\n\tBrokerID                     int\n\tZooKeeperConnect             string\n\tReplicaFetchResponseMaxBytes int\n\tAdvertisedListeners          string\n\n\tErrorStream  io.Writer\n\tOutputStream io.Writer\n\n\tContainerID      string\n\tHostAddress      string\n\tContainerAddress string\n\tAddress          string\n\t// contains filtered or unexported fields\n}\n```\nKafka manages the execution of an instance of a dockerized CouchDB for tests.\n\n```go\nfunc (k *Kafka) Run(sigCh \u003c-chan os.Signal, ready chan\u003c- struct{}) error\n```\nRun runs a Kafka container. It implements the ifrit.Runner interface\n\n```go\nfunc (k *Kafka) Start() error\n```\nStart starts the Kafka container using an ifrit runner\n\n```go\nfunc (k *Kafka) Stop() error\n```\nStop stops and removes the Kafka container\n\n```go\ntype NameFunc func() string\n```\nA NameFunc is used to generate container names.\n\n```go\nvar DefaultNamer NameFunc = helpers.UniqueName\n```\nDefaultNamer is the default naming function.\n\n```go\ntype ZooKeeper struct {\n\tClient         *docker.Client\n\tImage          string\n\tHostIP         string\n\tHostPort       []int\n\tContainerPorts []docker.Port\n\tName           string\n\tStartTimeout   time.Duration\n\n\tNetworkName string\n\tClientPort  docker.Port\n\tLeaderPort  docker.Port\n\tPeerPort    docker.Port\n\tZooMyID     int\n\tZooServers  string\n\n\tErrorStream  io.Writer\n\tOutputStream io.Writer\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (z *ZooKeeper) ContainerAddress() string\n```\n\n```go\nfunc (z *ZooKeeper) ContainerID() string\n```\n\n```go\nfunc (z *ZooKeeper) Run(sigCh \u003c-chan os.Signal, ready chan\u003c- struct{}) error\n```\n\n```go\nfunc (z *ZooKeeper) Start() error\n```\n\n```go\nfunc (z *ZooKeeper) Stop() error\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/integration/runner","name":"runner","synopsis":"","isRedistributable":true}
