sources

package
v1.0.6-1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2015 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeybaseSource Source = "keybase"
	GithubSource         = "github"
	RemoteSource         = "remote"
	DefaultSource        = ""
)

Variables

Functions

This section is empty.

Types

type GithubUpdateSource

type GithubUpdateSource struct {
	libkb.Contextified
}

GithubUpdateSource finds releases/updates on Github

func NewGithubUpdateSource

func NewGithubUpdateSource(g *libkb.GlobalContext) GithubUpdateSource

func (GithubUpdateSource) FindUpdate

func (g GithubUpdateSource) FindUpdate(config keybase1.UpdateConfig) (update *keybase1.Update, err error)

type KeybaseUpdateSource

type KeybaseUpdateSource struct {
	libkb.Contextified
}

KeybaseUpdateSource finds releases/updates from custom url (used primarily for testing)

func NewKeybaseUpdateSource

func NewKeybaseUpdateSource(g *libkb.GlobalContext) KeybaseUpdateSource

func (KeybaseUpdateSource) FindUpdate

func (k KeybaseUpdateSource) FindUpdate(config keybase1.UpdateConfig) (update *keybase1.Update, err error)

type RemoteUpdateSource

type RemoteUpdateSource struct {
	libkb.Contextified
}

RemoteUpdateSource finds releases/updates from custom url feed (used primarily for testing)

func NewRemoteUpdateSource

func NewRemoteUpdateSource(g *libkb.GlobalContext) RemoteUpdateSource

func (RemoteUpdateSource) FindUpdate

func (k RemoteUpdateSource) FindUpdate(config keybase1.UpdateConfig) (update *keybase1.Update, err error)

type Source

type Source string

type UpdateSource

type UpdateSource interface {
	FindUpdate(config keybase1.UpdateConfig) (*keybase1.Update, error)
}

func UpdateSourceForName

func UpdateSourceForName(g *libkb.GlobalContext, name string) (UpdateSource, error)

Jump to

Keyboard shortcuts

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