config

package
v0.0.0-...-0b6996a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: ISC Imports: 7 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 {
	Server      string
	Username    string
	Password    string
	Certificate string
	Directory   string
	Login       struct {
		UserID      string
		DeviceID    string
		AccessToken string
	}
	// contains filtered or unexported fields
}

Config is all the state we need

func Load

func Load() (*Config, error)

Load will read from disk, or create on disk if it does not exist

func (*Config) Save

func (c *Config) Save() error

Save will save the in memory config to disk

Jump to

Keyboard shortcuts

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