Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2024 Changes in this version + const BlobVM + const CustomVM + const SubnetEvm + const TimestampVM + var UndefinedNetwork = Network + func HostAnsibleIDToCloudID(hostAnsibleID string) (string, string, error) + func HostCloudIDToAnsibleID(cloudService string, hostCloudID string) (string, error) + func NewHostConnection(h *Host, port uint) (*goph.Client, error) + type AvagoCompatiblity map[string][]string + type CloudConfig map[string]RegionConfig + func (ccm *CloudConfig) GetAPIInstanceIDsForRegion(region string) []string + func (ccm *CloudConfig) GetAllInstanceIDs() []string + func (ccm *CloudConfig) GetInstanceIDsForRegion(region string) []string + func (ccm *CloudConfig) GetRegions() []string + type ClusterConfig struct + APINodes []string + ExtraNetworkData ExtraNetworkData + LoadTestInstance map[string]string + MonitoringInstance string + Network Network + Nodes []string + Subnets []string + func (cc *ClusterConfig) GetAPIHosts(hosts []*Host) []*Host + func (cc *ClusterConfig) GetCloudIDs() []string + func (cc *ClusterConfig) GetHostRoles(nodeConf NodeConfig) []string + func (cc *ClusterConfig) GetValidatorHosts(hosts []*Host) []*Host + func (cc *ClusterConfig) IsAPIHost(hostCloudID string) bool + func (cc *ClusterConfig) IsAvalancheGoHost(hostCloudID string) bool + type ClustersConfig struct + Clusters map[string]ClusterConfig + GCPConfig GCPConfig + KeyPair map[string]string + Version string + type ClustersConfigV0 struct + Clusters map[string][]string + GCPConfig GCPConfig + KeyPair map[string]string + type ElasticSubnet struct + AssetID ids.ID + PChainTXID ids.ID + SubnetID ids.ID + TokenName string + TokenSymbol string + Txs map[string]ids.ID + Validators map[string]PermissionlessValidators + type ElasticSubnetConfig struct + AssetID ids.ID + InitialSupply uint64 + MaxConsumptionRate uint64 + MaxStakeDuration time.Duration + MaxSupply uint64 + MaxValidatorStake uint64 + MaxValidatorWeightFactor byte + MinConsumptionRate uint64 + MinDelegationFee uint32 + MinDelegatorStake uint64 + MinStakeDuration time.Duration + MinValidatorStake uint64 + SubnetID ids.ID + UptimeRequirement uint32 + type Exportable struct + ChainConfig []byte + Genesis []byte + NetworkUpgrades []byte + NodeConfig []byte + Sidecar Sidecar + SubnetConfig []byte + type ExtraNetworkData struct + CChainTeleporterMessengerAddress string + CChainTeleporterRegistryAddress string + type GCPConfig struct + ProjectName string + ServiceAccFilePath string + type Host struct + Connection *goph.Client + IP string + NodeID string + SSHCommonArgs string + SSHPrivateKeyPath string + SSHUser string + func (h *Host) Command(script string, env []string, timeout time.Duration) ([]byte, error) + func (h *Host) Connect(port uint) error + func (h *Host) Connected() bool + func (h *Host) Disconnect() error + func (h *Host) Download(remoteFile string, localFile string, timeout time.Duration) error + func (h *Host) Forward(httpRequest string, timeout time.Duration) ([]byte, error) + func (h *Host) GetAnsibleInventoryRecord() string + func (h *Host) GetCloudID() string + func (h *Host) MkdirAll(remoteDir string, timeout time.Duration) error + func (h *Host) StreamSSHCommand(command string, env []string, timeout time.Duration) error + func (h *Host) UntimedForward(httpRequest string) ([]byte, error) + func (h *Host) UntimedMkdirAll(remoteDir string) error + func (h *Host) Upload(localFile string, remoteFile string, timeout time.Duration) error + func (h *Host) WaitForSSHPort(port uint, timeout time.Duration) error + func (h *Host) WaitForSSHShell(timeout time.Duration) error + type Network struct + ClusterName string + Endpoint string + ID uint32 + Kind NetworkKind + func NetworkFromNetworkID(networkID uint32) Network + func NewDevnetNetwork(endpoint string, id uint32) Network + func NewLocalNetwork() Network + func NewMainnetNetwork() Network + func NewNetwork(kind NetworkKind, id uint32, endpoint string, clusterName string) Network + func NewNetworkFromCluster(n Network, clusterName string) Network + func NewTahoeNetwork() Network + func (n *Network) HandlePublicNetworkSimulation() + func (n Network) BlockchainEndpoint(blockchainID string) string + func (n Network) BlockchainWSEndpoint(blockchainID string) string + func (n Network) CChainEndpoint() string + func (n Network) CChainWSEndpoint() string + func (n Network) GenesisParams() *genesis.Params + func (n Network) Name() string + func (n Network) NetworkIDFlagValue() string + type NetworkData struct + BlockchainID ids.ID + RPCVersion int + SubnetID ids.ID + TeleporterMessengerAddress string + TeleporterRegistryAddress string + TransferSubnetOwnershipTxID ids.ID + type NetworkKind int64 + const Devnet + const Local + const Mainnet + const Tahoe + const Undefined + func (nk NetworkKind) String() string + type NodeConfig struct + AMI string + CertPath string + CloudService string + ElasticIP string + IsAWMRelayer bool + IsLoadTest bool + IsMonitor bool + KeyPair string + NodeID string + Region string + SecurityGroup string + UseStaticIP bool + type NodeResult struct + Err error + NodeID string + Value interface{} + type NodeResults struct + Lock sync.Mutex + Results []NodeResult + func (nr *NodeResults) AddResult(nodeID string, value interface{}, err error) + func (nr *NodeResults) GetErrorHostMap() map[string]error + func (nr *NodeResults) GetErrorHosts() []string + func (nr *NodeResults) GetNodeList() []string + func (nr *NodeResults) GetResultMap() map[string]interface{} + func (nr *NodeResults) GetResults() []NodeResult + func (nr *NodeResults) HasErrors() bool + func (nr *NodeResults) HasNodeIDWithError(nodeID string) bool + func (nr *NodeResults) Len() int + type PermissionlessValidators struct + TxID ids.ID + type RegionConfig struct + APIInstanceIDs []string + CertFilePath string + CertName string + ImageID string + InstanceIDs []string + InstanceType string + KeyPair string + NumNodes int + Prefix string + PublicIPs []string + SecurityGroup string + SecurityGroupName string + type Sidecar struct + ChainID string + CustomVMBranch string + CustomVMBuildScript string + CustomVMRepoURL string + ElasticSubnet map[string]ElasticSubnet + ImportedFromAPM bool + ImportedVMID string + Name string + Networks map[string]NetworkData + RPCVersion int + RunRelayer bool + Subnet string + SubnetEVMMainnetChainID uint + TeleporterKey string + TeleporterReady bool + TeleporterVersion string + TokenName string + TokenSymbol string + VM VMType + VMVersion string + Version string + func (sc Sidecar) GetVMID() (string, error) + type VMCompatibility struct + RPCChainVMProtocolVersion map[string]int + type VMType string + func VMTypeFromString(s string) VMType + func (v VMType) RepoName() string