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

package proxy

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

Package proxy implements a programmable proxy for rclone serve

Index

Package Files

proxy.go

Variables

var DefaultOpt = Options{
    AuthProxy: "",
}

DefaultOpt is the default values uses for Opt

var Help = strings.Replace("" /* 2152 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, pass string) (VFS *vfs.VFS, vfsKey string, err error)

Call runs the auth proxy with the given input, 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

Directories

PathSynopsis
proxyflagsPackage proxyflags implements command line flags to set up a proxy

Package proxy imports 14 packages (graph) and is imported by 9 packages. Updated 2019-08-07. Refresh now. Tools for package owners.