Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) Create(ctx context.Context, session *auth.Session, repoRef string, in *CreateInput) (*types.Pipeline, error)
- func (c *Controller) Delete(ctx context.Context, session *auth.Session, repoRef string, identifier string) error
- func (c *Controller) Find(ctx context.Context, session *auth.Session, repoRef string, identifier string) (*types.Pipeline, error)
- func (c *Controller) Update(ctx context.Context, session *auth.Session, repoRef string, identifier string, ...) (*types.Pipeline, error)
- type CreateInput
- type UpdateInput
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, repoStore store.RepoStore, triggerStore store.TriggerStore, pipelineStore store.PipelineStore, reporter events.Reporter, ) *Controller
func ProvideController ¶
func ProvideController( repoStore store.RepoStore, triggerStore store.TriggerStore, authorizer authz.Authorizer, pipelineStore store.PipelineStore, reporter *events.Reporter, ) *Controller
func (*Controller) Create ¶
func (c *Controller) Create( ctx context.Context, session *auth.Session, repoRef string, in *CreateInput, ) (*types.Pipeline, error)
type CreateInput ¶
type CreateInput struct {
Description string `json:"description"`
// TODO [CODE-1363]: remove after identifier migration.
UID string `json:"uid" deprecated:"true"`
Identifier string `json:"identifier"`
Disabled bool `json:"disabled"`
DefaultBranch string `json:"default_branch"`
ConfigPath string `json:"config_path"`
}
Click to show internal directories.
Click to hide internal directories.