client

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup() error

Backup fetchs all the items and store it in the current directory.

func Login

func Login() error

Login connects to a StandardFile server.

func Note added in v0.3.0

func Note() error

Note runs the text-based StandardNotes application.

func Save

func Save(cfg Config) error

Save stores the configuration in the current folder according to `credentialsfile` const.

func Unseal

func Unseal(filename string) error

Unseal decrypt your backuped notes.

Types

type Config

type Config struct {
	Endpoint    string `json:"endpoint"`
	Email       string `json:"email"`
	BearerToken string `json:"bearer_token"`
	Mk          string `json:"mk"`
	Ak          string `json:"Ak"` // AuthKey
}

A Config holds client's configuration.

func Load

func Load() (Config, error)

Load gets the configuration from the current folder according to `credentialsfile` const.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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