Documentation
¶
Overview ¶
Package wallets contains methods related to Wallets
Index ¶
- type WalletsV1
- func (w *WalletsV1) CreateWallet(body *models.CreateWalletV1Request) (*models.CreateWalletResponse, *apiutils.APIError)
- func (w *WalletsV1) DeleteWallet(walletId string) (interface{}, *apiutils.APIError)
- func (w *WalletsV1) ListWallets(limit *int64, start *string) (*models.ListWalletsResponse, *apiutils.APIError)
- func (w *WalletsV1) ReadWallet(walletId string) (*models.ReadWalletResponse, *apiutils.APIError)
- func (w *WalletsV1) RefreshWallet(walletId string) (*models.RefreshWalletResponse, *apiutils.APIError)
- type WalletsV1Client
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 ¶
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
Click to show internal directories.
Click to hide internal directories.