delete

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

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
	Filter           string
	AllWebhooks      bool
	DryRun           bool
	WarnOnFail       bool
	Namespace        string
	KubeClient       kubernetes.Interface
	JXClient         jxc.Interface
}

Options the flags for updating webhooks

func NewCmdWebHookDelete

func NewCmdWebHookDelete() (*cobra.Command, *Options)

func (*Options) DeleteWebhookFromSourceRepository

func (o *Options) DeleteWebhookFromSourceRepository(sr *v1.SourceRepository, err error, filter string) (bool, error)

DeleteWebhookFromSourceRepository updates the webhook for the given source repository

func (*Options) Run

func (o *Options) Run() error

Run runs the command

func (*Options) Validate

func (o *Options) Validate() error

Validate verifies things are setup correctly

Jump to

Keyboard shortcuts

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