remote

package
v0.0.0-...-d16809e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GitHubTime = "2006-01-02 15:04:05 +0000 UTC"

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

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

func NewGitHubClient

func NewGitHubClient(token, useragent string) (GitHub, error)

func (*GitHub) GetRepositoryDetails

func (s *GitHub) GetRepositoryDetails(owner, repo string) (RepositoryDetails, error)

func (*GitHub) GetRepositoryReleases

func (s *GitHub) GetRepositoryReleases(owner, repo string) ([]RepositoryRelease, error)

type ReleaseAsset

type ReleaseAsset struct {
	ID          int
	Name        string
	DownloadURL string
	ContentType string
}

type RepositoryDetails

type RepositoryDetails struct {
	Name        string
	Description string
	Private     bool
	Fork        bool
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Url         string
	Releases    []RepositoryRelease
}

type RepositoryRelease

type RepositoryRelease struct {
	Name         string
	Description  string
	Version      string
	SemVersioned bool
	PublishedAt  time.Time
	ID           int
	Draft        bool
	Prerelease   bool
	Assets       []ReleaseAsset
	Url          string
}

Jump to

Keyboard shortcuts

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