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 ¶
func (f WebhookClientGetterFunc) Get(src *v1alpha1.GitLabSource) (WebhookClient, error)
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 ¶
func NewWebhookClientGetter(sg NamespacedSecretsGetter) *WebhookClientGetterWithSecretGetter
NewWebhookClientGetter returns a WebhookClientGetter for the given secrets getter.
func (*WebhookClientGetterWithSecretGetter) Get ¶
func (g *WebhookClientGetterWithSecretGetter) Get(src *v1alpha1.GitLabSource) (WebhookClient, error)
Get implements ClientGetter.
Click to show internal directories.
Click to hide internal directories.