cmd

package
v0.75.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "devopstools",
	Short: "Scripts to drive Vega Networks",
	Long:  `Manage internal Vega Networks`,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		var err error
		cfg := zap.NewProductionConfig()
		if Args.Debug {
			cfg.Level.SetLevel(zap.DebugLevel)
		}

		cfg.OutputPaths = []string{"stdout"}
		cfg.Encoding = "console"
		cfg.EncoderConfig.EncodeTime = zapcore.ISO8601TimeEncoder
		Args.Logger, err = cfg.Build()
		if err != nil {
			fmt.Fprintf(os.Stderr, "Failed to setup logger: %s\n", err)
			os.Exit(1)
		}
	},
}

Functions

func Execute

func Execute()

Types

type RootArgs

type RootArgs struct {
	Debug  bool
	Logger *zap.Logger

	GitHubToken         string
	FileWithGitHubToken string
	HCVaultURL          string
	// contains filtered or unexported fields
}
var Args RootArgs

func (*RootArgs) ConnectToVegaNetwork

func (ra *RootArgs) ConnectToVegaNetwork(network string) (*veganetwork.VegaNetwork, error)

func (*RootArgs) GetEthereumClientManager

func (ra *RootArgs) GetEthereumClientManager() (*ethutils.EthereumClientManager, error)

func (*RootArgs) GetNodeSecretStore

func (ra *RootArgs) GetNodeSecretStore() (secrets.NodeSecretStore, error)

func (*RootArgs) GetServiceSecretStore

func (ra *RootArgs) GetServiceSecretStore() (secrets.ServiceSecretStore, error)

func (*RootArgs) GetSmartContractsManager

func (ra *RootArgs) GetSmartContractsManager() (*smartcontracts.SmartContractsManager, error)

func (*RootArgs) GetWalletManager

func (ra *RootArgs) GetWalletManager() (*wallet.WalletManager, error)

func (*RootArgs) GetWalletSecretStore

func (ra *RootArgs) GetWalletSecretStore() (secrets.WalletSecretStore, error)

Jump to

Keyboard shortcuts

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