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

package proxy

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

Package proxy implements a programmable proxy for rclone serve


Package Files



var DefaultOpt = Options{
    AuthProxy: "",

DefaultOpt is the default values uses for Opt

var Help = strings.Replace("" /* 2656 byte string literal not displayed */,

    "|", "`", -1)

Help contains text describing how to use the proxy

type Options Uses

type Options struct {
    AuthProxy string

Options is options for creating the proxy

type Proxy Uses

type Proxy struct {
    Opt Options
    // contains filtered or unexported fields

Proxy represents a proxy to turn auth requests into a VFS

func New Uses

func New(opt *Options) *Proxy

New creates a new proxy with the Options passed in

func (*Proxy) Call Uses

func (p *Proxy) Call(user, auth string, isPublicKey bool) (VFS *vfs.VFS, vfsKey string, err error)

Call runs the auth proxy with the username and password/public key provided returning a *vfs.VFS and the key used in the VFS cache.

func (*Proxy) Get Uses

func (p *Proxy) Get(key string) *vfs.VFS

Get VFS from the cache using key - returns nil if not found


proxyflagsPackage proxyflags implements command line flags to set up a proxy

Package proxy imports 15 packages (graph). Updated 2020-08-03. Refresh now. Tools for package owners.