api

package
v0.0.0-...-0762dd7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: Apache-2.0 Imports: 2 Imported by: 4

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

type GithubRepository struct {
	Owner string
	Name  string
}

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)

Jump to

Keyboard shortcuts

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