{"modulePath":"github.com/rancher/gitwatcher","version":"v0.4.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Constants\n\n```go\nconst (\n\tHooksEndpointPrefix         = \"hooks?gitwebhookId=\"\n\tGitWebHookParam             = \"gitwebhookId\"\n\tDeprecatedDefaultSecretName = \"githubtoken\"\n)\n```\n\n## Functions\n\n```go\nfunc GetOwnerAndRepo(repoURL string) (string, string, error)\n```\n\n```go\nfunc GetWebhookSecretName(receiver *webhookv1.GitWatcher) (string, error)\n```\n\n```go\nfunc NewGithubClient(ctx context.Context, httpClient *http.Client, token string) *github.Client\n```\n\n## Types\n\n```go\ntype GitHub struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGitHub(apply apply.Apply, gitCommits v1.GitCommitController, gitWatchers v1.GitWatcherController, secretCache corev1controller.SecretCache) *GitHub\n```\n\n```go\nfunc (w *GitHub) Create(ctx context.Context, obj *webhookv1.GitWatcher) (*webhookv1.GitWatcher, error)\n```\n\n```go\nfunc (w *GitHub) HandleHook(ctx context.Context, req *http.Request) (int, error)\n```\n\n```go\nfunc (w *GitHub) Supports(obj *webhookv1.GitWatcher) bool\n```\n\n","path":"github.com/rancher/gitwatcher/pkg/provider/github","name":"github","synopsis":"","isRedistributable":true}
