config

package
v0.0.0-...-82cad40 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesConfigExist

func DoesConfigExist(dir string) bool

Types

type Cfg

type Cfg struct {
	EncryptionKey string
	MountPoint    string
	Dropbox       *DropboxCredentials
	GDrive        *oauth2.Token
}

func NewConfig

func NewConfig(cfgDir, mntDir string, secret string) (cfg *Cfg, err error)

func ReadConfig

func ReadConfig(dir string) (*Cfg, error)

type DropboxCredentials

type DropboxCredentials struct {
	AccessToken string
}

Jump to

Keyboard shortcuts

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