docker

package
v0.0.0-...-9bac5f0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (*client.Client, error)

NewClient creates a docker client.

Types

type NetworkAPI

type NetworkAPI interface {
	CreateNetwork() error
	RunPeer(orgName string, peer []config.Peers, projectPath string, i int,
		errChanPeer chan error, wgPeerDone chan bool)
	RunOrderer(orderer []config.Orderers, projectPath string, i int,
		errChanOrderer chan error, wgOrdererDone chan bool)
	List() error
}

type Service

type Service struct {
	MyClient *client.Client

	Cfg *config.Config
}

func (*Service) CreateNetwork

func (s *Service) CreateNetwork() error

CreateNetwork creates the containers/nodes of our blockchain network.

func (*Service) List

func (s *Service) List() error

List prints out the list of running containers.

func (*Service) RunOrderer

func (s *Service) RunOrderer(orderer []config.Orderers, projectPath string, i int,
	errChanOrderer chan error, wgOrdererDone chan bool)

RunOrderer runs orderer containers.

func (*Service) RunPeer

func (s *Service) RunPeer(orgName string, peer []config.Peers, projectPath string, i int,
	errChanPeer chan error, wgPeerDone chan bool)

RunPeer runs peer containers.

Jump to

Keyboard shortcuts

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