tlfupgrade

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DelayReasonMap = map[string]DelayReason{
	"MISS":     0,
	"INFLIGHT": 1,
}
View Source
var DelayReasonRevMap = map[DelayReason]string{
	0: "MISS",
	1: "INFLIGHT",
}
View Source
var GetTLFForUpgradeResTypeMap = map[string]GetTLFForUpgradeResType{
	"TLFAVAILABLE": 0,
	"DELAY":        1,
	"ERR":          2,
	"DISABLED":     3,
}
View Source
var GetTLFForUpgradeResTypeRevMap = map[GetTLFForUpgradeResType]string{
	0: "TLFAVAILABLE",
	1: "DELAY",
	2: "ERR",
	3: "DISABLED",
}

Functions

func UpgradeTLFForKBFS

func UpgradeTLFForKBFS(ctx context.Context, g *libkb.GlobalContext, tlfName string, public bool) (err error)

Types

type BackgroundTLFUpdater

type BackgroundTLFUpdater struct {
	libkb.Contextified
	sync.Mutex
	// contains filtered or unexported fields
}

func NewBackgroundTLFUpdater

func NewBackgroundTLFUpdater(g *libkb.GlobalContext) *BackgroundTLFUpdater

func (*BackgroundTLFUpdater) Run

func (b *BackgroundTLFUpdater) Run()

func (*BackgroundTLFUpdater) Shutdown

func (b *BackgroundTLFUpdater) Shutdown() error

type DelayReason

type DelayReason int
const (
	DelayReason_MISS     DelayReason = 0
	DelayReason_INFLIGHT DelayReason = 1
)

func (DelayReason) DeepCopy

func (o DelayReason) DeepCopy() DelayReason

func (DelayReason) String

func (e DelayReason) String() string

type GetTLFForUpgradeAvailableRes

type GetTLFForUpgradeAvailableRes struct {
	TlfID    keybase1.TLFID `codec:"tlfID" json:"tlfID"`
	TlfName  string         `codec:"tlfName" json:"tlfName"`
	IsPublic bool           `codec:"isPublic" json:"isPublic"`
}

func (GetTLFForUpgradeAvailableRes) DeepCopy

type GetTLFForUpgradeDelayRes

type GetTLFForUpgradeDelayRes struct {
	Delay  gregor1.Time `codec:"delay" json:"delay"`
	Reason DelayReason  `codec:"reason" json:"reason"`
}

func (GetTLFForUpgradeDelayRes) DeepCopy

type GetTLFForUpgradeDisabledRes

type GetTLFForUpgradeDisabledRes struct {
	Delay gregor1.Time `codec:"delay" json:"delay"`
}

func (GetTLFForUpgradeDisabledRes) DeepCopy

type GetTLFForUpgradeErrRes

type GetTLFForUpgradeErrRes struct {
	Error string       `codec:"error" json:"error"`
	Delay gregor1.Time `codec:"delay" json:"delay"`
}

func (GetTLFForUpgradeErrRes) DeepCopy

type GetTLFForUpgradeRes

type GetTLFForUpgradeRes struct {
	Typ__          GetTLFForUpgradeResType       `codec:"typ" json:"typ"`
	Tlfavailable__ *GetTLFForUpgradeAvailableRes `codec:"tlfavailable,omitempty" json:"tlfavailable,omitempty"`
	Delay__        *GetTLFForUpgradeDelayRes     `codec:"delay,omitempty" json:"delay,omitempty"`
	Err__          *GetTLFForUpgradeErrRes       `codec:"err,omitempty" json:"err,omitempty"`
	Disabled__     *GetTLFForUpgradeDisabledRes  `codec:"disabled,omitempty" json:"disabled,omitempty"`
}

func NewGetTLFForUpgradeResWithErr

func NewGetTLFForUpgradeResWithErr(v GetTLFForUpgradeErrRes) GetTLFForUpgradeRes

func (GetTLFForUpgradeRes) DeepCopy

func (GetTLFForUpgradeRes) Delay

func (GetTLFForUpgradeRes) Disabled

func (GetTLFForUpgradeRes) Err

func (GetTLFForUpgradeRes) Tlfavailable

func (o GetTLFForUpgradeRes) Tlfavailable() (res GetTLFForUpgradeAvailableRes)

func (*GetTLFForUpgradeRes) Typ

type GetTLFForUpgradeResType

type GetTLFForUpgradeResType int
const (
	GetTLFForUpgradeResType_TLFAVAILABLE GetTLFForUpgradeResType = 0
	GetTLFForUpgradeResType_DELAY        GetTLFForUpgradeResType = 1
	GetTLFForUpgradeResType_ERR          GetTLFForUpgradeResType = 2
	GetTLFForUpgradeResType_DISABLED     GetTLFForUpgradeResType = 3
)

func (GetTLFForUpgradeResType) DeepCopy

func (GetTLFForUpgradeResType) String

func (e GetTLFForUpgradeResType) String() string

Jump to

Keyboard shortcuts

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