service

package
v0.19.1069 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params Params) *service

Types

type Branch added in v0.19.850

type Branch struct {
	Name string `json:"name"`
}

type CreateConnectionCallbackRequest

type CreateConnectionCallbackRequest struct {
	OrgID           string `json:"org_id" validate:"required"`
	GithubInstallID string `json:"github_install_id" validate:"required"`
}

func (*CreateConnectionCallbackRequest) Validate

type CreateConnectionRequest

type CreateConnectionRequest struct {
	GithubInstallID string `json:"github_install_id" validate:"required"`
}

func (*CreateConnectionRequest) Validate

type Params

type Params struct {
	fx.In

	L           *zap.Logger
	DB          *gorm.DB `name:"psql"`
	V           *validator.Validate
	Helpers     *helpers.Helpers
	GhClient    helpers.GithubClient `optional:"true"`
	BlobSvc     blobstore.Service
	QueueClient *queueclient.Client
}

type VCSConnectionAccount

type VCSConnectionAccount struct {
	Login string `json:"login"`
	ID    int64  `json:"id"`
	Type  string `json:"type"`
}

type VCSConnectionRepo

type VCSConnectionRepo struct {
	ID            int64  `json:"id"`
	Name          string `json:"name"`
	FullName      string `json:"full_name"`
	Description   string `json:"description,omitempty"`
	Private       bool   `json:"private"`
	Fork          bool   `json:"fork"`
	HTMLURL       string `json:"html_url"`
	DefaultBranch string `json:"default_branch"`
	UpdatedAt     string `json:"updated_at"`
}

type VCSConnectionReposResponse

type VCSConnectionReposResponse struct {
	Repositories []VCSConnectionRepo `json:"repositories"`
	TotalCount   int                 `json:"total_count"`
}

type VCSConnectionStatusResponse

type VCSConnectionStatusResponse struct {
	Status              string                `json:"status"`
	GithubInstallID     string                `json:"github_install_id"`
	Account             *VCSConnectionAccount `json:"account"`
	SuspendedAt         *time.Time            `json:"suspended_at,omitempty"`
	SuspendedBy         *github.User          `json:"suspended_by,omitempty"`
	Permissions         map[string]string     `json:"permissions"`
	RepositorySelection string                `json:"repository_selection"`
	CheckedAt           time.Time             `json:"checked_at"`
	Error               string                `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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