github

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: Apache-2.0 Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	HooksEndpointPrefix         = "hooks?gitwebhookId="
	GitWebHookParam             = "gitwebhookId"
	DeprecatedDefaultSecretName = "githubtoken"
)

Variables

This section is empty.

Functions

func GetOwnerAndRepo added in v0.4.1

func GetOwnerAndRepo(repoURL string) (string, string, error)

func GetWebhookSecretName added in v0.4.5

func GetWebhookSecretName(receiver *webhookv1.GitWatcher) (string, error)

func NewGithubClient added in v0.4.1

func NewGithubClient(ctx context.Context, httpClient *http.Client, token string) *github.Client

Types

type GitHub

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

func NewGitHub

func NewGitHub(apply apply.Apply, gitCommits v1.GitCommitController, gitWatchers v1.GitWatcherController, secretCache corev1controller.SecretCache) *GitHub

func (*GitHub) Create

func (*GitHub) HandleHook

func (w *GitHub) HandleHook(ctx context.Context, req *http.Request) (int, error)

func (*GitHub) Supports

func (w *GitHub) Supports(obj *webhookv1.GitWatcher) bool

Jump to

Keyboard shortcuts

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