github

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a github client

func NewClient

func NewClient(httpClient *http.Client) *Client

NewClient returns a new github client

func (*Client) CheckLatestVersion

func (c *Client) CheckLatestVersion(
	ctx context.Context,
	repoOwner, repoName, currentVersion string) (*Versions, error)

CheckLatestVersion checks to see if we're on the latest version

type Versions

type Versions struct {
	// contains filtered or unexported fields
}

Versions represents github release versions

func (*Versions) Latest

func (v *Versions) Latest() string

Latest resturns the latest version if one exists, else zero value

func (*Versions) Outdated

func (v *Versions) Outdated(ver string) (bool, error)

Outdated returns true if there is a newer version

Jump to

Keyboard shortcuts

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