github

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MPL-2.0 Imports: 10 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 GitHub

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

func New

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

func (*GitHub) Get

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

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