github

package
v0.94.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAPI = errors.New("failed to communicate with the GitHub API")

Functions

This section is empty.

Types

type Contents added in v0.66.0

type Contents struct {
	File      *github.RepositoryContent
	Directory []*github.RepositoryContent
}

type GitHub

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

func New

func New(owner, repo, reference, token string) (*GitHub, error)

func (*GitHub) APICallCount added in v0.69.0

func (gh *GitHub) APICallCount() uint64

func (*GitHub) Get

func (gh *GitHub) Get(ctx context.Context, path string) ([]byte, error)

func (*GitHub) Join added in v0.65.0

func (gh *GitHub) Join(elem ...string) string

func (*GitHub) ReadDir

func (gh *GitHub) ReadDir(ctx context.Context, path string) ([]string, error)

func (*GitHub) Stat

func (gh *GitHub) Stat(ctx context.Context, path string) (*fs.FileInfo, error)

Jump to

Keyboard shortcuts

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