mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-24 19:25:19 +01:00
chore: fix function names (#20159)
Signed-off-by: majorteach <csgcgl@126.com> Co-authored-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
80a9c688fc
commit
fd81e7c43e
@ -56,7 +56,7 @@ func (m *manager) Create(ctx context.Context, jobLog *models.JobLog) (id int64,
|
|||||||
return m.dao.Create(ctx, jobLog)
|
return m.dao.Create(ctx, jobLog)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteJobLogsBefore ...
|
// DeleteBefore ...
|
||||||
func (m *manager) DeleteBefore(ctx context.Context, t time.Time) (id int64, err error) {
|
func (m *manager) DeleteBefore(ctx context.Context, t time.Time) (id int64, err error) {
|
||||||
return m.dao.DeleteBefore(ctx, t)
|
return m.dao.DeleteBefore(ctx, t)
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ func (n *WebhookPolicy) ToTargets() []*models.WebhookTargetObject {
|
|||||||
return results
|
return results
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewNotifiactionPolicy ...
|
// NewWebhookPolicy ...
|
||||||
func NewWebhookPolicy(p *model.Policy) *WebhookPolicy {
|
func NewWebhookPolicy(p *model.Policy) *WebhookPolicy {
|
||||||
return &WebhookPolicy{
|
return &WebhookPolicy{
|
||||||
Policy: p,
|
Policy: p,
|
||||||
|
Loading…
Reference in New Issue
Block a user