Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) FindRepo(ctx context.Context, repoURL string) (*types.GitRepo, error)
- func (c *Controller) GetCommitBySha(ctx context.Context, repoURL string, sha string) (*types.GitCommit, error)
- func (c *Controller) GetLatestCommit(ctx context.Context, repoURL string, branch string) (*types.GitCommit, error)
- func (c *Controller) ListBranches(ctx context.Context, repoURL string) ([]*types.GitBranch, error)
- type RepoLoadModel
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
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) GetCommitBySha ¶
func (*Controller) GetLatestCommit ¶
func (*Controller) ListBranches ¶
type RepoLoadModel ¶
type RepoLoadModel struct {
RepoURL string `json:"repoURL"`
}
Click to show internal directories.
Click to hide internal directories.