gitlab

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAvailable

func IsAvailable(config types.Config, capabilities []string) bool

Types

type Gitlab

type Gitlab struct {
	*gitlab.Client
	WebhookHandler *wh.Webhook
	Config         types.Config
}

func (*Gitlab) Clone

func (g *Gitlab) Clone(repository *configv1alpha1.TerraformRepository, branch string, repositoryPath string) (*git.Repository, error)

func (*Gitlab) Comment

func (*Gitlab) GetChanges

func (*Gitlab) GetEventFromWebhookPayload

func (g *Gitlab) GetEventFromWebhookPayload(p interface{}) (event.Event, error)

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) Init

func (g *Gitlab) Init() error

func (*Gitlab) InitWebhookHandler

func (g *Gitlab) InitWebhookHandler() error

func (*Gitlab) ParseWebhookPayload

func (g *Gitlab) ParseWebhookPayload(r *nethttp.Request) (interface{}, bool)

Jump to

Keyboard shortcuts

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