githubx

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 5 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 (*Client) GetOwner

func (c *Client) GetOwner() string

func (*Client) GetRepo

func (c *Client) GetRepo() string

func (*Client) GetToken

func (c *Client) GetToken() string

type Config

type Config interface {
	GetToken() string
	GetOwner() string
	GetRepo() string
}

func NewClientConfig

func NewClientConfig(owner, repo, token string) Config

type GHClient

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

func New

func New(cfg Config) *GHClient

func (*GHClient) FetchLatestRelease

func (gh *GHClient) FetchLatestRelease() (string, error)

FetchLatestRelease fetches the latest release from the GitHub repository.

Returns:

  • A string representing the latest release tag.
  • An error if the latest release cannot be fetched.

Jump to

Keyboard shortcuts

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