Documentation
¶
Index ¶
- Variables
- type Controller
- func (c *Controller) Create(ctx context.Context, session *auth.Session, repoRef string, ...) (*types.Trigger, error)
- func (c *Controller) Delete(ctx context.Context, session *auth.Session, repoRef string, ...) error
- func (c *Controller) Find(ctx context.Context, session *auth.Session, repoRef string, ...) (*types.Trigger, error)
- func (c *Controller) List(ctx context.Context, session *auth.Session, repoRef string, ...) ([]*types.Trigger, int64, error)
- func (c *Controller) Update(ctx context.Context, session *auth.Session, repoRef string, ...) (*types.Trigger, 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, triggerStore store.TriggerStore, pipelineStore store.PipelineStore, repoStore store.RepoStore, ) *Controller
func ProvideController ¶
func ProvideController( authorizer authz.Authorizer, triggerStore store.TriggerStore, pipelineStore store.PipelineStore, repoStore store.RepoStore, ) *Controller
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"` Secret string `json:"secret"` Disabled bool `json:"disabled"` Actions []enum.TriggerAction `json:"actions"` }
TODO: Add more as needed.
type UpdateInput ¶
type UpdateInput struct { Description *string `json:"description"` // TODO [CODE-1363]: remove after identifier migration. UID *string `json:"uid" deprecated:"true"` Identifier *string `json:"identifier"` Actions []enum.TriggerAction `json:"actions"` Secret *string `json:"secret"` Disabled *bool `json:"disabled"` // can be nil, so keeping it a pointer }
UpdateInput is used for updating a trigger.
Click to show internal directories.
Click to hide internal directories.