gitlab

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespacedSecretsGetter

type NamespacedSecretsGetter func(namespace string) coreclientv1.SecretInterface

type WebhookClient

type WebhookClient interface {
	Get(hookID int) (*gitlab.ProjectHook, error)
	Add(eventTypes []string, webhookURL *apis.URL, tls bool) (hookID int, err error)
	Edit(hookID int, eventTypes []string, webhookURL *apis.URL, tls bool) error
	Delete(hookID int) error
}

WebhookClient is a client which can interact with the webhook configuration of a GitLab project.

type WebhookClientGetter

type WebhookClientGetter interface {
	Get(*v1alpha1.GitLabSource) (WebhookClient, error)
}

WebhookClientGetter can obtain a GitLab webhook client from a GitLabSource API object.

type WebhookClientGetterFunc

type WebhookClientGetterFunc func(*v1alpha1.GitLabSource) (WebhookClient, error)

WebhookClientGetterFunc allows the use of ordinary functions as WebhookClientGetter.

func (WebhookClientGetterFunc) Get

Get implements ClientGetter.

type WebhookClientGetterWithSecretGetter

type WebhookClientGetterWithSecretGetter struct {
	// contains filtered or unexported fields
}

WebhookClientGetterWithSecretGetter gets a GitLab client using static credentials retrieved using a Secret getter.

func NewWebhookClientGetter

NewWebhookClientGetter returns a WebhookClientGetter for the given secrets getter.

func (*WebhookClientGetterWithSecretGetter) Get

Get implements ClientGetter.

Jump to

Keyboard shortcuts

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