github

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileCache

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

func NewFileCache

func NewFileCache() *FileCache

func (*FileCache) GetFile

func (fc *FileCache) GetFile(url string) ([]byte, error)

type Github

type Github interface {
	GetLatestReleaseTag(repoURL string) (*Release, error)
	GetReleaseByTag(repoURL string, tag string) (*Release, error)
	GetReleases(repoURL string, oldestRelease Release, newestRelease *Release) ([]*version.Version, error)
	GetRawFileContent(repoURL string, path string, release string) ([]byte, error)
}

func NewGithub

func NewGithub(ctx context.Context, token string) Github

type Release

type Release struct {
	Tag         string
	PublishedAt time.Time
}

Jump to

Keyboard shortcuts

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