polkadot

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PolkadotArgChain is argument used to set chain
	PolkadotArgChain = "--chain"
	// PolkadotArgName is node name reported to the telemetry server if enabled
	PolkadotArgName = "--name"
	// PolkadotArgPort is argument used to set p2p tcp port
	PolkadotArgPort = "--port"
	// PolkadotArgBasePath is argument to set base path
	PolkadotArgBasePath = "--base-path"
	// PolkadotArgSync is argument to set blockchain sync mode
	PolkadotArgSync = "--sync"
	// PolkadotArgPruning is argument used to keep recent blocks or archive all
	PolkadotArgPruning = "--pruning"
	// PolkadotArgLogging is argument to set logging verbosity
	PolkadotArgLogging = "--log"
	// PolkadotArgRPCExternal is argument used to enable rpc server on all hosts
	PolkadotArgRPCExternal = "--rpc-external"
	// PolkadotArgRPCPort is argument used to set JSON-RPC server port
	PolkadotArgRPCPort = "--rpc-port"
	// PolkadotArgRPCCors is argument used to set origins allowed to access the JSON-RPC HTTP and WS servers
	PolkadotArgRPCCors = "--rpc-cors"
	// PolkadotArgNodeKeyFile is argument used to locate node key
	PolkadotArgNodeKeyFile = "--node-key-file"
	// PolkadotArgNodeKeyType is argument used to set node key type
	PolkadotArgNodeKeyType = "--node-key-type"
	// PolkadotArgValidator is argument used to enable validator mode
	PolkadotArgValidator = "--validator"
	// PolkadotArgNoTelemetry is argument used to disable connecting to telemetry server
	PolkadotArgNoTelemetry = "--no-telemetry"
	// PolkadotArgTelemetryURL is argument used to connect to telemetry service
	PolkadotArgTelemetryURL = "--telemetry-url"
	// PolkadotArgNoPrometheus is argument used to disable prometheus exporter
	PolkadotArgNoPrometheus = "--no-prometheus"
	// PolkadotArgPrometheusExternal is argument used to enable prometheus exporter
	PolkadotArgPrometheusExternal = "--prometheus-external"
	// PolkadotArgPrometheusPort is argument used to set prometheus exporter port
	PolkadotArgPrometheusPort = "--prometheus-port"
)
View Source
const (
	//  PolkadotHomeDir is go ipfs image home dir
	PolkadotHomeDir = "/polkadot"
)

Images

Variables

This section is empty.

Functions

func NewClient

func NewClient(node *polkadotv1alpha1.Node) clients.Interface

Types

type PolkadotClient

type PolkadotClient struct {
	// contains filtered or unexported fields
}

PolkadotClient is parity Polkadot client https://github.com/paritytech/polkadot

func (*PolkadotClient) Args

func (c *PolkadotClient) Args() (args []string)

Args returns go-ipfs args

func (*PolkadotClient) Command

func (c *PolkadotClient) Command() []string

Command is go-ipfs entrypoint

func (*PolkadotClient) Env

func (c *PolkadotClient) Env() []corev1.EnvVar

Command returns environment variables for the client

func (*PolkadotClient) HomeDir

func (c *PolkadotClient) HomeDir() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL