Versions in this module Expand all Collapse all v1 v1.4.5 Jul 11, 2020 Changes in this version + func UnPublishFile(cData *CommandData, name string, id uint) + type Bar struct + func NewBar(task BarTask, total int64, name string, singleMode bool) *Bar + type BarTask uint8 + const DownloadTask + const UploadTask + func (bt BarTask) String() string + func (bt BarTask) Verb() string type CommandData + Compression bool + Extract bool + func (cData *CommandData) UploadItems(uris []string, threads int, uploadData *UploadData) type DownloadData + ProgressView *ProgressView + type HashBench struct + func NewHashBench() *HashBench + func (ht HashBench) DoTest() int + type ProgressView struct + Bars []*mpb.Bar + ProgressContainer *mpb.Progress + RawBars []*Bar + func NewProgressView() *ProgressView + func (pv *ProgressView) AddBar(bbar *Bar) *mpb.Bar type UploadData + NoArchiving bool + ProgressView *ProgressView + PublicName string v1.4.3 Jun 2, 2020 v1.4.2 May 6, 2020 v1.4.1 May 6, 2020 Changes in this version type CommandData + func (cData *CommandData) DownloadNamespace(exGroups, exTags, exFiles []string, parallelism uint, outDir string) v1.4.0 Apr 20, 2020 Changes in this version type CommandData + UnmodifiedNamespace string + func (cData *CommandData) CreateFile(name string) + func (cData *CommandData) FileTree(sOrder, namespace string) + func (cData *CommandData) ListAttributes(attribute libdm.Attribute) + func (cData *CommandData) Logout(username string) v1.1.1 Apr 13, 2020 Changes in this version + var AvailableOrders = []string + var ErrAbortDeletion = errors.New("aborted") + var GreenSuccessfully = color.HiGreenString("Successfully") + var RedError = color.HiRedString("Error") + var ReversedSuffixes = []string + var UseTargets = []string + func ConfigUse(cData *CommandData, target string, values []string) + func ConfigView(cData *CommandData) + func CreateKeystore(cData *CommandData, path string, overwrite bool) + func CreateNamespace(cData *CommandData, name string, customNS bool) + func DeleteAttribute(cData *CommandData, attribute libdm.Attribute, name string) + func DeleteFile(cData *CommandData, name string, id uint) + func DeleteNamespace(cData *CommandData, name string) + func GetFileCommandData(n string, fid uint) (name string, id uint) + func GetTempFile(fileName string) string + func IsOrderReversed(str string) bool + func KeystoreAddKey(cData *CommandData, keyFile string, fileID uint) + func KeystoreCleanup(cData *CommandData, shredderCount uint) + func KeystoreDelete(cData *CommandData, shredderCount uint) + func KeystoreInfo(cData *CommandData) + func KeystoreRemoveKey(cData *CommandData, fileID uint) + func ListFiles(cData *CommandData, name string, id uint, sOrder string) + func ListNamespace(cData *CommandData) + func LoginCommand(cData *CommandData, usernameArg string, args ...bool) + func Ping(cData *CommandData) + func ProcesStrSliceParam(slice *[]string) + func ProcesStrSliceParams(slices ...*[]string) + func PublishFile(cData *CommandData, name string, id uint, publicName string) + func RegisterCommand(cData *CommandData) + func SetupClient(cData *CommandData, host, configFile string, ...) + func ShredderFile(localFile string, size int64) + func UpdateAttribute(cData *CommandData, attribute libdm.Attribute, name, newName string) + func UpdateFile(cData *CommandData, name string, id uint, newName string, newNamespace string, ...) + func UpdateNamespace(cData *CommandData, name, newName string, customNS bool) + type CommandData struct + All bool + AllNamespaces bool + Command string + Config *dmConfig.Config + Details uint8 + Encryption string + EncryptionKey []byte + FileAttributes libdm.FileAttributes + Force bool + Keyfile string + LibDM *libdm.LibDM + NameLen int + Namespace string + NoDecrypt bool + NoEmojis bool + NoRedaction bool + OutputJSON bool + Quiet bool + RandKey int + VerifyFile bool + Yes bool + func (cData *CommandData) CloseKeystore() + func (cData *CommandData) DownloadFile(data *DownloadData) + func (cData *CommandData) EditFile(id uint) + func (cData *CommandData) GetKeystore() (*libdm.Keystore, error) + func (cData *CommandData) HasKeystoreSupport() bool + func (cData *CommandData) Init() bool + func (cData *CommandData) RequestedEncryptionInput() bool + func (cData *CommandData) UploadFile(uris []string, threads uint, uploadData *UploadData) + func (cData *CommandData) ViewFile(data *DownloadData) + type DownloadData struct + FileID uint + FileName string + LocalPath string + NoPreview bool + Preview bool + type FileOrder int16 + const CreatedOrder + const IDOrder + const NameOrder + const NamespaceOrder + const NoOrder + const PubNameOrder + const SizeOrder + func FileOrderFromString(str string) *FileOrder + type FileSorter struct + Files []libdm.FileResponseItem + Reverse bool + func NewFileSorter(files []libdm.FileResponseItem) *FileSorter + func (sorter *FileSorter) Reversed(reversed bool) *FileSorter + func (sorter FileSorter) SortBy(by FileOrder) + type UploadData struct + DeleteInvalid bool + FromStdIn bool + Name string + Progress *uiprogress.Progress + Public bool + Publicname string + ReplaceFile uint + SetClip bool + TotalFiles int