Documentation ¶
Index ¶
- Constants
- type Options
- func (o *Options) GetHMACTokenFromSecret() (string, error)
- func (o *Options) GetWebHookEndpointFromHook() (string, error)
- func (o *Options) Run() error
- func (o *Options) UpdateWebhookForSourceRepository(sr *v1.SourceRepository, envMap map[string]*v1.Environment, ...) (bool, error)
- func (o *Options) Validate() error
Constants ¶
View Source
const ( // LighthouseHMACToken names of the hmac token secret for Lighthouse LighthouseHMACToken = "lighthouse-hmac-token" // WebHookAnnotation annotation to indicate if the webhook has been created or failed WebHookAnnotation = "webhook.jenkins-x.io" // WebHookErrorAnnotation indicates an error to create a webhook WebHookErrorAnnotation = "webhook.jenkins-x.io/error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { options.BaseOptions ScmClientFactory scmhelpers.Factory Org string User string Repo string ExactHookMatch bool PreviousHookURL string HMAC string Endpoint string DryRun bool WarnOnFail bool Namespace string KubeClient kubernetes.Interface JXClient jxc.Interface }
Options the flags for updating webhooks
func NewCmdWebHookVerify ¶
func (*Options) GetHMACTokenFromSecret ¶
GetHMACTokenFromSecret gets the appropriate HMAC secret, for either Prow or Lighthouse
func (*Options) GetWebHookEndpointFromHook ¶
GetWebHookEndpointFromHook returns the webhook endpoint
func (*Options) UpdateWebhookForSourceRepository ¶
func (o *Options) UpdateWebhookForSourceRepository(sr *v1.SourceRepository, envMap map[string]*v1.Environment, webhookURL, hmacToken string) (bool, error)
UpdateWebhookForSourceRepository updates the webhook for the given source repository
Click to show internal directories.
Click to hide internal directories.