Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IgnoreAnnotation is an annotation whose boolean value // is used to ignore a buildconfig IgnoreAnnotation = "openshift-github-hooks-sync/ignore" )
Variables ¶
View Source
var ( // GithubURIRegexp is a regexp that can extract the repository owner and name from its URI GithubURIRegexp = regexp.MustCompile(`github\.com[:/]([^/]+)/([^.]+)`) )
Functions ¶
This section is empty.
Types ¶
type GithubRepository ¶
GithubRepository is a very basic representation of a GitHub repository
func ParseGithubRepository ¶
func ParseGithubRepository(repositoryURI string) (*GithubRepository, error)
ParseGithubRepository extracts the owner and name of a github repository URI
func (GithubRepository) String ¶
func (r GithubRepository) String() string
type Hook ¶
type Hook struct { Enabled bool TargetURL string GithubRepository GithubRepository }
Hook is a very basic representation of a WebHook that links a Github repository to an OpenShift BuildConfig through the hook's TargetURL (OpenShift endpoint used to trigger a new build)
Click to show internal directories.
Click to hide internal directories.