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) AddPermissionlessValidator(ctx context.Context, validatorSpec []*rpcpb.PermissionlessValidatorSpec) (*rpcpb.AddPermissionlessValidatorResponse, 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, subnetSpecs []*rpcpb.SubnetSpec) (*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) PauseNode(ctx context.Context, name string) (*rpcpb.PauseNodeResponse, error)
- func (_m *Client) Ping(ctx context.Context) (*rpcpb.PingResponse, error)
- func (_m *Client) RPCVersion(ctx context.Context) (*rpcpb.RPCVersionResponse, 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) RemoveSubnetValidator(ctx context.Context, validatorSpec []*rpcpb.RemoveSubnetValidatorSpec) (*rpcpb.RemoveSubnetValidatorResponse, error)
- func (_m *Client) RestartNode(ctx context.Context, name string, opts ...client.OpOption) (*rpcpb.RestartNodeResponse, error)
- func (_m *Client) ResumeNode(ctx context.Context, name string) (*rpcpb.ResumeNodeResponse, 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) TransformElasticSubnets(ctx context.Context, elasticSubnetSpecs []*rpcpb.ElasticSubnetSpec) (*rpcpb.TransformElasticSubnetsResponse, error)
- func (_m *Client) URIs(ctx context.Context) ([]string, error)
- func (_m *Client) WaitForHealthy(ctx context.Context) (*rpcpb.WaitForHealthyResponse, error)
- type Downloader
- type InfoClient
- func (_m *InfoClient) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
- func (_m *InfoClient) GetNetworkID(_a0 context.Context, _a1 ...rpc.Option) (uint32, error)
- func (_m *InfoClient) GetNetworkName(_a0 context.Context, _a1 ...rpc.Option) (string, error)
- func (_m *InfoClient) GetNodeID(_a0 context.Context, _a1 ...rpc.Option) (ids.NodeID, *signer.ProofOfPossession, error)
- func (_m *InfoClient) GetNodeIP(_a0 context.Context, _a1 ...rpc.Option) (string, error)
- func (_m *InfoClient) GetNodeVersion(_a0 context.Context, _a1 ...rpc.Option) (*info.GetNodeVersionReply, error)
- func (_m *InfoClient) GetTxFee(_a0 context.Context, _a1 ...rpc.Option) (*info.GetTxFeeResponse, error)
- func (_m *InfoClient) GetVMs(_a0 context.Context, _a1 ...rpc.Option) (map[ids.ID][]string, error)
- func (_m *InfoClient) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)
- func (_m *InfoClient) Peers(_a0 context.Context, _a1 ...rpc.Option) ([]info.Peer, error)
- func (_m *InfoClient) Uptime(_a0 context.Context, _a1 ids.ID, _a2 ...rpc.Option) (*info.UptimeResponse, error)
- type Installer
- type PClient
- 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) CaptureEmail(promptStr string) (string, error)
- func (_m *Prompter) CaptureExistingFilepath(promptStr string) (string, error)
- func (_m *Prompter) CaptureFutureDate(promptStr string, minDate time.Time) (time.Time, error)
- func (_m *Prompter) CaptureGitURL(promptStr string) (*url.URL, error)
- func (_m *Prompter) CaptureID(promptStr string) (ids.ID, error)
- func (_m *Prompter) CaptureIndex(promptStr string, options []interface{}) (int, error)
- func (_m *Prompter) CaptureList(promptStr string, options []string) (string, error)
- func (_m *Prompter) CaptureNewFilepath(promptStr 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) CapturePositiveInt(promptStr string, comparators []prompts.Comparator) (int, error)
- func (_m *Prompter) CaptureString(promptStr string) (string, error)
- func (_m *Prompter) CaptureStringAllowEmpty(promptStr string) (string, error)
- func (_m *Prompter) CaptureUint64(promptStr string) (uint64, error)
- func (_m *Prompter) CaptureUint64Compare(promptStr string, comparators []prompts.Comparator) (uint64, error)
- func (_m *Prompter) CaptureVersion(promptStr string) (string, error)
- func (_m *Prompter) CaptureWeight(promptStr string) (uint64, error)
- func (_m *Prompter) CaptureYesNo(promptStr string) (bool, error)
- func (_m *Prompter) ChooseKeyOrLedger(goal string) (bool, error)
- type Publisher
- type StatusChecker
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 ¶
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) ExistsWithVersion ¶
func (_m *BinaryChecker) ExistsWithVersion(name string, binaryPrefix string, version string) (bool, error)
ExistsWithVersion provides a mock function with given fields: name, binaryPrefix, version
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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) AddPermissionlessValidator ¶
func (_m *Client) AddPermissionlessValidator(ctx context.Context, validatorSpec []*rpcpb.PermissionlessValidatorSpec) (*rpcpb.AddPermissionlessValidatorResponse, error)
AddPermissionlessValidator provides a mock function with given fields: ctx, validatorSpec
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, subnetSpecs []*rpcpb.SubnetSpec) (*rpcpb.CreateSubnetsResponse, error)
CreateSubnets provides a mock function with given fields: ctx, subnetSpecs
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) RPCVersion ¶
RPCVersion provides a mock function with given fields: ctx
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) RemoveSubnetValidator ¶
func (_m *Client) RemoveSubnetValidator(ctx context.Context, validatorSpec []*rpcpb.RemoveSubnetValidatorSpec) (*rpcpb.RemoveSubnetValidatorResponse, error)
RemoveSubnetValidator provides a mock function with given fields: ctx, validatorSpec
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) ResumeNode ¶
ResumeNode provides a mock function with given fields: ctx, name
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
func (*Client) TransformElasticSubnets ¶
func (_m *Client) TransformElasticSubnets(ctx context.Context, elasticSubnetSpecs []*rpcpb.ElasticSubnetSpec) (*rpcpb.TransformElasticSubnetsResponse, error)
TransformElasticSubnets provides a mock function with given fields: ctx, elasticSubnetSpecs
func (*Client) WaitForHealthy ¶
WaitForHealthy provides a mock function with given fields: ctx
type Downloader ¶
Downloader is an autogenerated mock type for the Downloader type
func NewDownloader ¶
func NewDownloader(t mockConstructorTestingTNewDownloader) *Downloader
NewDownloader creates a new instance of Downloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Downloader) Download ¶
func (_m *Downloader) Download(url string) ([]byte, error)
Download provides a mock function with given fields: url
func (*Downloader) GetAllReleasesForRepo ¶
func (_m *Downloader) GetAllReleasesForRepo(org string, repo string) ([]string, error)
GetAllReleasesForRepo provides a mock function with given fields: org, repo
func (*Downloader) GetLatestReleaseVersion ¶
func (_m *Downloader) GetLatestReleaseVersion(releaseURL string) (string, error)
GetLatestReleaseVersion provides a mock function with given fields: releaseURL
type InfoClient ¶
InfoClient is an autogenerated mock type for the Client type
func NewInfoClient ¶
func NewInfoClient(t mockConstructorTestingTNewInfoClient) *InfoClient
NewInfoClient creates a new instance of InfoClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*InfoClient) GetBlockchainID ¶
func (_m *InfoClient) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
GetBlockchainID provides a mock function with given fields: _a0, _a1, _a2
func (*InfoClient) GetNetworkID ¶
GetNetworkID provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetNetworkName ¶
GetNetworkName provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetNodeID ¶
func (_m *InfoClient) GetNodeID(_a0 context.Context, _a1 ...rpc.Option) (ids.NodeID, *signer.ProofOfPossession, error)
GetNodeID provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetNodeVersion ¶
func (_m *InfoClient) GetNodeVersion(_a0 context.Context, _a1 ...rpc.Option) (*info.GetNodeVersionReply, error)
GetNodeVersion provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetTxFee ¶
func (_m *InfoClient) GetTxFee(_a0 context.Context, _a1 ...rpc.Option) (*info.GetTxFeeResponse, error)
GetTxFee provides a mock function with given fields: _a0, _a1
func (*InfoClient) IsBootstrapped ¶
func (_m *InfoClient) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)
IsBootstrapped provides a mock function with given fields: _a0, _a1, _a2
type Installer ¶
Installer is an autogenerated mock type for the Installer type
func NewInstaller ¶
func NewInstaller(t mockConstructorTestingTNewInstaller) *Installer
NewInstaller creates a new instance of Installer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type PClient ¶
PClient is an autogenerated mock type for the PClient type
func (*PClient) GetCurrentValidators ¶
func (m *PClient) GetCurrentValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, options ...rpc.Option) ([]platformvm.ClientPermissionlessValidator, error)
GetCurrentValidators provides a mock function with given fields: ctx, subnetID, nodeIDs, options
type PluginBinaryDownloader ¶
PluginBinaryDownloader is an autogenerated mock type for the PluginBinaryDownloader type
func NewPluginBinaryDownloader ¶
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) InstallVM ¶
func (_m *PluginBinaryDownloader) InstallVM(vmID string, vmBin string) error
InstallVM provides a mock function with given fields: vmID, vmBin
func (*PluginBinaryDownloader) RemoveVM ¶
func (_m *PluginBinaryDownloader) RemoveVM(vmID string) error
RemoveVM provides a mock function with given fields: vmID
type ProcessChecker ¶
ProcessChecker is an autogenerated mock type for the ProcessChecker type
func NewProcessChecker ¶
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.Lux) (bool, error)
IsServerProcessRunning provides a mock function with given fields: app
type Prompter ¶
Prompter is an autogenerated mock type for the Prompter type
func NewPrompter ¶ added in v1.7.9
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 ¶
CaptureAddress provides a mock function with given fields: promptStr
func (*Prompter) CaptureDate ¶
CaptureDate provides a mock function with given fields: promptStr
func (*Prompter) CaptureDuration ¶
CaptureDuration provides a mock function with given fields: promptStr
func (*Prompter) CaptureEmail ¶
CaptureEmail provides a mock function with given fields: promptStr
func (*Prompter) CaptureExistingFilepath ¶
CaptureExistingFilepath provides a mock function with given fields: promptStr
func (*Prompter) CaptureFutureDate ¶
CaptureFutureDate provides a mock function with given fields: promptStr, minDate
func (*Prompter) CaptureGitURL ¶
CaptureGitURL provides a mock function with given fields: promptStr
func (*Prompter) CaptureIndex ¶
CaptureIndex provides a mock function with given fields: promptStr, options
func (*Prompter) CaptureList ¶
CaptureList provides a mock function with given fields: promptStr, options
func (*Prompter) CaptureNewFilepath ¶
CaptureNewFilepath provides a mock function with given fields: promptStr
func (*Prompter) CaptureNoYes ¶
CaptureNoYes provides a mock function with given fields: promptStr
func (*Prompter) CaptureNodeID ¶
CaptureNodeID provides a mock function with given fields: promptStr
func (*Prompter) CapturePChainAddress ¶
CapturePChainAddress provides a mock function with given fields: promptStr, network
func (*Prompter) CapturePositiveBigInt ¶
CapturePositiveBigInt provides a mock function with given fields: promptStr
func (*Prompter) CapturePositiveInt ¶
func (_m *Prompter) CapturePositiveInt(promptStr string, comparators []prompts.Comparator) (int, error)
CapturePositiveInt provides a mock function with given fields: promptStr, comparators
func (*Prompter) CaptureString ¶
CaptureString provides a mock function with given fields: promptStr
func (*Prompter) CaptureStringAllowEmpty ¶
CaptureStringAllowEmpty provides a mock function with given fields: promptStr
func (*Prompter) CaptureUint64 ¶
CaptureUint64 provides a mock function with given fields: promptStr
func (*Prompter) CaptureUint64Compare ¶
func (_m *Prompter) CaptureUint64Compare(promptStr string, comparators []prompts.Comparator) (uint64, error)
CaptureUint64Compare provides a mock function with given fields: promptStr, comparators
func (*Prompter) CaptureVersion ¶
CaptureVersion provides a mock function with given fields: promptStr
func (*Prompter) CaptureWeight ¶
CaptureWeight provides a mock function with given fields: promptStr
func (*Prompter) CaptureYesNo ¶
CaptureYesNo provides a mock function with given fields: promptStr
type Publisher ¶
Publisher is an autogenerated mock type for the Publisher type
func NewPublisher ¶
func NewPublisher(t mockConstructorTestingTNewPublisher) *Publisher
NewPublisher creates a new instance of Publisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type StatusChecker ¶
StatusChecker is an autogenerated mock type for the StatusChecker type
func NewStatusChecker ¶
func NewStatusChecker(t mockConstructorTestingTNewStatusChecker) *StatusChecker
NewStatusChecker creates a new instance of StatusChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StatusChecker) GetCurrentNetworkVersion ¶
func (_m *StatusChecker) GetCurrentNetworkVersion() (string, int, bool, error)
GetCurrentNetworkVersion provides a mock function with given fields: