Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List the keys in the keyring / keystore.", Long: usage, Args: cobra.NoArgs, PreRunE: signer.SanityCheck, RunE: func(cmd *cobra.Command, args []string) error { opts := signer.InputOpts if opts.Keystore != "" { ks := keystore.NewKeyStore(opts.Keystore, keystore.StandardScryptN, keystore.StandardScryptP) accounts := ks.Accounts() for idx, a := range accounts { log.Info().Str("account", a.Address.String()).Int("index", idx).Msg("Account") } return nil } if opts.KMS == "GCP" { gcpKMS := signer.GCPKMS{} return gcpKMS.ListKeyRingKeys(cmd.Context()) } return fmt.Errorf("unable to list accounts") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.