Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LimitPayload ¶ added in v0.3.0
type Message ¶ added in v0.3.0
type Message struct { ProjectID int64 `json:"projectid"` EventType string `json:"message_type"` Data LimitPayload `json:"data"` }
type Object ¶
type Object struct { NamespacedName types.NamespacedName `json:"namespaced_name,omitempty"` Kind string `json:"kind,omitempty"` }
type PlayPayload ¶
type PlayPayload struct { Object Object `json:"object,omitempty"` ProjectID int64 `json:"project_id,omitempty"` PipelineID int64 `json:"pipeline_id,omitempty"` RepoURL string `json:"repo_url,omitempty"` Commit ci.Commit `json:"ref,omitempty"` Stack ci.Stack `json:"stack,omitempty"` Status ci.State `json:"status,omitempty"` }
func GetPayLoad ¶
func GetPayLoad(play *ci.Play) *PlayPayload
GetPayLoad returns a filled play payload
Click to show internal directories.
Click to hide internal directories.