Documentation ¶
Index ¶
- type ArgoClient
- func (c *ArgoClient) GetWorkflow(namespace string, workflowName string) (*Workflow, error)
- func (c *ArgoClient) GetWorkflowTemplates(namespace string) (*GetWorkflowTemplatesResponse, error)
- func (c *ArgoClient) GetWorkflows(namespace string) (*GetWorkflowsResponse, error)
- func (c *ArgoClient) SumbitWorkflowFromWftpl(wftplName, targetNamespace string, opts SubmitOptions) (string, error)
- type Arguments
- type Client
- type GetWorkflowTemplatesResponse
- type GetWorkflowsResponse
- type Metadata
- type SubmitOptions
- type SubmitWorkflowResponse
- type Workflow
- type WorkflowArguments
- type WorkflowMetadata
- type WorkflowSpec
- type WorkflowStatus
- type WorkflowTemplate
- type WorkflowTemplateSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoClient ¶
type ArgoClient struct {
// contains filtered or unexported fields
}
func (*ArgoClient) GetWorkflow ¶
func (c *ArgoClient) GetWorkflow(namespace string, workflowName string) (*Workflow, error)
func (*ArgoClient) GetWorkflowTemplates ¶
func (c *ArgoClient) GetWorkflowTemplates(namespace string) (*GetWorkflowTemplatesResponse, error)
func (*ArgoClient) GetWorkflows ¶
func (c *ArgoClient) GetWorkflows(namespace string) (*GetWorkflowsResponse, error)
func (*ArgoClient) SumbitWorkflowFromWftpl ¶
func (c *ArgoClient) SumbitWorkflowFromWftpl(wftplName, targetNamespace string, opts SubmitOptions) (string, error)
type Client ¶
type Client interface { GetWorkflowTemplates(namespace string) (*GetWorkflowTemplatesResponse, error) GetWorkflow(namespace string, workflowName string) (*Workflow, error) GetWorkflows(namespace string) (*GetWorkflowsResponse, error) SumbitWorkflowFromWftpl(wftplName, targetNamespace string, opts SubmitOptions) (string, error) }
type GetWorkflowTemplatesResponse ¶
type GetWorkflowTemplatesResponse struct {
Items []WorkflowTemplate `json:"items"`
}
GetWorkflowTemplatesResponse is a response from GET /api/v1/workflow-templates API.
type GetWorkflowsResponse ¶
type GetWorkflowsResponse struct {
Items []Workflow `json:"items"`
}
type SubmitOptions ¶
type SubmitOptions struct { DryRun bool `json:"dryRun,omitempty"` EntryPoint string `json:"entryPoint,omitempty"` GenerateName string `json:"generateName,omitempty"` Labels string `json:"labels,omitempty"` Name string `json:"name,omitempty"` Parameters []string `json:"parameters,omitempty"` }
SubmitOptions is optional fields to submit new workflow.
type SubmitWorkflowResponse ¶
type SubmitWorkflowResponse struct {
Metadata Metadata `json:"metadata"`
}
type Workflow ¶
type Workflow struct { ApiVersion string `json:"apiVersion"` Metadata WorkflowMetadata `json:"metadata"` Spec WorkflowSpec `json:"spec"` Status WorkflowStatus `json:"status"` }
type WorkflowArguments ¶
type WorkflowMetadata ¶
type WorkflowSpec ¶
type WorkflowSpec struct {
Args WorkflowArguments `json:"arguments"`
}
type WorkflowStatus ¶
type WorkflowTemplate ¶
type WorkflowTemplate struct { Metadata Metadata `json:"metadata"` Spec WorkflowTemplateSpec `json:"spec"` }
type WorkflowTemplateSpec ¶
type WorkflowTemplateSpec struct {
Args Arguments `json:"arguments"`
}
Click to show internal directories.
Click to hide internal directories.