All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateJob | Post /1.13/jobs | |
DeleteJob | Delete /1.13/jobs/{name} | |
GetJob | Get /1.13/jobs/{name} | |
JobEnvGet | Get /1.16/jobs/{name}/env | |
JobEnvSet | Post /1.13/jobs/{name}/env | |
JobEnvUnset | Delete /1.13/jobs/{name}/env | |
JobLog | Get /1.13/jobs/{name}/log | |
ListJob | Get /1.13/jobs | |
TriggerJob | Post /1.13/jobs/{name}/trigger | |
UpdateJob | Put /1.13/jobs/{name} |
CreateJob(ctx, inputJob)
Create a job that runs periodically
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
inputJob | InputJob |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteJob(ctx, name)
Remove a job
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Name of job |
(empty response body)
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobInfo GetJob(ctx, name)
Get a job that runs periodically
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Name of job |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]EnvVar JobEnvGet(ctx, name, optional)
Get job environment variables.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Job name. | |
optional | *JobEnvGetOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a JobEnvGetOpts struct
Name | Type | Description | Notes |
---|
env | optional.String| Environment variable name. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobEnvSet(ctx, name, envSetData)
Set new environment variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Job name. | |
envSetData | EnvSetData | Environment variables. |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobEnvUnset(ctx, name, env)
Unset job environment variables.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Job name. | |
env | []string |
(empty response body)
- Content-Type: Not defined
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JobLog(ctx, name, optional)
Retrieve logs from a job
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Name of job | |
optional | *JobLogOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a JobLogOpts struct
Name | Type | Description | Notes |
---|
follow | optional.Bool| attach logs to tty |
(empty response body)
- Content-Type: Not defined
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Job ListJob(ctx, )
List jobs that runs periodically
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TriggerJob(ctx, name)
Trigger a job
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Name of job |
(empty response body)
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateJob(ctx, name, inputJob)
Update a job that runs periodically
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Name of job | |
inputJob | InputJob |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]