Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gitlab ¶
Gitlab is the github provider and uses deploy keys as credentials
func (*Gitlab) Pull ¶
func (gl *Gitlab) Pull(repo *kagami.Repository, path string) error
Pull pulls a repo from github locally
func (*Gitlab) Push ¶
func (gl *Gitlab) Push(repo *kagami.Repository, path string) error
Push pushes a repo to a remote target
type GitlabPushPayload ¶
type GitlabPushPayload struct { Project struct { PathWithNamespace string `json:"path_with_namespace"` } `json:"project"` Repository struct { Name string `json:"name"` SSHURL string `json:"git_ssh_url"` } `json:"repository"` }
GitlabPushPayload represents a push payload from a gitlab webhook, at least the fields that we actually care about: https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#push-events
Click to show internal directories.
Click to hide internal directories.