seafile

package
v0.0.96 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL              string
	Username         string
	Password         string
	TwoFactorEnabled bool
	OTP              string
	RepoID           string
}

func (*Config) CreateLibrary

func (c *Config) CreateLibrary(token string) error

func (*Config) GetToken

func (c *Config) GetToken() (string, error)

GetToken from seafile

type Provider

type Provider struct {
	URL    string
	Token  string
	RepoID string
}

Provider ..

func NewProvider

func NewProvider(url, token, repoid string) *Provider
func (s *Provider) GetLink(filepath string) (string, error)

func (*Provider) Upload

func (s *Provider) Upload(file *os.File, path string) (fileID string, err error)

Jump to

Keyboard shortcuts

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