dockertest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package dockertest provides implementations of the privatebtc.NodeService and privatebtc.NodeHandler interfaces using the https://github.com/ory/dockertest package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeHandler

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

NodeHandler represents a docker container.

func (NodeHandler) Close

func (n NodeHandler) Close() error

Close closes the container.

func (NodeHandler) HostRPCPort

func (n NodeHandler) HostRPCPort() string

HostRPCPort returns the host RPC port of the container.

func (NodeHandler) InternalIP

func (n NodeHandler) InternalIP() string

InternalIP returns the internal IP of the container.

func (NodeHandler) Name

func (n NodeHandler) Name() string

Name returns the container name.

type NodeService

type NodeService struct {
	SlogHandler slog.Handler
	// contains filtered or unexported fields
}

NodeService is an ory/dockertest implementation of privatebtc.NodeService. It is used to create containers.

func (*NodeService) CreateNodes

func (s *NodeService) CreateNodes(
	ctx context.Context,
	nodeRequests []privatebtc.CreateNodeRequest,
) ([]privatebtc.NodeHandler, error)

CreateNodes creates docker container nodes in parallel.

Jump to

Keyboard shortcuts

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