dtgithub

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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