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 ¶
View Source
var UpdateSourceNames = []UpdateSourceName{KeybaseSource, RemoteSource, PrereleaseSource}
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.