Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
Repository represent a Git repository ofa specific Git repository URL
func NewRepository ¶
func NewRepository(rawURL, token string) (*Repository, error)
NewRepository creates a new Git repository object
func (*Repository) CreateWebhook ¶
func (r *Repository) CreateWebhook(listenerURL, secret string) (string, error)
CreateWebhook creates a new webhook in the repository It returns ID of the created webhook
func (*Repository) DeleteWebhooks ¶
func (r *Repository) DeleteWebhooks(ids []string) ([]string, error)
DeleteWebhooks deletes all webhooks that associate with the given listener in this repository
func (*Repository) ListWebhooks ¶
func (r *Repository) ListWebhooks(listenerURL string) ([]string, error)
ListWebhooks returns a list of webhook IDs of the given listener in this repository
Click to show internal directories.
Click to hide internal directories.