bassgh

package
v0.0.0-...-c14c6da Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFS

func NewFS(ctx context.Context, client *github.Client, repo *github.Repository, ref string) fs.FS

Types

type Client

type Client struct {
	ExternalURL *url.URL
	DB          models.DB
	Blobs       *blobs.Bucket
	GH          *github.Client
	Sender      *github.User
	Repo        *github.Repository
	Meta        models.Meta
}

func (*Client) Module

func (client *Client) Module() *bass.Scope

func (*Client) StartCheck

func (client *Client) StartCheck(ctx context.Context, thunk bass.Thunk, checkName, sha string) (bass.Combiner, error)

type FS

type FS struct {
	Ctx    context.Context
	Client *github.Client
	Repo   *github.Repository
	Ref    string
	// contains filtered or unexported fields
}

FS is a filesystem that reads from a GitHub repo at a given commit.

func (*FS) Open

func (ghfs *FS) Open(name string) (fs.File, error)

Jump to

Keyboard shortcuts

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