netrunner
Package netrunner provides integration with the Lux netrunner tool for managing test networks and blockchain deployments.
import "github.com/luxfi/sdk/netrunner"Package netrunner provides integration with the Lux netrunner tool for managing test networks and blockchain deployments.
Types
Client
Client wraps the netrunner client with additional functionality
func NewClient(config *Config, logger log.Logger) (*Client, error)func (c *Client) AddNode(ctx context.Context, name string, execPath string, opts ...client.OpOption) (*rpcpb.AddNodeResponse, error)func (c *Client) Close() errorfunc (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) errorfunc (c *Client) RestartNode(ctx context.Context, name string, opts ...client.OpOption) errorfunc (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) errorfunc (c *Client) URIs(ctx context.Context) ([]string, error)func (c *Client) WaitForHealthy(ctx context.Context, timeout time.Duration) errorConfig
Config holds configuration for the netrunner client
func DefaultConfig() *Config