#workflow #kubernetes #source #client #api-client #engine #information

argo-workflows-rs

Argo Workflows是一个开源的容器原生工作流引擎,用于在Kubernetes上编排并行作业。更多信息请参阅https://argoproj.github.io/argo-workflows/

2个版本

0.0.2 2023年10月17日
0.0.1 2023年10月16日

#148 in 模板引擎

Apache-2.0

1MB
13K SLoC

Rust API客户端用于openapi

Argo Workflows是一个开源的容器原生工作流引擎,用于在Kubernetes上编排并行作业。更多信息请参阅https://argoproj.github.io/argo-workflows/

概览

此API客户端由OpenAPI Generator项目生成。通过使用远程服务器上的openapi-spec,您可以轻松生成API客户端。

  • API版本:VERSION
  • 包版本:VERSION
  • 构建包:org.openapitools.codegen.languages.RustClientCodegen

安装

将包放入项目文件夹中的openapi目录下,并在Cargo.toml中的[dependencies]下添加以下内容:

openapi = { path = "./openapi" }

API端点文档

所有URI相对于https://127.0.0.1:2746

方法 HTTP请求 描述
ArchivedWorkflowServiceApi archived_workflow_service_delete_archived_workflow DELETE /api/v1/archived-workflows/{uid}
ArchivedWorkflowServiceApi archived_workflow_service_get_archived_workflow GET /api/v1/archived-workflows/{uid}
ArchivedWorkflowServiceApi archived_workflow_service_list_archived_workflow_label_keys GET /api/v1/archived-workflows-label-keys
ArchivedWorkflowServiceApi archived_workflow_service_list_archived_workflow_label_values GET /api/v1/archived-workflows-label-values
ArchivedWorkflowServiceApi archived_workflow_service_list_archived_workflows GET /api/v1/archived-workflows
ArchivedWorkflowServiceApi archived_workflow_service_resubmit_archived_workflow PUT /api/v1/archived-workflows/{uid}/resubmit
ArchivedWorkflowServiceApi archived_workflow_service_retry_archived_workflow PUT /api/v1/archived-workflows/{uid}/retry
ArtifactServiceApi artifact_service_get_artifact_file GET /artifact-files/{namespace}/{idDiscriminator}/{id}/{nodeId}/{artifactDiscriminator}/{artifactName} 获取一个工件。
ArtifactServiceApi artifact_service_get_input_artifact GET /input-artifacts/{namespace}/{name}/{nodeId}/{artifactName} 获取一个输入工件。
ArtifactServiceApi artifact_service_get_input_artifact_by_uid GET /input-artifacts-by-uid/{uid}/{nodeId}/{artifactName} 通过UID获取输入工件。
ArtifactServiceApi artifact_service_get_output_artifact GET /artifacts/{namespace}/{name}/{nodeId}/{artifactName} 获取输出工件。
ArtifactServiceApi artifact_service_get_output_artifact_by_uid GET /artifacts-by-uid/{uid}/{nodeId}/{artifactName} 通过UID获取输出工件。
ClusterWorkflowTemplateServiceApi cluster_workflow_template_service_create_cluster_workflow_template POST /api/v1/cluster-workflow-templates
ClusterWorkflowTemplateServiceApi cluster_workflow_template_service_delete_cluster_workflow_template DELETE /api/v1/cluster-workflow-templates/{name}
ClusterWorkflowTemplateServiceApi cluster_workflow_template_service_get_cluster_workflow_template GET /api/v1/cluster-workflow-templates/{name}
ClusterWorkflowTemplateServiceApi cluster_workflow_template_service_lint_cluster_workflow_template POST /api/v1/cluster-workflow-templates/lint
ClusterWorkflowTemplateServiceApi cluster_workflow_template_service_list_cluster_workflow_templates GET /api/v1/cluster-workflow-templates
ClusterWorkflowTemplateServiceApi cluster_workflow_template_service_update_cluster_workflow_template PUT /api/v1/cluster-workflow-templates/{name}
CronWorkflowServiceApi cron_workflow_service_create_cron_workflow POST /api/v1/cron-workflows/{namespace}
CronWorkflowServiceApi cron_workflow_service_delete_cron_workflow DELETE /api/v1/cron-workflows/{namespace}/{name}
CronWorkflowServiceApi cron_workflow_service_get_cron_workflow GET /api/v1/cron-workflows/{namespace}/{name}
CronWorkflowServiceApi cron_workflow_service_lint_cron_workflow POST /api/v1/cron-workflows/{namespace}/lint
CronWorkflowServiceApi cron_workflow_service_list_cron_workflows GET /api/v1/cron-workflows/{namespace}
CronWorkflowServiceApi cron_workflow_service_resume_cron_workflow PUT /api/v1/cron-workflows/{namespace}/{name}/resume
CronWorkflowServiceApi cron_workflow_service_suspend_cron_workflow PUT /api/v1/cron-workflows/{namespace}/{name}/suspend
CronWorkflowServiceApi cron_workflow_service_update_cron_workflow PUT /api/v1/cron-workflows/{namespace}/{name}
EventServiceApi event_service_list_workflow_event_bindings GET /api/v1/workflow-event-bindings/{namespace}
EventServiceApi event_service_receive_event POST /api/v1/events/{namespace}/{discriminator}
EventSourceServiceApi event_source_service_create_event_source POST /api/v1/event-sources/{namespace}
EventSourceServiceApi event_source_service_delete_event_source DELETE /api/v1/event-sources/{namespace}/{name}
EventSourceServiceApi event_source_service_event_sources_logs GET /api/v1/stream/event-sources/{namespace}/logs
EventSourceServiceApi event_source_service_get_event_source GET /api/v1/event-sources/{namespace}/{name}
EventSourceServiceApi event_source_service_list_event_sources GET /api/v1/event-sources/{namespace}
EventSourceServiceApi event_source_service_update_event_source PUT /api/v1/event-sources/{namespace}/{name}
EventSourceServiceApi event_source_service_watch_event_sources GET /api/v1/stream/event-sources/{namespace}
InfoServiceApi info_service_collect_event POST /api/v1/tracking/event
InfoServiceApi info_service_get_info GET /api/v1/info
InfoServiceApi info_service_get_user_info GET /api/v1/userinfo
InfoServiceApi info_service_get_version GET /api/v1/version
SensorServiceApi sensor_service_create_sensor POST /api/v1/sensors/{namespace}
SensorServiceApi sensor_service_delete_sensor DELETE /api/v1/sensors/{namespace}/{name}
SensorServiceApi sensor_service_get_sensor GET /api/v1/sensors/{namespace}/{name}
SensorServiceApi sensor_service_list_sensors GET /api/v1/sensors/{namespace}
SensorServiceApi sensor_service_sensors_logs GET /api/v1/stream/sensors/{namespace}/logs
SensorServiceApi sensor_service_update_sensor PUT /api/v1/sensors/{namespace}/{name}
SensorServiceApi sensor_service_watch_sensors GET /api/v1/stream/sensors/{namespace}
WorkflowServiceApi workflow_service_create_workflow POST /api/v1/workflows/{namespace}
WorkflowServiceApi workflow_service_delete_workflow DELETE /api/v1/workflows/{namespace}/{name}
WorkflowServiceApi workflow_service_get_workflow GET /api/v1/workflows/{namespace}/{name}
WorkflowServiceApi workflow_service_lint_workflow POST /api/v1/workflows/{namespace}/lint
WorkflowServiceApi workflow_service_list_workflows GET /api/v1/workflows/{namespace}
WorkflowServiceApi workflow_service_pod_logs GET /api/v1/workflows/{namespace}/{name}/{podName}/log 已弃用:如果podName为空字符串,则无法通过HTTP工作。请使用WorkflowLogs。
WorkflowServiceApi workflow_service_resubmit_workflow PUT /api/v1/workflows/{namespace}/{name}/resubmit
WorkflowServiceApi workflow_service_resume_workflow PUT /api/v1/workflows/{namespace}/{name}/resume
WorkflowServiceApi workflow_service_retry_workflow PUT /api/v1/workflows/{namespace}/{name}/retry
WorkflowServiceApi workflow_service_set_workflow PUT /api/v1/workflows/{namespace}/{name}/set
WorkflowServiceApi workflow_service_stop_workflow PUT /api/v1/workflows/{namespace}/{name}/stop
WorkflowServiceApi workflow_service_submit_workflow POST /api/v1/workflows/{namespace}/submit
WorkflowServiceApi workflow_service_suspend_workflow PUT /api/v1/workflows/{namespace}/{name}/suspend
WorkflowServiceApi workflow_service_terminate_workflow PUT /api/v1/workflows/{namespace}/{name}/terminate
WorkflowServiceApi workflow_service_watch_events GET /api/v1/stream/events/{namespace}
WorkflowServiceApi workflow_service_watch_workflows GET /api/v1/workflow-events/{namespace}
WorkflowServiceApi workflow_service_workflow_logs GET /api/v1/workflows/{namespace}/{name}/log
WorkflowTemplateServiceApi workflow_template_service_create_workflow_template POST /api/v1/workflow-templates/{namespace}
WorkflowTemplateServiceApi workflow_template_service_delete_workflow_template DELETE /api/v1/workflow-templates/{namespace}/{name}
WorkflowTemplateServiceApi workflow_template_service_get_workflow_template GET /api/v1/workflow-templates/{namespace}/{name}
WorkflowTemplateServiceApi workflow_template_service_lint_workflow_template POST /api/v1/workflow-templates/{namespace}/lint
WorkflowTemplateServiceApi workflow_template_service_list_workflow_templates GET /api/v1/workflow-templates/{namespace}
WorkflowTemplateServiceApi workflow_template_service_update_workflow_template PUT /api/v1/workflow-templates/{namespace}/{name}

模型的文档

要访问crate生成的文档,请使用

cargo doc --open

作者

依赖项

~4–18MB
~247K SLoC