workflow

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertWorkflowNameIntoID

func ConvertWorkflowNameIntoID(ctx context.Context, workflowClient factory.WorkflowClient, wsID string, name string) (id string, err error)

ConvertWorkflowNameIntoID convert workflow name into id

func NewCmdCreate

func NewCmdCreate(opt *clioptions.GlobalOptions) *cobra.Command

func NewCmdDelete

func NewCmdDelete(opt *clioptions.GlobalOptions) *cobra.Command

NewCmdDelete new a delete workflow cmd.

func NewCmdImport

func NewCmdImport(opt *clioptions.GlobalOptions) *cobra.Command

NewCmdImport new a get workflow cmd.

func NewCmdList

func NewCmdList(opt *clioptions.GlobalOptions) *cobra.Command

NewCmdList new a list workflow cmd.

func NewCmdUpdate

func NewCmdUpdate(opt *clioptions.GlobalOptions) *cobra.Command

NewCmdUpdate new a update workflow cmd.

func NewCmdWorkflow

func NewCmdWorkflow(opt *clioptions.GlobalOptions) *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	WorkspaceName    string
	Name             string
	Description      string
	Language         string
	Source           string
	URL              string
	Tag              string
	Token            string
	MainWorkflowPath string
	// contains filtered or unexported fields
}

CreateOptions is an options to create a workflow.

func NewCreateOptions

func NewCreateOptions(opt *clioptions.GlobalOptions) *CreateOptions

NewCreateOptions returns a reference to a CreateOptions

func (*CreateOptions) Complete

func (o *CreateOptions) Complete() error

Complete completes all the required options.

func (*CreateOptions) GetDefaultFormat

func (o *CreateOptions) GetDefaultFormat() formatter.Format

func (*CreateOptions) GetPromptArgs

func (o *CreateOptions) GetPromptArgs() ([]string, error)

func (*CreateOptions) GetPromptOptions

func (o *CreateOptions) GetPromptOptions() error

func (*CreateOptions) Run

func (o *CreateOptions) Run(args []string) error

Run run the create workflow command

func (*CreateOptions) Validate

func (o *CreateOptions) Validate() error

Validate validate the create options

type DeleteOptions

type DeleteOptions struct {
	WorkspaceName string
	// contains filtered or unexported fields
}

DeleteOptions is an options to delete a workflow.

func NewDeleteOptions

func NewDeleteOptions(opt *clioptions.GlobalOptions) *DeleteOptions

NewDeleteOptions returns a reference to a DeleteOptions.

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete() error

Complete completes all the required options.

func (*DeleteOptions) GetDefaultFormat

func (o *DeleteOptions) GetDefaultFormat() formatter.Format

func (*DeleteOptions) GetPromptArgs

func (o *DeleteOptions) GetPromptArgs() ([]string, error)

func (*DeleteOptions) GetPromptOptions

func (o *DeleteOptions) GetPromptOptions() error

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(args []string) error

Run run the create workflow command

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate() error

Validate validate the delete options

type ImportOptions

type ImportOptions struct {
	WorkspaceName string
	Filepath      string
	// contains filtered or unexported fields
}

ImportOptions is an options to get a workflow.

func NewImportOptions

func NewImportOptions(opt *clioptions.GlobalOptions) *ImportOptions

NewImportOptions returns a reference to a ImportOptions.

func (*ImportOptions) Complete

func (o *ImportOptions) Complete() error

Complete completes all the required options.

func (*ImportOptions) GetDefaultFormat

func (o *ImportOptions) GetDefaultFormat() formatter.Format

func (*ImportOptions) GetPromptArgs

func (o *ImportOptions) GetPromptArgs() ([]string, error)

func (*ImportOptions) GetPromptOptions

func (o *ImportOptions) GetPromptOptions() error

func (*ImportOptions) Run

func (o *ImportOptions) Run(args []string) error

Run run the create workflow command

func (*ImportOptions) Validate

func (o *ImportOptions) Validate() error

Validate validate the get options

type ImportTemplate

type ImportTemplate struct {
	Name             string `json:"name"`
	Description      string `json:"description"`
	Language         string `json:"language"`
	Source           string `json:"source"`
	URL              string `json:"URL"`
	Tag              string `json:"tag"`
	Token            string `json:"token"`
	MainWorkflowPath string `json:"mainWorkflowPath"`
}

type ListOptions

type ListOptions struct {
	WorkspaceName string
	Page          int32
	Size          int32
	OrderBy       string
	SearchWords   []string
	Ids           []string
	// contains filtered or unexported fields
}

ListOptions is an options to list workflow.

func NewListOptions

func NewListOptions(opt *clioptions.GlobalOptions) *ListOptions

NewListOptions returns a reference to a ListOptions.

func (*ListOptions) Complete

func (o *ListOptions) Complete() error

Complete completes all the required options.

func (*ListOptions) GetDefaultFormat

func (o *ListOptions) GetDefaultFormat() formatter.Format

func (*ListOptions) GetPromptArgs

func (o *ListOptions) GetPromptArgs() ([]string, error)

func (*ListOptions) GetPromptOptions

func (o *ListOptions) GetPromptOptions() error

func (*ListOptions) Run

func (o *ListOptions) Run(_ []string) error

Run run the create workflow command

func (*ListOptions) Validate

func (o *ListOptions) Validate() error

Validate validate the list options

type UpdateOptions

type UpdateOptions struct {
	WorkspaceName string
	Name          string
	Description   string
	// contains filtered or unexported fields
}

UpdateOptions is an options to update workflow.

func NewUpdateOptions

func NewUpdateOptions(opt *clioptions.GlobalOptions) *UpdateOptions

NewUpdateOptions returns a reference to a UpdateOptions.

func (*UpdateOptions) Complete

func (o *UpdateOptions) Complete() error

Complete completes all the required options.

func (*UpdateOptions) GetDefaultFormat

func (o *UpdateOptions) GetDefaultFormat() formatter.Format

func (*UpdateOptions) GetPromptArgs

func (o *UpdateOptions) GetPromptArgs() ([]string, error)

func (*UpdateOptions) GetPromptOptions

func (o *UpdateOptions) GetPromptOptions() error

func (*UpdateOptions) Run

func (o *UpdateOptions) Run(args []string) error

Run run the update workflow command

func (*UpdateOptions) Validate

func (o *UpdateOptions) Validate() error

Validate validate the list options

Jump to

Keyboard shortcuts

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