gitpublic

package
v0.0.1-alpha.4 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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(gitPublicSvc *gitpublic.Service) *Controller

func ProvideController

func ProvideController(gitPublicSvc *gitpublic.Service) *Controller

func (*Controller) FindRepo

func (c *Controller) FindRepo(ctx context.Context, repoURL string) (*types.GitRepo, error)

func (*Controller) GetCommitBySha

func (c *Controller) GetCommitBySha(ctx context.Context, repoURL string, sha string) (*types.GitCommit, error)

func (*Controller) GetLatestCommit

func (c *Controller) GetLatestCommit(ctx context.Context, repoURL string, branch string) (*types.GitCommit, error)

func (*Controller) ListBranches

func (c *Controller) ListBranches(ctx context.Context, repoURL string) ([]*types.GitBranch, error)

type RepoLoadModel

type RepoLoadModel struct {
	RepoURL string `json:"repoURL"`
}

Jump to

Keyboard shortcuts

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