sources

package
v1.0.7-0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KeybaseSource    UpdateSourceName = "keybase"
	RemoteSource                      = "remote"
	PrereleaseSource                  = "prerelease"
	ErrorSource                       = "error"
)
View Source
const IsPrerelease = false
View Source
const PrereleaseURI = "https://s3.amazonaws.com/prerelease.keybase.io"

The https cert won't work with dots (.) in bucket name, so use alternate URI

Variables

Functions

func UpdateSourcesDescription

func UpdateSourcesDescription(delimeter string) string

Types

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) 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 {
	libkb.Contextified
	// contains filtered or unexported fields
}

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

func NewRemoteUpdateSource

func NewRemoteUpdateSource(g *libkb.GlobalContext, 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)
}

func DefaultUpdateSource

func DefaultUpdateSource(g *libkb.GlobalContext) UpdateSource

func NewUpdateSource

func NewUpdateSource(g *libkb.GlobalContext, sourceName UpdateSourceName) (UpdateSource, error)

func NewUpdateSourceFromString

func NewUpdateSourceFromString(g *libkb.GlobalContext, name string) (UpdateSource, 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