{"modulePath":"github.com/munnerz/controller-tools","version":"v0.1.9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pullrequest\n\n## Types\n\n```go\ntype GithubSyncer struct {\n\t// contains filtered or unexported fields\n}\n```\nGithubSyncer implements following functionalities:\n\n  - Watches newly created PRs in K8s and updates their commitID by calling Github\n  - Periodically updates the PRs in K8s with their commitID in Github.\n\n```go\nfunc NewGithubSyncer(\n\tmgr manager.Manager,\n\tenablePRSync bool,\n\tstop \u003c-chan struct{}) (*GithubSyncer, error)\n```\n\n```go\nfunc (gs *GithubSyncer) Start(stop \u003c-chan struct{})\n```\nStart periodically syncs PRs in k8s with their commitID in Github.\n\n```go\ntype GodocDeployer struct {\n\tcontroller.Controller\n}\n```\nGodocDeployer watches PullRequest object which have a commitID specified in their Spec and deploys a Godoc deployment which runs godoc server for the PR. It watches the PullRequest object for changes in commitID and reconciles the generated godoc deployment. CommitID for PRs is updated by GithubSyncer module.\n\n```go\nfunc NewGodocDeployer(mgr manager.Manager) (*GodocDeployer, error)\n```\n\n","path":"github.com/munnerz/controller-tools/examples/godocbot/pkg/controller/pullrequest","name":"pullrequest","synopsis":"","isRedistributable":true}
