sharecmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateFolderShareCommand = cli.Command{
	Name:      "folder-share-create",
	Usage:     "Creates a folder share",
	ArgsUsage: "Usage: folder-share-create <path> <recipient-type> <recipient> <read-only>",
	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:  "read-write",
			Usage: "Sets the share to read-write so people can add/delete files",
		},
	},
	Action: createFolderShare,
}
View Source
var CreatePublicLinkCommand = cli.Command{
	Name:      "public-link-create",
	Usage:     "Creates a public link",
	ArgsUsage: "<path>",
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "password",
			Usage: "password to protected the access to the link",
		},
		cli.BoolFlag{
			Name:  "read-write",
			Usage: "Sets the link contents to read-write to people can add/delete files",
		},
		cli.StringFlag{
			Name:  "expiration",
			Usage: "expiration time for the link, like 2018-02-28:12:45:00",
		},
	},
	Action: createPublicLink,
}
View Source
var InspectPublicLinkCommand = cli.Command{
	Name:      "public-link-inspect",
	Usage:     "Inspects a public link",
	ArgsUsage: "Usage: public-link-inspect <token>",
	Action:    inspectPublicLink,
}
View Source
var ListFolderSharesCommand = cli.Command{
	Name:      "folder-share-list",
	Usage:     "List folder shares",
	ArgsUsage: "Usage: folder-share-list [path]",
	Action:    listFolderShares,
}
View Source
var ListPublicLinksCommand = cli.Command{
	Name:      "public-link-list",
	Usage:     "List all public links",
	ArgsUsage: "Usage: public-link-list",
	Action:    listPublicLinks,
}
View Source
var ListReceivedSharesCommand = cli.Command{
	Name:      "received-share-list",
	Usage:     "List of received folder shares",
	ArgsUsage: "Usage: received-shares-list",
	Action:    listReceivedShares,
}
View Source
var MountReceivedShareCommand = cli.Command{
	Name:      "received-share-mount",
	Usage:     "Marks a received share to be mounted",
	ArgsUsage: "Usage: received-share-mount <share-id>",
	Action:    mountReceivedShare,
}
View Source
var RemoveFolderShareCommand = cli.Command{
	Name:      "folder-share-remove",
	Usage:     "Delete a folder share",
	ArgsUsage: "Usage: folder-share-remove <share-id>",
	Action:    removeFolderShare,
}
View Source
var RevokePublicLinkCommand = cli.Command{
	Name:      "public-link-revoke",
	Usage:     "Revokes a public link",
	ArgsUsage: "Usage: public-link-revoke <token>",
	Action:    revokePublicLink,
}
View Source
var UnmountReceivedShareCommmand = cli.Command{
	Name:      "received-share-unmount",
	Usage:     "Marks a received share to be unmounted",
	ArgsUsage: "Usage: received-share-unmount <share-id>",
	Action:    unmountReceivedShare,
}
View Source
var UpdateFolderShareCommand = cli.Command{
	Name:      "folder-share-update",
	Usage:     "Update a folder share",
	ArgsUsage: "Usage: folder-share-update <share-id> <read-only>",
	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:  "read-write",
			Usage: "Sets the share to read-write so people can add/delete files",
		},
	},
	Action: updateFolderShare,
}
View Source
var UpdatePublicLinkCommand = cli.Command{
	Name:      "public-link-update",
	Usage:     "Updates a public link",
	ArgsUsage: "Usage: public-link-update <token>",
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "password",
			Usage: "password to protected the access to the link",
		},
		cli.BoolFlag{
			Name:  "read-only",
			Usage: "set link to read-only",
		},
		cli.StringFlag{
			Name:  "expiration",
			Usage: "expiration time for the link, like 2018-02-28:12:45:00",
		},
		cli.BoolFlag{
			Name:  "set-expiration",
			Usage: "set expiration field to the value from --expiration flag",
		},
		cli.BoolFlag{
			Name:  "set-password",
			Usage: "set password field to the value from --password flag",
		},
		cli.BoolFlag{
			Name:  "set-read-only",
			Usage: "set read-only field to the value from --read-only flag",
		},
	},
	Action: updatePublicLink,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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