cli

package
v1.2.0-beta.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())

Functions

func CmdAddEditors

func CmdAddEditors() *cobra.Command

func CmdAddViewers

func CmdAddViewers() *cobra.Command

func CmdChangeOwner

func CmdChangeOwner() *cobra.Command

func CmdDeleteFile

func CmdDeleteFile() *cobra.Command

func CmdGetKeys

func CmdGetKeys() *cobra.Command

func CmdListFiles

func CmdListFiles() *cobra.Command

func CmdListPubkey

func CmdListPubkey() *cobra.Command

func CmdMakeRoot

func CmdMakeRoot() *cobra.Command

func CmdPostFile

func CmdPostFile() *cobra.Command

func CmdPostkey

func CmdPostkey() *cobra.Command

func CmdQueryParams

func CmdQueryParams() *cobra.Command

func CmdRemoveEditors

func CmdRemoveEditors() *cobra.Command

func CmdRemoveViewers

func CmdRemoveViewers() *cobra.Command

func CmdResetEditors

func CmdResetEditors() *cobra.Command

func CmdResetViewers

func CmdResetViewers() *cobra.Command

func CmdShowFileFromPath

func CmdShowFileFromPath() *cobra.Command

Query using human readable path to show that merklePath() function works as intended Should really be called "CmdShowFileFromPathAndOwner", but I opted to not make the name so long given that this is just a testing function

func CmdShowFiles

func CmdShowFiles() *cobra.Command

Need to input the full hex formatted merkleHash address and the ownerAddress for this to work

func CmdShowPubkey

func CmdShowPubkey() *cobra.Command

func GetQueryCmd

func GetQueryCmd(queryRoute string) *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns the transaction commands for this module

func JSONMarshalViewersAndEditors

func JSONMarshalViewersAndEditors(viewers map[string]string, editors map[string]string) ([]byte, []byte, error)

func MakeOwnerAddress

func MakeOwnerAddress(merklePath string, user string) string

Owner address is whoever owns this file/folder

func MakePrivateKey

func MakePrivateKey(clientCtx client.Context) (*eciesgo.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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