Documentation
¶
Index ¶
- type JobClient
- func (c *JobClient) Error(ctx context.Context, id tracker.Key, errString string) error
- func (c *JobClient) Heartbeat(ctx context.Context, id tracker.Key) error
- func (c *JobClient) Next(ctx context.Context) (*tracker.JobWithTarget, error)
- func (c *JobClient) Update(ctx context.Context, id tracker.Key, state tracker.State, detail string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobClient ¶
type JobClient struct { // Client is used for all HTTP requests to the Gardener API. A // NewJobClient uses http.DefaultClient but may be overridden. Client *http.Client // contains filtered or unexported fields }
JobClient manages requests to the Gardener Jobs API.
func NewJobClient ¶
NewJobClient creates a new JobClient that targets the given base API URL.
func (*JobClient) Heartbeat ¶
Heartbeat sends a heartbeat message for the given job ID, notifying Gardener that the job is still in progress.
Click to show internal directories.
Click to hide internal directories.