Documentation
¶
Index ¶
- func IsAvailable(config types.Config, capabilities []string) bool
- type Gitlab
- func (g *Gitlab) Clone(repository *configv1alpha1.TerraformRepository, branch string, ...) (*git.Repository, error)
- func (g *Gitlab) Comment(repository *configv1alpha1.TerraformRepository, ...) error
- func (g *Gitlab) GetChanges(repository *configv1alpha1.TerraformRepository, ...) ([]string, error)
- func (g *Gitlab) GetEventFromWebhookPayload(p interface{}) (event.Event, error)
- func (g *Gitlab) GetGitAuth() (transport.AuthMethod, error)
- func (g *Gitlab) GetLatestRevisionForRef(repository *configv1alpha1.TerraformRepository, ref string) (string, error)
- func (g *Gitlab) Init() error
- func (g *Gitlab) InitWebhookHandler() error
- func (g *Gitlab) ParseWebhookPayload(r *nethttp.Request) (interface{}, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gitlab ¶
func (*Gitlab) Clone ¶
func (g *Gitlab) Clone(repository *configv1alpha1.TerraformRepository, branch string, repositoryPath string) (*git.Repository, error)
func (*Gitlab) Comment ¶
func (g *Gitlab) Comment(repository *configv1alpha1.TerraformRepository, pr *configv1alpha1.TerraformPullRequest, comment comment.Comment) error
func (*Gitlab) GetChanges ¶
func (g *Gitlab) GetChanges(repository *configv1alpha1.TerraformRepository, pr *configv1alpha1.TerraformPullRequest) ([]string, error)
func (*Gitlab) GetEventFromWebhookPayload ¶
func (*Gitlab) GetGitAuth ¶
func (g *Gitlab) GetGitAuth() (transport.AuthMethod, error)
GetGitAuth returns the appropriate authentication method for GitLab
func (*Gitlab) GetLatestRevisionForRef ¶
func (g *Gitlab) GetLatestRevisionForRef(repository *configv1alpha1.TerraformRepository, ref string) (string, error)
Required API scope: api read_api
func (*Gitlab) InitWebhookHandler ¶
Click to show internal directories.
Click to hide internal directories.