github

package
v0.66.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MPL-2.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) 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