client

package
v1.0.0-release Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskFilesList

func AskFilesList(cfg *config.Config, ecdsaKeyPair ecdsa.KeyPair, askFilesListChan chan []byte, log *ipfsLog.ZapEventLogger) error

func AskFilesListButton

func AskFilesListButton(w fyne.Window, cfg *config.Config, ecdsaKeyPair *ecdsa.KeyPair,
	askFilesListChan chan []byte, log *ipfsLog.ZapEventLogger) *widget.Button

func BrowseButton

func BrowseButton(w fyne.Window, inputLabel *widget.Label, log *ipfsLog.ZapEventLogger) *widget.Button

func CreateAESWidgets

func CreateAESWidgets(w fyne.Window, aesInput *widget.Label, log *ipfsLog.ZapEventLogger, aesKey *aes.Key) (fyne.CanvasObject, *widget.Button, *widget.Button)

func CreateECDSAWidgets

func CreateECDSAWidgets(w fyne.Window, ecdsaInput *widget.Label, log *ipfsLog.ZapEventLogger, ecdsaKeyPair *ecdsa.KeyPair) (fyne.CanvasObject, *widget.Button, *widget.Button)

func CreateFileSelectionWidgets

func CreateFileSelectionWidgets(w fyne.Window, selectedFileLabel *widget.Label, log *ipfsLog.ZapEventLogger) (fyne.CanvasObject, *widget.Button)

func DownloadButtonWidget

func DownloadButtonWidget(log *ipfsLog.ZapEventLogger, ctx context.Context, config *config.Config, ipfsAPI icore.CoreAPI,
	fileCid cid.Cid, filename string, extension string, aesKey aes.Key, w fyne.Window) *widget.Button

func DownloadFile

func DownloadFile(log *ipfsLog.ZapEventLogger, ctx context.Context, config *config.Config, ipfsAPI icore.CoreAPI,
	cidFile cid.Cid, filename string, extension string, aesKey aes.Key) error

DownloadFile downloads a file from IPFS using the provided CID and saves it to the download location of the machine.

func GenerateAESKeyButton

func GenerateAESKeyButton(w fyne.Window, aesInputLabel *widget.Label, log *ipfsLog.ZapEventLogger) *widget.Button

func GenerateECDSAKeyPairButton

func GenerateECDSAKeyPairButton(w fyne.Window, ecdsaInputLabel *widget.Label, log *ipfsLog.ZapEventLogger) *widget.Button

func LoadAESButton

func LoadAESButton(w fyne.Window, aesKey *aes.Key, aesInputLabel *widget.Label, log *ipfsLog.ZapEventLogger) *widget.Button

func LoadECDSAButton

func LoadECDSAButton(w fyne.Window, ecdsaKeyPair *ecdsa.KeyPair, ecdsaInputLabel *widget.Label, log *ipfsLog.ZapEventLogger) *widget.Button

func SelectFileButton

func SelectFileButton(w fyne.Window, selectedFileInputLabel *widget.Label, log *ipfsLog.ZapEventLogger) *widget.Button

func SendFile

func SendFile(ctx context.Context, cfg *config.Config, selectedFile string,
	ecdsaKeyPair *ecdsa.KeyPair, aesKey *aes.Key, nodeIpfs *core.IpfsNode, ipfsAPI iface.CoreAPI,
	clientAnnouncementChan chan *transaction.ClientAnnouncement,
	log *ipfsLog.ZapEventLogger) error

func SendFileButton

func SendFileButton(ctx context.Context, cfg *config.Config, w fyne.Window, selectedFile *widget.Label,
	ecdsaKeyPair *ecdsa.KeyPair, aesKey *aes.Key, nodeIpfs *core.IpfsNode, ipfsAPI icore.CoreAPI,
	clientAnnouncementChan chan *transaction.ClientAnnouncement,
	log *ipfsLog.ZapEventLogger) *widget.Button

Types

This section is empty.

Jump to

Keyboard shortcuts

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