github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

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

GitHub instances retrieve the files present as of some commit in a GitHub repository. An instance should only be used once, as it stores intermediate state internally. A stopped instance cannot be restarted cleanly; instead, create a fresh instance.

func New

func New(logger zerolog.Logger, location fetchTypes.Location, tokenSource oauth2.TokenSource) *GitHub

func (*GitHub) Next

func (g *GitHub) Next() (*types.FileInfo, bool)

func (*GitHub) Start

func (g *GitHub) Start() error

func (*GitHub) Stop

func (g *GitHub) Stop() error

type TreeEntry

type TreeEntry string
const (
	TreeEntryDir  TreeEntry = "tree"
	TreeEntryFile TreeEntry = "blob"
)

Jump to

Keyboard shortcuts

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