githubapp

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: 9 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(ghAppSvc *githubapp.Service) *Controller

func ProvideController

func ProvideController(ghAppSvc *githubapp.Service) *Controller

func (*Controller) CompleteInstallation

func (c *Controller) CompleteInstallation(ctx context.Context, ghApp *types.GithubApp, installationID int64) error

func (*Controller) CompleteManifest

func (c *Controller) CompleteManifest(ctx context.Context, ghApp *types.GithubApp, code string) error

func (*Controller) Create

func (c *Controller) Create(ctx context.Context, session *auth.Session, tenantID, projectID int64, in *CreateGithubAppInput) (*types.GithubApp, error)

func (*Controller) Delete

func (c *Controller) Delete(ctx context.Context, ghApp *types.GithubApp) error

func (*Controller) Find

func (c *Controller) Find(ctx context.Context, tenantID, projectID, githubAppID int64) (*types.GithubApp, error)

func (*Controller) FindByUID

func (c *Controller) FindByUID(ctx context.Context, teanntID, projectID, githubAppUID int64) (*types.GithubApp, error)

func (*Controller) List

func (c *Controller) List(ctx context.Context, tenantID, projectID int64) ([]*types.GithubApp, error)

func (*Controller) ListBranches

func (c *Controller) ListBranches(ctx context.Context, ghApp *types.GithubApp, owner string, repo string) ([]*types.GitBranch, error)

func (*Controller) ListConfigured

func (c *Controller) ListConfigured(ctx context.Context, tenantID, projectID int64) ([]*types.GithubApp, error)

func (*Controller) ListRepos

func (c *Controller) ListRepos(ctx context.Context, ghApp *types.GithubApp) ([]*types.GitRepo, error)

type CreateGithubAppInput

type CreateGithubAppInput struct {
	Name         string `json:"name"`
	Organization string `json:"organization"`
	IsTenantWide bool   `json:"isTenantWide,string"`
	ApiUrl       string `json:"apiUrl"`
	HtmlUrl      string `json:"htmlUrl"`
	CustomUser   string `json:"customUser"`
	CustomPort   int64  `json:"customPort"`
}

Jump to

Keyboard shortcuts

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