Documentation
¶
Index ¶
- type AutoUpdateResult
- type AutoUpdateState
- type DoctorReport
- type InstallMethod
- type Release
- type SelfUpdateResult
- type Service
- func (s *Service) AutoUpdate(ctx context.Context, currentVersion string, cfg config.UpdateCheck, ...) AutoUpdateResult
- func (s *Service) Doctor(ctx context.Context, currentVersion string, cfg config.UpdateCheck) DoctorReport
- func (s *Service) SelfUpdate(ctx context.Context, stdout, stderr io.Writer) (SelfUpdateResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoUpdateResult ¶
type AutoUpdateState ¶
type DoctorReport ¶
type InstallMethod ¶
type InstallMethod string
const ( InstallMethodUnknown InstallMethod = "unknown" InstallMethodBrew InstallMethod = "brew" InstallMethodGo InstallMethod = "go-install" )
type SelfUpdateResult ¶
type SelfUpdateResult struct {
Method InstallMethod
UpgradeCommand string
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AutoUpdate ¶
func (s *Service) AutoUpdate(ctx context.Context, currentVersion string, cfg config.UpdateCheck, stdout, stderr io.Writer) AutoUpdateResult
func (*Service) Doctor ¶
func (s *Service) Doctor(ctx context.Context, currentVersion string, cfg config.UpdateCheck) DoctorReport
func (*Service) SelfUpdate ¶
Click to show internal directories.
Click to hide internal directories.