Documentation
¶
Index ¶
- Variables
- type Asset
- type Client
- func (c Client) Check(ctx context.Context, curr string, plat Platform) (Result, error)
- func (c Client) Download(ctx context.Context, a Asset, dst string, prog Progress) (int64, error)
- func (c Client) FetchChecksum(ctx context.Context, a Asset) (string, error)
- func (c Client) Latest(ctx context.Context) (Info, error)
- func (c Client) Ready() bool
- func (c Client) WithAPI(v string) Client
- type Info
- type Platform
- type Progress
- type Result
- type SwapStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownRepo = errors.New("update repo not set") ErrNoRelease = errors.New("no release available") ErrNoUpdate = errors.New("already on latest version") ErrNoAsset = errors.New("platform asset not found") )
View Source
var ErrInvalidSemver = errors.New("invalid semantic version")
View Source
var (
ErrPendingSwap = errors.New("update staged; restart required to complete")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) FetchChecksum ¶
type SwapStatus ¶
func ApplyWithProgress ¶ added in v0.4.3
Click to show internal directories.
Click to hide internal directories.