drone/types/trigger.go
2023-09-12 09:08:38 +00:00

23 lines
881 B
Go

// Copyright 2023 Harness Inc. All rights reserved.
// Use of this source code is governed by the Polyform Free Trial License
// that can be found in the LICENSE.md file for this repository.
package types
import "github.com/harness/gitness/types/enum"
type Trigger struct {
ID int64 `json:"id"`
Description string `json:"description"`
PipelineID int64 `json:"pipeline_id"`
Secret string `json:"-"`
RepoID int64 `json:"repo_id"`
CreatedBy int64 `json:"created_by"`
Enabled bool `json:"enabled"`
Actions []enum.TriggerAction `json:"actions"`
UID string `json:"uid"`
Created int64 `json:"created"`
Updated int64 `json:"updated"`
Version int64 `json:"-"`
}