wallets

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package wallets contains methods related to Wallets

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WalletsV1

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

WalletsV1 represents a custom type struct

func (*WalletsV1) CreateWallet

func (w *WalletsV1) CreateWallet(
	body *models.CreateWalletV1Request) (
	*models.CreateWalletResponse, *apiutils.APIError)

CreateWallet Create a wallet.

func (*WalletsV1) DeleteWallet

func (w *WalletsV1) DeleteWallet(
	walletId string) (
	interface{}, *apiutils.APIError)

DeleteWallet Delete the wallet with the specified id.

func (*WalletsV1) ListWallets

func (w *WalletsV1) ListWallets(
	limit *int64,
	start *string) (
	*models.ListWalletsResponse, *apiutils.APIError)

ListWallets Returns a list of wallets.

func (*WalletsV1) ReadWallet

func (w *WalletsV1) ReadWallet(
	walletId string) (
	*models.ReadWalletResponse, *apiutils.APIError)

ReadWallet Returns a representation of the specified KMS wallet.

func (*WalletsV1) RefreshWallet

func (w *WalletsV1) RefreshWallet(
	walletId string) (
	*models.RefreshWalletResponse, *apiutils.APIError)

RefreshWallet Refresh the access status of a wallet with the specified id to verify if it can be used for backup/restore.

type WalletsV1Client

type WalletsV1Client interface {
	// ListWallets Returns a list of wallets.
	ListWallets(
		limit *int64,
		start *string) (
		*models.ListWalletsResponse, *apiutils.APIError)

	// CreateWallet Create a wallet.
	CreateWallet(
		body *models.CreateWalletV1Request) (
		*models.CreateWalletResponse, *apiutils.APIError)

	// ReadWallet Returns a representation of the specified KMS wallet.
	ReadWallet(
		walletId string) (
		*models.ReadWalletResponse, *apiutils.APIError)

	// DeleteWallet Delete the wallet with the specified id.
	DeleteWallet(
		walletId string) (
		interface{}, *apiutils.APIError)

	// RefreshWallet Refresh the access status of a wallet with the specified id to verify if it can be used for backup/restore.
	RefreshWallet(
		walletId string) (
		*models.RefreshWalletResponse, *apiutils.APIError)
}

WalletsV1Client represents a custom type interface

func NewWalletsV1

func NewWalletsV1(config config.Config) WalletsV1Client

NewWalletsV1 returns WalletsV1Client

Jump to

Keyboard shortcuts

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