Documentation ¶
Index ¶
- Constants
- type BuildMetrics
- type ContainerInstance
- type DockerVM
- func (vm *DockerVM) Build(ccid string, metadata *persistence.ChaincodePackageMetadata, ...) (container.Instance, error)
- func (vm *DockerVM) GetArgs(ccType string, peerAddress string) ([]string, error)
- func (vm *DockerVM) GetEnv(ccid string, tlsConfig *ccintf.TLSConfig) []string
- func (vm *DockerVM) GetVMName(ccid string) string
- func (vm *DockerVM) GetVMNameForDocker(ccid string) (string, error)
- func (vm *DockerVM) HealthCheck(ctx context.Context) error
- func (vm *DockerVM) Start(ccid string, ccType string, peerConnection *ccintf.PeerConnection) error
- func (vm *DockerVM) Stop(ccid string) error
- func (vm *DockerVM) Wait(ccid string) (int, error)
- type PlatformBuilder
Constants ¶
View Source
const ( TLSClientKeyPath string = "/etc/mcc-github/blockchain/client.key" TLSClientCertPath string = "/etc/mcc-github/blockchain/client.crt" TLSClientRootCertPath string = "/etc/mcc-github/blockchain/peer.crt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildMetrics ¶
func NewBuildMetrics ¶
func NewBuildMetrics(p metrics.Provider) *BuildMetrics
type ContainerInstance ¶
func (*ContainerInstance) Start ¶
func (ci *ContainerInstance) Start(peerConnection *ccintf.PeerConnection) error
func (*ContainerInstance) Stop ¶
func (ci *ContainerInstance) Stop() error
func (*ContainerInstance) Wait ¶
func (ci *ContainerInstance) Wait() (int, error)
type DockerVM ¶
type DockerVM struct { PeerID string NetworkID string BuildMetrics *BuildMetrics HostConfig *docker.HostConfig Client dockerClient AttachStdOut bool ChaincodePull bool NetworkMode string PlatformBuilder PlatformBuilder LoggingEnv []string }
func (*DockerVM) Build ¶
func (vm *DockerVM) Build(ccid string, metadata *persistence.ChaincodePackageMetadata, codePackage io.Reader) (container.Instance, error)
func (*DockerVM) GetVMNameForDocker ¶
Click to show internal directories.
Click to hide internal directories.