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: 0

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