jx: github.com/jenkins-x/jx/pkg/cmd/update Index | Files

package update

import "github.com/jenkins-x/jx/pkg/cmd/update"


Package Files

update.go update_webhooks.go

func NewCmdUpdate Uses

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

NewCmdUpdate creates a command object for the "update" command

func NewCmdUpdateWebhooks Uses

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

type UpdateOptions Uses

type UpdateOptions struct {

    DisableImport bool
    OutDir        string

Update contains the command line options

func (*UpdateOptions) Run Uses

func (o *UpdateOptions) Run() error

Run implements this command

type UpdateWebhooksOptions Uses

type UpdateWebhooksOptions struct {
    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 Uses

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 Uses

func (o *UpdateWebhooksOptions) Run() error

Run runs the command

func (*UpdateWebhooksOptions) UpdateWebhookForSourceRepository Uses

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

Package update imports 12 packages (graph). Updated 2020-08-15. Refresh now. Tools for package owners.