Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogUpdateCheckError ¶
func LogUpdateCheckError(err error)
Types ¶
type BinaryUpgrader ¶
type BinaryUpgrader struct {
// contains filtered or unexported fields
}
func NewBinaryUpgrader ¶
func NewBinaryUpgrader(reg registry.RepoRegistry, currentVersion string) (*BinaryUpgrader, error)
type UpdateNotice ¶
type UpdateNotice struct {
CurrentVersion string
LatestVersion string
// contains filtered or unexported fields
}
func (*UpdateNotice) Message ¶
func (n *UpdateNotice) Message() string
type UpdateNotifier ¶
type UpdateNotifier struct {
// contains filtered or unexported fields
}
func NewUpdateNotifier ¶
func NewUpdateNotifier(reg registry.RepoRegistry) (*UpdateNotifier, error)
func (*UpdateNotifier) Check ¶
func (n *UpdateNotifier) Check(ctx context.Context, currentVersion string) (*UpdateNotice, error)
func (*UpdateNotifier) MarkNotified ¶
func (n *UpdateNotifier) MarkNotified(notice *UpdateNotice) error
Click to show internal directories.
Click to hide internal directories.