Documentation
¶
Index ¶
- type BinaryChecker
- type Client
- func (_m *Client) AddNode(ctx context.Context, name string, execPath string, opts ...client.OpOption) (*rpcpb.AddNodeResponse, error)
- func (_m *Client) AttachPeer(ctx context.Context, nodeName string) (*rpcpb.AttachPeerResponse, error)
- func (_m *Client) Close() error
- func (_m *Client) CreateBlockchains(ctx context.Context, blockchainSpecs []*rpcpb.BlockchainSpec) (*rpcpb.CreateBlockchainsResponse, error)
- func (_m *Client) CreateSubnets(ctx context.Context, opts ...client.OpOption) (*rpcpb.CreateSubnetsResponse, error)
- func (_m *Client) GetSnapshotNames(ctx context.Context) ([]string, error)
- func (_m *Client) Health(ctx context.Context) (*rpcpb.HealthResponse, error)
- func (_m *Client) LoadSnapshot(ctx context.Context, snapshotName string, opts ...client.OpOption) (*rpcpb.LoadSnapshotResponse, error)
- func (_m *Client) Ping(ctx context.Context) (*rpcpb.PingResponse, error)
- func (_m *Client) RemoveNode(ctx context.Context, name string) (*rpcpb.RemoveNodeResponse, error)
- func (_m *Client) RemoveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.RemoveSnapshotResponse, error)
- func (_m *Client) RestartNode(ctx context.Context, name string, opts ...client.OpOption) (*rpcpb.RestartNodeResponse, error)
- func (_m *Client) SaveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.SaveSnapshotResponse, error)
- func (_m *Client) SendOutboundMessage(ctx context.Context, nodeName string, peerID string, op uint32, msgBody []byte) (*rpcpb.SendOutboundMessageResponse, error)
- func (_m *Client) Start(ctx context.Context, execPath string, opts ...client.OpOption) (*rpcpb.StartResponse, error)
- func (_m *Client) Status(ctx context.Context) (*rpcpb.StatusResponse, error)
- func (_m *Client) Stop(ctx context.Context) (*rpcpb.StopResponse, error)
- func (_m *Client) StreamStatus(ctx context.Context, pushInterval time.Duration) (<-chan *rpcpb.ClusterInfo, error)
- func (_m *Client) URIs(ctx context.Context) ([]string, error)
- type PluginBinaryDownloader
- type ProcessChecker
- type Prompter
- func (_m *Prompter) CaptureAddress(promptStr string) (common.Address, error)
- func (_m *Prompter) CaptureDate(promptStr string) (time.Time, error)
- func (_m *Prompter) CaptureDuration(promptStr string) (time.Duration, error)
- func (_m *Prompter) CaptureExistingFilepath(promptStr string) (string, error)
- func (_m *Prompter) CaptureIndex(promptStr string, options []common.Address) (int, error)
- func (_m *Prompter) CaptureList(promptStr string, options []string) (string, error)
- func (_m *Prompter) CaptureNoYes(promptStr string) (bool, error)
- func (_m *Prompter) CaptureNodeID(promptStr string) (ids.NodeID, error)
- func (_m *Prompter) CapturePChainAddress(promptStr string, network models.Network) (string, error)
- func (_m *Prompter) CapturePositiveBigInt(promptStr string) (*big.Int, error)
- func (_m *Prompter) CaptureString(promptStr string) (string, error)
- func (_m *Prompter) CaptureUint64(promptStr string) (uint64, error)
- func (_m *Prompter) CaptureWeight(promptStr string) (uint64, error)
- func (_m *Prompter) CaptureYesNo(promptStr string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryChecker ¶
BinaryChecker is an autogenerated mock type for the BinaryChecker type
func NewBinaryChecker ¶ added in v0.2.0
func NewBinaryChecker(t mockConstructorTestingTNewBinaryChecker) *BinaryChecker
NewBinaryChecker creates a new instance of BinaryChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BinaryChecker) ExistsWithLatestVersion ¶
func (_m *BinaryChecker) ExistsWithLatestVersion(name string, binaryPrefix string) (bool, string, error)
ExistsWithLatestVersion provides a mock function with given fields: name, binaryPrefix
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) AddNode ¶
func (_m *Client) AddNode(ctx context.Context, name string, execPath string, opts ...client.OpOption) (*rpcpb.AddNodeResponse, error)
AddNode provides a mock function with given fields: ctx, name, execPath, opts
func (*Client) AttachPeer ¶
func (_m *Client) AttachPeer(ctx context.Context, nodeName string) (*rpcpb.AttachPeerResponse, error)
AttachPeer provides a mock function with given fields: ctx, nodeName
func (*Client) CreateBlockchains ¶
func (_m *Client) CreateBlockchains(ctx context.Context, blockchainSpecs []*rpcpb.BlockchainSpec) (*rpcpb.CreateBlockchainsResponse, error)
CreateBlockchains provides a mock function with given fields: ctx, blockchainSpecs
func (*Client) CreateSubnets ¶
func (_m *Client) CreateSubnets(ctx context.Context, opts ...client.OpOption) (*rpcpb.CreateSubnetsResponse, error)
CreateSubnets provides a mock function with given fields: ctx, opts
func (*Client) GetSnapshotNames ¶
GetSnapshotNames provides a mock function with given fields: ctx
func (*Client) LoadSnapshot ¶
func (_m *Client) LoadSnapshot(ctx context.Context, snapshotName string, opts ...client.OpOption) (*rpcpb.LoadSnapshotResponse, error)
LoadSnapshot provides a mock function with given fields: ctx, snapshotName, opts
func (*Client) RemoveNode ¶
RemoveNode provides a mock function with given fields: ctx, name
func (*Client) RemoveSnapshot ¶
func (_m *Client) RemoveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.RemoveSnapshotResponse, error)
RemoveSnapshot provides a mock function with given fields: ctx, snapshotName
func (*Client) RestartNode ¶
func (_m *Client) RestartNode(ctx context.Context, name string, opts ...client.OpOption) (*rpcpb.RestartNodeResponse, error)
RestartNode provides a mock function with given fields: ctx, name, opts
func (*Client) SaveSnapshot ¶
func (_m *Client) SaveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.SaveSnapshotResponse, error)
SaveSnapshot provides a mock function with given fields: ctx, snapshotName
func (*Client) SendOutboundMessage ¶
func (_m *Client) SendOutboundMessage(ctx context.Context, nodeName string, peerID string, op uint32, msgBody []byte) (*rpcpb.SendOutboundMessageResponse, error)
SendOutboundMessage provides a mock function with given fields: ctx, nodeName, peerID, op, msgBody
func (*Client) Start ¶
func (_m *Client) Start(ctx context.Context, execPath string, opts ...client.OpOption) (*rpcpb.StartResponse, error)
Start provides a mock function with given fields: ctx, execPath, opts
func (*Client) StreamStatus ¶
func (_m *Client) StreamStatus(ctx context.Context, pushInterval time.Duration) (<-chan *rpcpb.ClusterInfo, error)
StreamStatus provides a mock function with given fields: ctx, pushInterval
type PluginBinaryDownloader ¶
PluginBinaryDownloader is an autogenerated mock type for the PluginBinaryDownloader type
func NewPluginBinaryDownloader ¶ added in v0.2.0
func NewPluginBinaryDownloader(t mockConstructorTestingTNewPluginBinaryDownloader) *PluginBinaryDownloader
NewPluginBinaryDownloader creates a new instance of PluginBinaryDownloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PluginBinaryDownloader) Download ¶
func (_m *PluginBinaryDownloader) Download(vmIDs map[string]struct{}, pluginDir string, binDir string) error
Download provides a mock function with given fields: vmIDs, pluginDir, binDir
func (*PluginBinaryDownloader) DownloadVM ¶ added in v0.2.0
func (_m *PluginBinaryDownloader) DownloadVM(vmID string, pluginDir string, binDir string) error
DownloadVM provides a mock function with given fields: vmID, pluginDir, binDir
type ProcessChecker ¶
ProcessChecker is an autogenerated mock type for the ProcessChecker type
func NewProcessChecker ¶ added in v0.2.0
func NewProcessChecker(t mockConstructorTestingTNewProcessChecker) *ProcessChecker
NewProcessChecker creates a new instance of ProcessChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProcessChecker) IsServerProcessRunning ¶
func (_m *ProcessChecker) IsServerProcessRunning(app *application.Avalanche) (bool, error)
IsServerProcessRunning provides a mock function with given fields: app
type Prompter ¶ added in v0.2.0
Prompter is an autogenerated mock type for the Prompter type
func NewPrompter ¶ added in v0.2.0
func NewPrompter(t mockConstructorTestingTNewPrompter) *Prompter
NewPrompter creates a new instance of Prompter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Prompter) CaptureAddress ¶ added in v0.2.0
CaptureAddress provides a mock function with given fields: promptStr
func (*Prompter) CaptureDate ¶ added in v0.2.0
CaptureDate provides a mock function with given fields: promptStr
func (*Prompter) CaptureDuration ¶ added in v0.2.0
CaptureDuration provides a mock function with given fields: promptStr
func (*Prompter) CaptureExistingFilepath ¶ added in v0.2.0
CaptureExistingFilepath provides a mock function with given fields: promptStr
func (*Prompter) CaptureIndex ¶ added in v0.2.0
CaptureIndex provides a mock function with given fields: promptStr, options
func (*Prompter) CaptureList ¶ added in v0.2.0
CaptureList provides a mock function with given fields: promptStr, options
func (*Prompter) CaptureNoYes ¶ added in v0.2.0
CaptureNoYes provides a mock function with given fields: promptStr
func (*Prompter) CaptureNodeID ¶ added in v0.2.0
CaptureNodeID provides a mock function with given fields: promptStr
func (*Prompter) CapturePChainAddress ¶ added in v0.2.0
CapturePChainAddress provides a mock function with given fields: promptStr, network
func (*Prompter) CapturePositiveBigInt ¶ added in v0.2.0
CapturePositiveBigInt provides a mock function with given fields: promptStr
func (*Prompter) CaptureString ¶ added in v0.2.0
CaptureString provides a mock function with given fields: promptStr
func (*Prompter) CaptureUint64 ¶ added in v0.2.0
CaptureUint64 provides a mock function with given fields: promptStr
func (*Prompter) CaptureWeight ¶ added in v0.2.0
CaptureWeight provides a mock function with given fields: promptStr