dtgithub

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMalformedProjectID = errors.New(`a GitHub project ID is "owner/repo" or "owner/repo/directory"`)

ErrMalformedProjectID is the error of a project ID that is not "owner/repo" or "owner/repo/directory".

Functions

This section is empty.

Types

type GhStorage

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

GhStorage implements dtprojcreator.Storage for GitHub

func NewStorage

func NewStorage(client *github.Client, repoOwner, repoName, branch string) *GhStorage

NewStorage creates a new GhStorage

func (*GhStorage) Commit

func (s *GhStorage) Commit(ctx context.Context, message string) error

func (*GhStorage) FileExists

func (s *GhStorage) FileExists(ctx context.Context, path string) (bool, error)

func (*GhStorage) OpenFile

func (s *GhStorage) OpenFile(ctx context.Context, path string) (io.ReadCloser, error)

func (*GhStorage) WriteFile

func (s *GhStorage) WriteFile(ctx context.Context, path string, reader io.Reader) error

type GithubRepoProjectsStore

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

func NewRepoProjectsStore

func NewRepoProjectsStore(client *github.Client, branch string) *GithubRepoProjectsStore

func (GithubRepoProjectsStore) CreateNewProject

func (g GithubRepoProjectsStore) CreateNewProject(
	ctx context.Context,
	projectID, title string,
	visibility datatug.ProjectVisibility,
	report datatug.StatusReporter,
) (
	project *datatug.Project, err error,
)

Jump to

Keyboard shortcuts

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