hooks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const GithubJetstreamTopic = "github"

----------------------------------------------------------------------------

View Source
const IssueCommentEvent = "IssueCommentEvent"

----------------------------------------------------------------------------

View Source
const PullRequestEventType = "PullRequestEvent"

----------------------------------------------------------------------------

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubHooksHandler

type GithubHooksHandler struct {
	// contains filtered or unexported fields
}

func NewGithubHooksHandler

func NewGithubHooksHandler(vcs vcs.GitClient, tfc tfc_api.ApiClient, rs runstream.StreamClient, js nats.JetStreamContext) *GithubHooksHandler

func (*GithubHooksHandler) Handler

func (h *GithubHooksHandler) Handler(c echo.Context) error

type GithubIssueCommentEventMsg

type GithubIssueCommentEventMsg struct {
	Payload *github.IssueCommentEvent `json:"payload"`
	Carrier propagation.MapCarrier    `json:"Carrier"`
	Context context.Context
}

func (*GithubIssueCommentEventMsg) DecodeEventData

func (e *GithubIssueCommentEventMsg) DecodeEventData(b []byte) error

func (*GithubIssueCommentEventMsg) EncodeEventData

func (e *GithubIssueCommentEventMsg) EncodeEventData(ctx context.Context) []byte

func (*GithubIssueCommentEventMsg) GetId

type PullRequestEventMsg

type PullRequestEventMsg struct {
	Payload *github.PullRequestEvent `json:"payload"`
	Carrier propagation.MapCarrier   `json:"Carrier"`
	Context context.Context
}

func (*PullRequestEventMsg) DecodeEventData

func (e *PullRequestEventMsg) DecodeEventData(b []byte) error

func (*PullRequestEventMsg) EncodeEventData

func (e *PullRequestEventMsg) EncodeEventData(ctx context.Context) []byte

func (*PullRequestEventMsg) GetId

func (e *PullRequestEventMsg) GetId(ctx context.Context) string

type TriggerCreationFunc

type TriggerCreationFunc func(
	vcs vcs.GitClient,
	tfc tfc_api.ApiClient,
	runstream runstream.StreamClient,
	cfg *tfc_trigger.TFCTriggerOptions,
) tfc_trigger.Trigger

Jump to

Keyboard shortcuts

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