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
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)
Click to show internal directories.
Click to hide internal directories.