github

package
v0.3.53-rc72 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileNotFoundError

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

func (FileNotFoundError) Error

func (e FileNotFoundError) Error() string

type Github

type Github interface {
	GetLatestReleaseTag() (*Release, error)
	GetReleaseByTag(tag string) (*Release, error)
	GetNewerReleases(after time.Time) ([]Release, error)
	GetRawFileContent(path string, release string) ([]byte, error)
}

func NewGithub

func NewGithub(repoURL 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