github

package
v0.0.0-...-330fcde Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 7 Imported by: 0

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
}

func NewClient

func NewClient() *Client

func (*Client) GetLatestTagFromReleaseURI

func (c *Client) GetLatestTagFromReleaseURI(
	ctx context.Context,
	repoShortName string,
) (releaseInfo ReleaseInfo, err error)

func (*Client) GetLatestTagFromTagURI

func (c *Client) GetLatestTagFromTagURI(
	ctx context.Context,
	repoShortName string,
) (releaseInfo ReleaseInfo, err error)

type ReleaseInfo

type ReleaseInfo struct {
	TagName   string `json:"tag_name"`
	SourceURL string `json:"html_url"`
}

func (*ReleaseInfo) IsZero

func (r *ReleaseInfo) IsZero() bool

type TagInfo

type TagInfo struct {
	Ref string `json:"ref"`
}

Jump to

Keyboard shortcuts

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