Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDriverName ¶
GetDriverName gets the driver to be used for this repo url, using the go-scm default identifier.
func HostnameFromURL ¶
HostnameFromURL returns the host from a URL.
Types ¶
type Repository ¶
type Repository interface {
// Get Push TriggerBinding name for this repository provider
PushBindingName() string
// Create a TriggerBinding for Push Request hooks
CreatePushBinding(namespace string) (triggersv1.TriggerBinding, string)
// Create an eventlistener trigger for Push event
CreatePushTrigger(name, secretName, secretNs, template string, bindings []string) (triggersv1.EventListenerTrigger, error)
// Git Repository URL
URL() string
}
Repository interface exposes generic functions that will be implemented by repositories (Github,Gitlab,Bitbucket,etc)
func NewRepository ¶
func NewRepository(url string) (Repository, error)
NewRepository returns a suitable Repository instance based on the driver name (github,gitlab,etc)
Click to show internal directories.
Click to hide internal directories.