rclone: github.com/ncw/rclone/cmd/serve Index | Files | Directories

package serve

import "github.com/ncw/rclone/cmd/serve"

Index

Package Files

serve.go

Variables

var Command = &cobra.Command{
    Use:   "serve <protocol> [opts] <remote>",
    Short: `Serve a remote over a protocol.`,
    Long:  "" /* 239 byte string literal not displayed */,

    RunE: func(command *cobra.Command, args []string) error {
        if len(args) == 0 {
            return errors.New("serve requires a protocol, eg 'rclone serve http remote:'")
        }
        return errors.New("unknown protocol")
    },
}

Command definition for cobra

Directories

PathSynopsis
dlna
dlna/data
dlna/dlnaflags
ftp
http
httplibPackage httplib provides common functionality for http servers
httplib/httpflags
httplib/servePackage serve deals with serving objects over HTTP
httplib/serve/data
proxyPackage proxy implements a programmable proxy for rclone serve
proxy/proxyflagsPackage proxyflags implements command line flags to set up a proxy
restic
servetestPackage servetest provides infrastructure for running loopback tests of "rclone serve backend:" against the backend integration tests.
sftp
webdav

Package serve imports 9 packages (graph) and is imported by 7 packages. Updated 2019-08-20. Refresh now. Tools for package owners.