favorites

package
v4.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: BSD-3-Clause, BSD-3-Clause, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Name         string
	FolderType   keybase1.FolderType
	Private      bool
	TeamID       *keybase1.TeamID
	ResetMembers []keybase1.User
	// Mtime is the TLF mtime (i.e. not favorite change time) stored in the
	// core db. It's based on notifications from the mdserver.
	TlfMtime *keybase1.Time
}

Data represents the auxiliary data belonging to a KBFS favorite.

func DataFrom

func DataFrom(folder keybase1.Folder) Data

DataFrom returns auxiliary data from a folder sent via the keybase1 protocol.

type Folder

type Folder struct {
	Name string
	Type tlf.Type
}

Folder is a top-level favorited folder name.

func NewFolderFromProtocol

func NewFolderFromProtocol(folder keybase1.Folder) *Folder

NewFolderFromProtocol creates a Folder from a keybase1.Folder.

func (Folder) ToKBFolderHandle

func (f Folder) ToKBFolderHandle(created bool) keybase1.FolderHandle

ToKBFolderHandle creates a keybase1.FolderHandle from a Folder.

type ToAdd

type ToAdd struct {
	Folder Folder
	Data   Data

	// Created, if set to true, indicates that this is the first time
	// the TLF has ever existed. It is only used when adding the TLF
	// to favorites
	Created bool
}

ToAdd contains the data needed to add a new favorite to the favorites list.

func (ToAdd) ToKBFolderHandle

func (ta ToAdd) ToKBFolderHandle() keybase1.FolderHandle

ToKBFolderHandle converts this data into an object suitable for the keybase1 protocol.

Jump to

Keyboard shortcuts

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