Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterWorkflowCmd ¶ added in v1.1.0
func NewClusterWorkflowCmd(f client.NewClientFunc) *cobra.Command
Types ¶
type ClusterWorkflow ¶
type ClusterWorkflow struct {
// contains filtered or unexported fields
}
ClusterWorkflow implements cluster workflow operations
func New ¶
func New(c client.Interface) *ClusterWorkflow
New creates a new cluster workflow implementation
func (*ClusterWorkflow) Delete ¶
func (c *ClusterWorkflow) Delete(params DeleteParams) error
Delete deletes a single cluster workflow
func (*ClusterWorkflow) Get ¶
func (c *ClusterWorkflow) Get(params GetParams) error
Get retrieves a single cluster workflow and outputs it as YAML
func (*ClusterWorkflow) List ¶
func (c *ClusterWorkflow) List() error
List lists all cluster-scoped workflows
func (*ClusterWorkflow) Logs ¶
func (c *ClusterWorkflow) Logs(params LogsParams) error
Logs fetches and displays logs for a cluster workflow.
func (*ClusterWorkflow) StartRun ¶
func (c *ClusterWorkflow) StartRun(params StartRunParams) error
StartRun starts a cluster workflow run in the given namespace.
type DeleteParams ¶
type DeleteParams struct {
ClusterWorkflowName string
}
DeleteParams defines parameters for deleting a single cluster workflow
type GetParams ¶
type GetParams struct {
ClusterWorkflowName string
}
GetParams defines parameters for getting a single cluster workflow
type LogsParams ¶
type LogsParams struct {
Namespace string
WorkflowName string
RunName string // optional --workflowrun flag; defaults to latest
Follow bool
Since string
}
LogsParams defines parameters for getting cluster workflow logs
func (LogsParams) GetNamespace ¶
func (p LogsParams) GetNamespace() string
func (LogsParams) GetWorkflowName ¶
func (p LogsParams) GetWorkflowName() string
type StartRunParams ¶
type StartRunParams struct {
Namespace string
WorkflowName string
Set []string // --set overrides applied on top of Parameters
}
StartRunParams defines parameters for starting a cluster workflow run
Click to show internal directories.
Click to hide internal directories.