Documentation
¶
Index ¶
- Constants
- func AccountAddressFromValidatorAddress(valAddr, valPrefix, accPrefix string) (string, error)
- func ExtractChainIdFromGenesis(genesis string) (string, error)
- func RetrieveGenesisFromNodeRPC(ctx context.Context, url string, sha *string) (string, error)
- func RetrieveGenesisFromURL(ctx context.Context, url string, sha *string) (string, error)
- type Account
- type AccountAssets
- type AdditionalVolume
- type App
- func (a *App) BuildInitPod(pvc *corev1.PersistentVolumeClaim, additionalVolumes []AdditionalVolume, ...) (*corev1.Pod, error)
- func (a *App) CreateInitPod(ctx context.Context, pvc *corev1.PersistentVolumeClaim, timeout time.Duration, ...) error
- func (a *App) CreateValidator(ctx context.Context, pubKey string, account *Account, nodeInfo *NodeInfo, ...) error
- func (a *App) GenerateConfigFiles(ctx context.Context) (map[string]string, error)
- func (a *App) InitPvcData(ctx context.Context, pvc *corev1.PersistentVolumeClaim, timeout time.Duration, ...) error
- func (a *App) LoadGenesisFromConfigMap(ctx context.Context, configMapName string) (string, error)
- func (a *App) NewGenesis(ctx context.Context, privkeySecret string, account *Account, ...) (string, error)
- type Client
- func (c *Client) Close() error
- func (c *Client) GetAbciInfo(ctx context.Context) (abci.ResponseInfo, error)
- func (c *Client) GetBlockHash(ctx context.Context, height int64) (string, error)
- func (c *Client) GetLatestBlock(ctx context.Context) (*tmtypes.Block, error)
- func (c *Client) GetNextUpgrade(ctx context.Context) (*upgradetypes.Plan, error)
- func (c *Client) GetNodeStatus(ctx context.Context) (*coretypes.ResultStatus, error)
- func (c *Client) GetValidators(ctx context.Context) ([]stakingTypes.Validator, error)
- func (c *Client) IsNodeSyncing(ctx context.Context) (bool, error)
- func (c *Client) NodeInfo(ctx context.Context) (*p2p.DefaultNodeInfo, error)
- func (c *Client) QueryValidator(ctx context.Context, address string) (*stakingTypes.Validator, error)
- type InitCommand
- type NodeInfo
- type Option
- type Params
Constants ¶
View Source
const ( P2pPortName = "p2p" P2pPort = 26656 RpcPortName = "rpc" RpcPort = 26657 LcdPortName = "lcd" LcdPort = 1317 GrpcPortName = "grpc" GrpcPort = 9090 PrometheusPortName = "prometheus" PrometheusPort = 26660 PrivValPortName = "privvalidator" PrivValPort = 26659 GenesisFilename = "genesis.json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountAssets ¶
type AdditionalVolume ¶
type App ¶
type App struct {
NodeSelector map[string]string
Affinity *corev1.Affinity
// contains filtered or unexported fields
}
func (*App) BuildInitPod ¶
func (a *App) BuildInitPod(pvc *corev1.PersistentVolumeClaim, additionalVolumes []AdditionalVolume, initCommands ...*InitCommand) (*corev1.Pod, error)
BuildInitPod constructs the init pod spec without creating it. This is useful for inspecting or modifying the pod before creation.
func (*App) CreateInitPod ¶
func (a *App) CreateInitPod(ctx context.Context, pvc *corev1.PersistentVolumeClaim, timeout time.Duration, additionalVolumes []AdditionalVolume, initCommands ...*InitCommand) error
CreateInitPod creates the init pod without waiting for completion. The caller is responsible for monitoring the pod status and cleaning up. The timeout is enforced via activeDeadlineSeconds on the pod spec.
func (*App) CreateValidator ¶
func (*App) GenerateConfigFiles ¶
func (*App) InitPvcData ¶
func (a *App) InitPvcData(ctx context.Context, pvc *corev1.PersistentVolumeClaim, timeout time.Duration, additionalVolumes []AdditionalVolume, initCommands ...*InitCommand) error
InitPvcData creates an init pod and blocks until it completes or times out. Deprecated: This method blocks the reconciliation loop. Use CreateInitPod with status monitoring in the controller instead. This method is kept for backwards compatibility but will delete any existing init pod, losing progress on restart.
func (*App) LoadGenesisFromConfigMap ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAbciInfo ¶
func (*Client) GetBlockHash ¶
func (*Client) GetLatestBlock ¶
func (*Client) GetNextUpgrade ¶
func (*Client) GetNodeStatus ¶
func (*Client) GetValidators ¶
func (*Client) QueryValidator ¶
type InitCommand ¶
type Option ¶
type Option func(*App)
func WithAffinityConfig ¶
func WithBinary ¶
func WithImagePullPolicy ¶
func WithImagePullPolicy(p corev1.PullPolicy) Option
func WithNodeSelector ¶
func WithPriorityClass ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.