config

package
v0.0.0-...-1f9619b Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeleteEntry string
View Source
var DocHost string
View Source
var DownloadBlob string
View Source
var ListDocs string
View Source
var NewTokenDevice string
View Source
var NewUserDevice string
View Source
var SyncComplete string
View Source
var UpdateStatus string
View Source
var UploadBlob string
View Source
var UploadRequest string

Functions

func ConfigPath

func ConfigPath() (string, error)

ConfigPath returns the path to the config file. It will check the following in order:

  • If the RMAPI_CONFIG environment variable is set, it will use that path.
  • If a config file exists in the user's home dir as described by os.UserHomeDir, it will use that.
  • Otherwise, it will use the XDG config dir, as described by os.UserConfigDir.

func LoadTokens

func LoadTokens(path string) model.AuthTokens

func SaveTokens

func SaveTokens(path string, tokens model.AuthTokens)

Types

This section is empty.

Jump to

Keyboard shortcuts

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