git

package
v0.0.0-...-527d7c5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event string
const (
	Unknown                   Event = "unknown"
	Create                    Event = "create"
	Delete                    Event = "delete"
	Fork                      Event = "fork"
	Push                      Event = "push"
	Issues                    Event = "issues"
	IssueAssign               Event = "issue_assign"
	IssueLabel                Event = "issue_label"
	IssueMilestone            Event = "issue_milestone"
	IssueComment              Event = "issue_comment"
	PullRequest               Event = "pull_request"
	PullRequestAssign         Event = "pull_request_assign"
	PullRequestLabel          Event = "pull_request_label"
	PullRequestMilestone      Event = "pull_request_milestone"
	PullRequestComment        Event = "pull_request_comment"
	PullRequestReviewApproved Event = "pull_request_review_approved"
	PullRequestReviewRejected Event = "pull_request_review_rejected"
	PullRequestReviewComment  Event = "pull_request_review_comment"
	PullRequestSync           Event = "pull_request_sync"
	PullRequestReviewRequest  Event = "pull_request_review_request"
	Wiki                      Event = "wiki"
	Repository                Event = "repository"
	Release                   Event = "release"
	Package                   Event = "package"
	Schedule                  Event = "schedule"
)

func (Event) String

func (e Event) String() string

type Git

type Git interface {
	Name() string
	Source() Source
	Event() Event
	GitEvent
}

type GitEvent

type GitEvent interface {
	GetPushPayload(data []byte) (*payload.PushPayload, error)
}

type GitHub

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

func NewGithub

func NewGithub(event string) *GitHub

func (*GitHub) Event

func (g *GitHub) Event() Event

Event implements Git.

func (*GitHub) GetPushPayload

func (g *GitHub) GetPushPayload(data []byte) (*payload.PushPayload, error)

GetPushPayload implements Git.

func (*GitHub) Name

func (g *GitHub) Name() string

Name implements Git.

func (*GitHub) Source

func (g *GitHub) Source() Source

Source implements Git.

type GitLab

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

func NewGitlab

func NewGitlab(event string) *GitLab

func (*GitLab) Event

func (g *GitLab) Event() Event

Event implements Git.

func (*GitLab) GetPushPayload

func (g *GitLab) GetPushPayload(data []byte) (*payload.PushPayload, error)

GetPushPayload implements Git.

func (*GitLab) Name

func (g *GitLab) Name() string

Name implements Git.

func (*GitLab) Source

func (g *GitLab) Source() Source

Source implements Git.

type Gitea

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

func NewGitea

func NewGitea(event string) *Gitea

func (*Gitea) Event

func (g *Gitea) Event() Event

Event implements GitForward.

func (*Gitea) GetPushPayload

func (g *Gitea) GetPushPayload(data []byte) (*payload.PushPayload, error)

GetPushPayload implements GitForward.

func (Gitea) Name

func (Gitea) Name() string

func (Gitea) Source

func (Gitea) Source() Source

type Source

type Source string
const (
	SourceGitea  Source = "gitea"
	SourceGithub Source = "github"
	SourceGitlab Source = "gitlab"
)

func (Source) String

func (s Source) String() string

Jump to

Keyboard shortcuts

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