config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPath string

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerURL *url.URL
	User      string

	// Salt and token are not taken from the config file, but generated
	// interactively and stored in a cache file. This avoids storing the
	// password in plain text.
	Salt  string
	Token string
}

func LoadConfig

func LoadConfig() (Config, error)

func (*Config) CacheCredentials

func (c *Config) CacheCredentials(user, password string) error

Jump to

Keyboard shortcuts

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