update

package
v2.0.400-0...-14731b4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdUpdate

func NewCmdUpdate(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdUpdate creates a command object for the "update" command

func NewCmdUpdateWebhooks

func NewCmdUpdateWebhooks(commonOpts *opts.CommonOptions) *cobra.Command

Types

type UpdateOptions

type UpdateOptions struct {
	*opts.CommonOptions

	DisableImport bool
	OutDir        string
}

Update contains the command line options

func (*UpdateOptions) Run

func (o *UpdateOptions) Run() error

Run implements this command

type UpdateWebhooksOptions

type UpdateWebhooksOptions struct {
	*opts.CommonOptions
	Org             string
	User            string
	Repo            string
	ExactHookMatch  bool
	PreviousHookUrl string
	HMAC            string
	Endpoint        string
	DryRun          bool
	WarnOnFail      bool
}

UpdateWebhooksOptions the flags for updating webhooks

func (*UpdateWebhooksOptions) GetOrgOrUserFromOptions

func (o *UpdateWebhooksOptions) GetOrgOrUserFromOptions() string

GetOrgOrUserFromOptions returns the Org if set, if not set, returns the user if that is set or "" if neither is set

func (*UpdateWebhooksOptions) Run

func (o *UpdateWebhooksOptions) Run() error

Run runs the command

func (*UpdateWebhooksOptions) UpdateWebhookForSourceRepository

func (o *UpdateWebhooksOptions) UpdateWebhookForSourceRepository(sr *v1.SourceRepository, envMap map[string]*v1.Environment, err error, webhookURL string, hmacToken string) (bool, error)

Jump to

Keyboard shortcuts

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