vaults

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package vaults shares the vault registration and device pairing rules of the desktop clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Folder

func Folder(location, name string) string

func HubURL

func HubURL(url string) string

func NameError

func NameError(name string) string

NameError says why name cannot name a new vault, "" when it can.

Types

type Join

type Join struct {
	Client            *api.Client
	Context           context.Context
	URL, Name, Device string
	VaultID           int64
	PairOnly          bool
	Folder            string
	OnCode            func(string)
	OnJoining         func()
}

Join is one run of the flow, off the UI thread.

func (*Join) Run

func (r *Join) Run() (*api.Vault, error)

Run returns the vault it made, nil when the vault existed.

type VaultLeft

type VaultLeft struct {
	// contains filtered or unexported fields
}

VaultLeft is a join's failure that may leave its vault on the list. The user hears of it even when the join was cancelled or replaced (#194).

func (*VaultLeft) Error

func (e *VaultLeft) Error() string

Jump to

Keyboard shortcuts

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