Documentation
¶
Overview ¶
Package netrunner provides integration with the Lux netrunner tool for managing test networks and blockchain deployments.
Index ¶
- type Client
- func (c *Client) AddNode(ctx context.Context, name string, execPath string, opts ...client.OpOption) (*rpcpb.AddNodeResponse, error)
- func (c *Client) Close() error
- func (c *Client) CreateChains(ctx context.Context, specs []*rpcpb.BlockchainSpec) (*rpcpb.CreateBlockchainsResponse, error)
- func (c *Client) Health(ctx context.Context) (*rpcpb.HealthResponse, error)
- func (c *Client) RemoveNode(ctx context.Context, name string) error
- func (c *Client) RestartNode(ctx context.Context, name string, opts ...client.OpOption) error
- func (c *Client) Start(ctx context.Context, execPath string, opts ...client.OpOption) (*rpcpb.StartResponse, error)
- func (c *Client) Status(ctx context.Context) (*rpcpb.StatusResponse, error)
- func (c *Client) Stop(ctx context.Context) error
- func (c *Client) URIs(ctx context.Context) ([]string, error)
- func (c *Client) WaitForHealthy(ctx context.Context, timeout time.Duration) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the netrunner client with additional functionality
func (*Client) AddNode ¶
func (c *Client) AddNode(ctx context.Context, name string, execPath string, opts ...client.OpOption) (*rpcpb.AddNodeResponse, error)
AddNode adds a new node to the network
func (*Client) CreateChains ¶ added in v1.3.8
func (c *Client) CreateChains(ctx context.Context, specs []*rpcpb.BlockchainSpec) (*rpcpb.CreateBlockchainsResponse, error)
CreateChains creates new blockchains with the given specifications
func (*Client) RemoveNode ¶
RemoveNode removes a node from the network
func (*Client) RestartNode ¶
RestartNode restarts a node in the network
func (*Client) Start ¶
func (c *Client) Start(ctx context.Context, execPath string, opts ...client.OpOption) (*rpcpb.StartResponse, error)
Start starts a new network with the given configuration
Click to show internal directories.
Click to hide internal directories.