cmd

package
v0.0.0-...-d0dabfa Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// colors
	Grey   = color.New(color.FgHiBlack).SprintFunc()
	Green  = color.New(color.FgHiGreen).SprintFunc()
	Cyan   = color.New(color.FgHiCyan).SprintFunc()
	Yellow = color.New(color.FgHiYellow).SprintFunc()
)

Functions

func AccountAddress

func AccountAddress() error

func AccountGet

func AccountGet() error

func AccountSeed

func AccountSeed() error

func AccountSync

func AccountSync(wait int) error

func AddSimpleDir

func AddSimpleDir(path string, threadId string) error

func AddSimpleFile

func AddSimpleFile(path string, threadId string) error

func BlockIgnore

func BlockIgnore(blockID string) error

Adds new block to the thread to indicate that this block should be ignored, essentially removing the block

func BlockList

func BlockList(threadID string, offset string, limit int, dots bool) error

func BlockMeta

func BlockMeta(blockID string) error

func BotsCreate

func BotsCreate(name string) error

BotsCreate writes a new bot config to the current repo

func BotsDisable

func BotsDisable(id string) error

BotsDisable disables a bot

func BotsEnable

func BotsEnable(id string, cafe bool) error

BotsEnable enables a known bot

func BotsList

func BotsList() error

BotsList lists all enabled bots

func CafeAdd

func CafeAdd(peerId string, token string) error

func CafeDelete

func CafeDelete(cafeID string) error

func CafeGet

func CafeGet(cafeID string) error

func CafeList

func CafeList() error

func CafeMessages

func CafeMessages() error

func Chat

func Chat(threadID string) error

func CommentAdd

func CommentAdd(blockID string, commentBody string) error

func CommentGet

func CommentGet(blockID string) error

func CommentIgnore

func CommentIgnore(blockID string) error

func CommentList

func CommentList(blockID string) error

func Config

func Config(name string, value string) error

func ContactAdd

func ContactAdd(name string, address string, wait int) error

func ContactDelete

func ContactDelete(address string) error

func ContactGet

func ContactGet(address string) error

func ContactList

func ContactList() error

func ContactSearch

func ContactSearch(name string, address string, local bool, remote bool, limit int, wait int) error

func Daemon

func Daemon(repoPath string, pinCode string, docs bool, debug bool) error

Start the daemon against the user repository

func Docs

func Docs() error

func Feed

func Feed(threadID string, offset string, limit int, mode string) error

func FileAdd

func FileAdd(path string, threadID string, caption string, group bool, verbose bool) error

func FileGet

func FileGet(fileHash string, content bool) error

func FileGetBlock

func FileGetBlock(blockID string, index int, path string, content bool) error

func FileIgnore

func FileIgnore(blockID string) error

func FileKeys

func FileKeys(dataID string) error

func FileListBlock

func FileListBlock(blockID string) error

func FileListThread

func FileListThread(threadID string, offset string, limit int) error

func InitCommand

func InitCommand(config core.InitConfig) error

func InviteAccept

func InviteAccept(inviteID string, key string) error

func InviteCreate

func InviteCreate(threadID string, address string, wait int) error

func InviteIgnore

func InviteIgnore(inviteID string) error

func InviteList

func InviteList() error

func IpfsCat

func IpfsCat(hash string, key string) error

func IpfsListCids

func IpfsListCids(cid string, outPath string) error

func IpfsPeer

func IpfsPeer() error

func IpfsPinCid

func IpfsPinCid(path string) error

func IpfsSwarmConnect

func IpfsSwarmConnect(address string) error

func IpfsSwarmPeers

func IpfsSwarmPeers(verbose bool, streams bool, latency bool, direction bool) error

func LikeAdd

func LikeAdd(blockID string) error

func LikeGet

func LikeGet(likeID string) error

func LikeIgnore

func LikeIgnore(likeID string) error

func LikeList

func LikeList(blockID string) error

func ListStream

func ListStream() error

func Logs

func Logs(subsystem string, level string, texOnly bool) error

func MessageAdd

func MessageAdd(threadID string, body string) error

func MessageGet

func MessageGet(blockID string) error

func MessageIgnore

func MessageIgnore(blockID string) error

func MessageList

func MessageList(threadID string, offset string, limit int) error

func Migrate

func Migrate(repoPath string, pinCode string) error

Grab the repo path and migrate it to the latest version, passing the decryption pincode

func NotificationList

func NotificationList() error

func NotificationRead

func NotificationRead(id string) error

func Observe

func Observe(threadID string, types []string) (<-chan *pb.FeedItem, error)

func ObserveCommand

func ObserveCommand(threadID string, types []string) error

func Ping

func Ping(address string) error

func ProfileGet

func ProfileGet() error

func ProfileSet

func ProfileSet(name string, avatar string) error

func Publish

func Publish(topic string) error

func Run

func Run() error

func SetServePeer

func SetServePeer(pubkey string) error

func ShadowStat

func ShadowStat() error

func StreamAddFile

func StreamAddFile(streamId string, filePath string) error

func StreamClose

func StreamClose(streamId string) error

func StreamCreate

func StreamCreate(threadId string, streamId string, subNum int) error

func StreamFromFile

func StreamFromFile(size int, thread string) error

func StreamSubscribe

func StreamSubscribe(streamId string) error

func StreamWorkerStat

func StreamWorkerStat() error

func Summary

func Summary() error

func ThreadAbandon

func ThreadAbandon(threadID string) error

func ThreadAdd

func ThreadAdd(name string, key string, tipe string, sharing string, whitelist []string, schema string, schemaFile string, blob bool, cameraRoll bool, media bool) error

func ThreadGet

func ThreadGet(threadID string) error

func ThreadList

func ThreadList() error

func ThreadPeer

func ThreadPeer(threadID string) error

func ThreadRename

func ThreadRename(name string, threadID string) error

func ThreadSnapshotApply

func ThreadSnapshotApply(id string, wait int) error

func ThreadSnapshotCreate

func ThreadSnapshotCreate() error

func ThreadSnapshotSearch

func ThreadSnapshotSearch(wait int) error

func TokenCreate

func TokenCreate(token string, noStore bool) error

func TokenList

func TokenList() error

func TokenRemove

func TokenRemove(token string) error

func TokenValidate

func TokenValidate(token string) error

func Version

func Version(git bool) error

func WalletAccounts

func WalletAccounts(mnemonic string, passphrase string, depth int, offset int) error

func WalletInit

func WalletInit(words int, passphrase string) error

Types

type MetaAndNotification

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

type SafeMap

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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