Documentation
¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
Index ¶
- type Comment
- type Deploy
- type Pull
- func (a *Pull) FromMask(mask int64) *Pull
- func (a *Pull) GetEdited() bool
- func (a *Pull) GetLabeled() bool
- func (a *Pull) GetOpened() bool
- func (a *Pull) GetReopened() bool
- func (a *Pull) GetSynchronize() bool
- func (a *Pull) GetUnlabeled() bool
- func (a *Pull) SetEdited(v bool)
- func (a *Pull) SetLabeled(v bool)
- func (a *Pull) SetOpened(v bool)
- func (a *Pull) SetReopened(v bool)
- func (a *Pull) SetSynchronize(v bool)
- func (a *Pull) SetUnlabeled(v bool)
- func (a *Pull) ToMask() int64
- type Push
- func (a *Push) FromMask(mask int64) *Push
- func (a *Push) GetBranch() bool
- func (a *Push) GetDeleteBranch() bool
- func (a *Push) GetDeleteTag() bool
- func (a *Push) GetTag() bool
- func (a *Push) SetBranch(v bool)
- func (a *Push) SetDeleteBranch(v bool)
- func (a *Push) SetDeleteTag(v bool)
- func (a *Push) SetTag(v bool)
- func (a *Push) ToMask() int64
- type Schedule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
Comment is the library representation of the various actions associated with the comment event webhook from the SCM.
func (*Comment) FromMask ¶
FromMask returns the Comment type resulting from the provided integer mask.
func (*Comment) GetCreated ¶
GetCreated returns the Created field from the provided Comment. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Comment) GetEdited ¶
GetEdited returns the Edited field from the provided Comment. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Comment) SetCreated ¶
SetCreated sets the Comment Created field.
When the provided Events type is nil, it will set nothing and immediately return.
type Deploy ¶
type Deploy struct {
Created *bool `json:"created"`
}
Deploy is the library representation of the various actions associated with the deploy event webhook from the SCM.
func (*Deploy) FromMask ¶
FromMask returns the Deploy type resulting from the provided integer mask.
func (*Deploy) GetCreated ¶
GetCreated returns the Created field from the provided Deploy. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Deploy) SetCreated ¶
SetCreated sets the Deploy Created field.
When the provided Deploy type is nil, it will set nothing and immediately return.
type Pull ¶
type Pull struct {
Opened *bool `json:"opened"`
Edited *bool `json:"edited"`
Synchronize *bool `json:"synchronize"`
Reopened *bool `json:"reopened"`
Labeled *bool `json:"labeled"`
Unlabeled *bool `json:"unlabeled"`
}
Pull is the library representation of the various actions associated with the pull_request event webhook from the SCM.
func (*Pull) GetEdited ¶
GetEdited returns the Edited field from the provided Pull. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Pull) GetLabeled ¶ added in v0.24.0
GetLabeled returns the Labeled field from the provided Pull. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Pull) GetOpened ¶
GetOpened returns the Opened field from the provided Pull. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Pull) GetReopened ¶
GetReopened returns the Reopened field from the provided Pull. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Pull) GetSynchronize ¶
GetSynchronize returns the Synchronize field from the provided Pull. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Pull) GetUnlabeled ¶ added in v0.24.0
GetUnlabeled returns the Unlabeled field from the provided Pull. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Pull) SetEdited ¶
SetEdited sets the Pull Edited field.
When the provided Pull type is nil, it will set nothing and immediately return.
func (*Pull) SetLabeled ¶ added in v0.24.0
SetLabeled sets the Pull Labeled field.
When the provided Pull type is nil, it will set nothing and immediately return.
func (*Pull) SetOpened ¶
SetOpened sets the Pull Opened field.
When the provided Pull type is nil, it will set nothing and immediately return.
func (*Pull) SetReopened ¶
SetReopened sets the Pull Reopened field.
When the provided Pull type is nil, it will set nothing and immediately return.
func (*Pull) SetSynchronize ¶
SetSynchronize sets the Pull Synchronize field.
When the provided Pull type is nil, it will set nothing and immediately return.
func (*Pull) SetUnlabeled ¶ added in v0.24.0
SetUnlabeled sets the Pull Unlabeled field.
When the provided Pull type is nil, it will set nothing and immediately return.
type Push ¶
type Push struct {
Branch *bool `json:"branch"`
Tag *bool `json:"tag"`
DeleteBranch *bool `json:"delete_branch"`
DeleteTag *bool `json:"delete_tag"`
}
Push is the library representation of the various actions associated with the push event webhook from the SCM.
func (*Push) GetBranch ¶
GetBranch returns the Branch field from the provided Push. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Push) GetDeleteBranch ¶
GetDeleteBranch returns the DeleteBranch field from the provided Push. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Push) GetDeleteTag ¶
GetDeleteTag returns the DeleteTag field from the provided Push. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Push) GetTag ¶
GetTag returns the Tag field from the provided Push. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Push) SetBranch ¶
SetBranch sets the Push Branch field.
When the provided Push type is nil, it will set nothing and immediately return.
func (*Push) SetDeleteBranch ¶
SetDeleteBranch sets the Push DeleteBranch field.
When the provided Push type is nil, it will set nothing and immediately return.
func (*Push) SetDeleteTag ¶
SetDeleteTag sets the Push DeleteTag field.
When the provided Push type is nil, it will set nothing and immediately return.
type Schedule ¶
type Schedule struct {
Run *bool `json:"run"`
}
Schedule is the library representation of the various actions associated with the schedule event.
func (*Schedule) FromMask ¶
FromMask returns the Schedule type resulting from the provided integer mask.
func (*Schedule) GetRun ¶
GetRun returns the Run field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.