updater

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package updater installs only stable release assets from the Ranjit repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(staged, target string) (string, error)

Install keeps the previous executable; a failed replacement restores it.

func Newer

func Newer(candidate, current string) bool

Types

type Client

type Client struct{ HTTP *http.Client }

func New

func New() *Client

func (*Client) Latest

func (c *Client) Latest(ctx context.Context) (string, error)

func (*Client) Stage

func (c *Client) Stage(ctx context.Context, tag, target string) (string, error)

Stage verifies the archive before extracting its single executable beside target.

Jump to

Keyboard shortcuts

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