sources

package
v1.0.14-0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2016 License: BSD-3-Clause, BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeybaseSource    UpdateSourceName = "keybase"
	RemoteSource                      = "remote"
	PrereleaseSource                  = "prerelease"
	ErrorSource                       = "error"
)
View Source
const IsPrerelease = false

Variables

Functions

func UpdateSourcesDescription

func UpdateSourcesDescription(delimeter string) string

Types

type KeybaseUpdateSource

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

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

func NewKeybaseUpdateSource

func NewKeybaseUpdateSource(log logger.Logger, api libkb.API, runMode libkb.RunMode) KeybaseUpdateSource

func (KeybaseUpdateSource) Description

func (k KeybaseUpdateSource) Description() string

func (KeybaseUpdateSource) FindUpdate

func (k KeybaseUpdateSource) FindUpdate(options keybase1.UpdateOptions) (update *keybase1.Update, err error)

type RemoteUpdateSource

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

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

func NewRemoteUpdateSource

func NewRemoteUpdateSource(log logger.Logger, runMode libkb.RunMode, defaultURI string) RemoteUpdateSource

func (RemoteUpdateSource) Description

func (k RemoteUpdateSource) Description() string

func (RemoteUpdateSource) FindUpdate

func (k RemoteUpdateSource) FindUpdate(options keybase1.UpdateOptions) (update *keybase1.Update, err error)

type UpdateSource

type UpdateSource interface {
	Description() string
	FindUpdate(options keybase1.UpdateOptions) (*keybase1.Update, error)
}

type UpdateSourceName

type UpdateSourceName string

func DefaultUpdateSourceName

func DefaultUpdateSourceName() UpdateSourceName

func UpdateSourceNameFromString

func UpdateSourceNameFromString(name string, defaultSourceName UpdateSourceName) UpdateSourceName

Jump to

Keyboard shortcuts

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