actions

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

SPDX-License-Identifier: Apache-2.0

SPDX-License-Identifier: Apache-2.0

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Created *bool `json:"created"`
	Edited  *bool `json:"edited"`
}

Comment is the library representation of the various actions associated with the comment event webhook from the SCM.

func (*Comment) FromMask

func (a *Comment) FromMask(mask int64) *Comment

FromMask returns the Comment type resulting from the provided integer mask.

func (*Comment) GetCreated

func (a *Comment) GetCreated() bool

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

func (a *Comment) GetEdited() bool

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

func (a *Comment) SetCreated(v bool)

SetCreated sets the Comment Created field.

When the provided Events type is nil, it will set nothing and immediately return.

func (*Comment) SetEdited

func (a *Comment) SetEdited(v bool)

SetEdited sets the Comment Edited field.

When the provided Events type is nil, it will set nothing and immediately return.

func (*Comment) ToMask

func (a *Comment) ToMask() int64

ToMask returns the integer mask of the values for the Comment set.

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

func (a *Deploy) FromMask(mask int64) *Deploy

FromMask returns the Deploy type resulting from the provided integer mask.

func (*Deploy) GetCreated

func (a *Deploy) GetCreated() bool

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

func (a *Deploy) SetCreated(v bool)

SetCreated sets the Deploy Created field.

When the provided Deploy type is nil, it will set nothing and immediately return.

func (*Deploy) ToMask

func (a *Deploy) ToMask() int64

ToMask returns the integer mask of the values for the Deploy set.

type Pull

type Pull struct {
	Opened      *bool `json:"opened"`
	Edited      *bool `json:"edited"`
	Synchronize *bool `json:"synchronize"`
	Reopened    *bool `json:"reopened"`
}

Pull is the library representation of the various actions associated with the pull_request event webhook from the SCM.

func (*Pull) FromMask

func (a *Pull) FromMask(mask int64) *Pull

FromMask returns the Pull type resulting from the provided integer mask.

func (*Pull) GetEdited

func (a *Pull) GetEdited() bool

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) GetOpened

func (a *Pull) GetOpened() bool

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

func (a *Pull) GetReopened() bool

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

func (a *Pull) GetSynchronize() bool

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) SetEdited

func (a *Pull) SetEdited(v bool)

SetEdited sets the Pull Edited field.

When the provided Pull type is nil, it will set nothing and immediately return.

func (*Pull) SetOpened

func (a *Pull) SetOpened(v bool)

SetOpened sets the Pull Opened field.

When the provided Pull type is nil, it will set nothing and immediately return.

func (*Pull) SetReopened

func (a *Pull) SetReopened(v bool)

SetReopened sets the Pull Reopened field.

When the provided Pull type is nil, it will set nothing and immediately return.

func (*Pull) SetSynchronize

func (a *Pull) SetSynchronize(v bool)

SetSynchronize sets the Pull Synchronize field.

When the provided Pull type is nil, it will set nothing and immediately return.

func (*Pull) ToMask

func (a *Pull) ToMask() int64

ToMask returns the integer mask of the values for the Pull set.

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) FromMask

func (a *Push) FromMask(mask int64) *Push

FromMask returns the Push type resulting from the provided integer mask.

func (*Push) GetBranch

func (a *Push) GetBranch() bool

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

func (a *Push) GetDeleteBranch() bool

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

func (a *Push) GetDeleteTag() bool

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

func (a *Push) GetTag() bool

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

func (a *Push) SetBranch(v bool)

SetBranch sets the Push Branch field.

When the provided Push type is nil, it will set nothing and immediately return.

func (*Push) SetDeleteBranch

func (a *Push) SetDeleteBranch(v bool)

SetDeleteBranch sets the Push DeleteBranch field.

When the provided Push type is nil, it will set nothing and immediately return.

func (*Push) SetDeleteTag

func (a *Push) SetDeleteTag(v bool)

SetDeleteTag sets the Push DeleteTag field.

When the provided Push type is nil, it will set nothing and immediately return.

func (*Push) SetTag

func (a *Push) SetTag(v bool)

SetTag sets the Push Tag field.

When the provided Push type is nil, it will set nothing and immediately return.

func (*Push) ToMask

func (a *Push) ToMask() int64

ToMask returns the integer mask of the values for the Push set.

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

func (a *Schedule) FromMask(mask int64) *Schedule

FromMask returns the Schedule type resulting from the provided integer mask.

func (*Schedule) GetRun

func (a *Schedule) GetRun() bool

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.

func (*Schedule) SetRun

func (a *Schedule) SetRun(v bool)

SetRun sets the Schedule Run field.

When the provided Schedule type is nil, it will set nothing and immediately return.

func (*Schedule) ToMask

func (a *Schedule) ToMask() int64

ToMask returns the integer mask of the values for the Schedule set.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL