cmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 27 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoreFlags added in v0.2.0

func CoreFlags() *flag.FlagSet

CoreFlags gives a set of hardcoded Core flags.

func HeadersFlags added in v0.2.0

func HeadersFlags() *flag.FlagSet

HeadersFlags gives a set of hardcoded Header package flags.

func Init

func Init(fsets ...*flag.FlagSet) *cobra.Command

Init constructs a CLI command to initialize Celestia Node of any type with the given flags.

func KeyFlags added in v0.3.0

func KeyFlags() *flag.FlagSet

func MiscFlags added in v0.2.0

func MiscFlags() *flag.FlagSet

MiscFlags gives a set of hardcoded miscellaneous flags.

func NodeFlags added in v0.2.0

func NodeFlags() *flag.FlagSet

NodeFlags gives a set of hardcoded Node package flags.

func NodeOptions added in v0.3.0

func NodeOptions(ctx context.Context) []node.Option

NodeOptions returns node options parsed from Environment(Flags, ENV vars, etc)

func NodeType added in v0.3.0

func NodeType(ctx context.Context) node.Type

NodeType reads the node.Type from the context.

func P2PFlags added in v0.2.0

func P2PFlags() *flag.FlagSet

P2PFlags gives a set of p2p flags.

func ParseCoreFlags added in v0.2.0

func ParseCoreFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseCoreFlags parses Core flags from the given cmd and applies values to Env.

func ParseHeadersFlags added in v0.2.0

func ParseHeadersFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseHeadersFlags parses Header package flags from the given cmd and applies values to Env.

func ParseKeyFlags added in v0.3.0

func ParseKeyFlags(ctx context.Context, cmd *cobra.Command) context.Context

func ParseMiscFlags added in v0.2.0

func ParseMiscFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseMiscFlags parses miscellaneous flags from the given cmd and applies values to Env.

func ParseNodeFlags added in v0.2.0

func ParseNodeFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseNodeFlags parses Node flags from the given cmd and applies values to Env.

func ParseP2PFlags added in v0.2.0

func ParseP2PFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseP2PFlags parses P2P flags from the given cmd and applies values to Env.

func ParseRPCFlags added in v0.3.0

func ParseRPCFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseRPCFlags parses RPC flags from the given cmd and applies values to Env.

func ParseTrustedHashFlags added in v0.2.0

func ParseTrustedHashFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseTrustedHashFlags parses Header package flags from the given cmd and applies values to Env.

func ParseTrustedPeerFlags added in v0.2.0

func ParseTrustedPeerFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseTrustedPeerFlags parses Header package flags from the given cmd and applies values to Env.

func RPCFlags added in v0.3.0

func RPCFlags() *flag.FlagSet

RPCFlags gives a set of hardcoded node/rpc package flags.

func Start

func Start(fsets ...*flag.FlagSet) *cobra.Command

Start constructs a CLI command to start Celestia Node daemon of any type with the given flags.

func StorePath added in v0.3.0

func StorePath(ctx context.Context) string

StorePath reads the store path from the context.

func TrustedHashFlags added in v0.2.0

func TrustedHashFlags() *flag.FlagSet

TrustedHashFlags returns a set of flags related to configuring a `TrustedHash`.

func TrustedPeersFlags added in v0.3.0

func TrustedPeersFlags() *flag.FlagSet

TrustedPeersFlags returns a set of flags.

func WithNodeOptions added in v0.3.0

func WithNodeOptions(ctx context.Context, opts ...node.Option) context.Context

WithNodeOptions add new options to Env.

func WithNodeType added in v0.3.0

func WithNodeType(ctx context.Context, tp node.Type) context.Context

WithNodeType sets Node Type in the given context.

func WithStorePath added in v0.3.0

func WithStorePath(ctx context.Context, storePath string) context.Context

WithStorePath sets Store Path in the given context.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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