cmd

package
v0.0.0-...-4ce4a32 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MPL-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TransferFundsCmd transfer funds command
	TransferFundsCmd = &cobra.Command{
		Use:   "transfer-funds",
		Short: "transfers funds from one wallet to another",
		Run:   rootcmd.Perform("transfer funds", RunTransferFunds),
	}
	// WalletsCmd root wallets command
	WalletsCmd = &cobra.Command{
		Use:   "wallet",
		Short: "provides wallets micro-service entrypoint",
	}
)
View Source
var (
	// CreateCmd creates a wallet on uphold
	CreateCmd = &cobra.Command{
		Use:   "create",
		Short: "creates a wallet",
		Run:   rootcmd.Perform("create", Create),
	}
)
View Source
var (
	// ListTransactionsCmd is a command to list transactions from a given wallet
	ListTransactionsCmd = &cobra.Command{
		Use:   "list-transactions",
		Short: "lists a transactions from a given wallet",
		Run:   rootcmd.Perform("list transactions", RunListTransactions),
	}
)

Functions

func Create

func Create(cmd *cobra.Command, args []string) error

Create creates a wallet

func CreateOnUphold

func CreateOnUphold(ctx context.Context, name string) error

CreateOnUphold creates a wallet on uphold

func ListTransactions

func ListTransactions(
	ctx context.Context,
	args []string,
	csvOut bool,
	signed bool,
	limit int,
	startDateStr string,
	walletProvider string,
) error

ListTransactions lists transactions

func RunListTransactions

func RunListTransactions(cmd *cobra.Command, args []string) error

RunListTransactions runs the list transactions command

func RunTransferFunds

func RunTransferFunds(command *cobra.Command, args []string) error

RunTransferFunds moves funds from one wallet to another

func TransferFunds

func TransferFunds(
	ctx context.Context,
	from string,
	to string,
	value string,
	currency string,
	note string,
	purpose string,
	beneficiary *uphold.Beneficiary,
	oneshot bool,
	usevault bool,
) error

TransferFunds transfers funds to a wallet

Types

This section is empty.

Jump to

Keyboard shortcuts

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