Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) CreateRepo(ctx context.Context, session *auth.Session, in *CreateRepoInput) (*repoCtrl.RepositoryOutput, error)
- func (c *Controller) Labels(ctx context.Context, session *auth.Session, parentRef string, in *LabelsInput) ([]*types.Label, error)
- func (c *Controller) PullRequests(ctx context.Context, session *auth.Session, repoRef string, in *PullreqsInput) ([]*types.PullReq, error)
- func (c *Controller) Rules(ctx context.Context, session *auth.Session, repoRef string, in *RulesInput) ([]*types.Rule, error)
- func (c *Controller) UpdateRepoState(ctx context.Context, session *auth.Session, repoRef string, ...) (*types.Repository, error)
- func (c *Controller) Webhooks(ctx context.Context, session *auth.Session, repoRef string, in *WebhooksInput) ([]*types.Webhook, error)
- type CreateRepoInput
- type LabelsInput
- type PullreqsInput
- type RulesInput
- type UpdateStateInput
- type WebhooksInput
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
WireSet provides a wire set for this package.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( authorizer authz.Authorizer, publicAccess publicaccess.Service, git git.Interface, urlProvider url.Provider, pullreqImporter *migrate.PullReq, ruleImporter *migrate.Rule, webhookImporter *migrate.Webhook, labelImporter *migrate.Label, resourceLimiter limiter.ResourceLimiter, auditService audit.Service, identifierCheck check.RepoIdentifier, tx dbtx.Transactor, spaceStore store.SpaceStore, repoStore store.RepoStore, ) *Controller
func ProvideController ¶
func ProvideController( authorizer authz.Authorizer, publicAccess publicaccess.Service, rpcClient git.Interface, urlProvider url.Provider, pullreqImporter *migrate.PullReq, ruleImporter *migrate.Rule, webhookImporter *migrate.Webhook, labelImporter *migrate.Label, resourceLimiter limiter.ResourceLimiter, auditService audit.Service, identifierCheck check.RepoIdentifier, tx dbtx.Transactor, spaceStore store.SpaceStore, repoStore store.RepoStore, ) *Controller
func (*Controller) CreateRepo ¶
func (c *Controller) CreateRepo( ctx context.Context, session *auth.Session, in *CreateRepoInput, ) (*repoCtrl.RepositoryOutput, error)
func (*Controller) Labels ¶
func (c *Controller) Labels( ctx context.Context, session *auth.Session, parentRef string, in *LabelsInput, ) ([]*types.Label, error)
func (*Controller) PullRequests ¶
func (c *Controller) PullRequests( ctx context.Context, session *auth.Session, repoRef string, in *PullreqsInput, ) ([]*types.PullReq, error)
func (*Controller) Rules ¶
func (c *Controller) Rules( ctx context.Context, session *auth.Session, repoRef string, in *RulesInput, ) ([]*types.Rule, error)
func (*Controller) UpdateRepoState ¶
func (c *Controller) UpdateRepoState( ctx context.Context, session *auth.Session, repoRef string, in *UpdateStateInput, ) (*types.Repository, error)
type CreateRepoInput ¶
type LabelsInput ¶
type LabelsInput struct {
Labels []*migrate.ExternalLabel `json:"labels"`
}
type PullreqsInput ¶
type PullreqsInput struct {
PullRequestData []*migrate.ExternalPullRequest `json:"pull_request_data"`
}
type RulesInput ¶
type RulesInput struct {
Rules []*migrate.ExternalRule `json:"rules"`
Type migrate.ExternalRuleType `json:"type"`
}
type UpdateStateInput ¶
type WebhooksInput ¶
type WebhooksInput struct {
Webhooks []*migrate.ExternalWebhook `json:"hooks"`
}
Click to show internal directories.
Click to hide internal directories.