pub struct PurgeCache {
    pub client: Client,
}
Expand description

Purge Cache Service

The purge-cache service is responsible for tracking cache-purge requests.

User create purge requests for specific caches on specific workers, and these requests are timestamped. Workers consult the service before starting a new task, and purge any caches older than the timestamp.

Fields

client: Client

The underlying client used to make API calls for this service.

Implementations

Create a new PurgeCache instance, based on the given client builder

Ping Server

Respond without doing anything. This endpoint is used to check that the service is up.

Generate an unsigned URL for the ping endpoint

Generate a signed URL for the ping endpoint

Load Balancer Heartbeat

Respond without doing anything. This endpoint is used to check that the service is up.

Generate an unsigned URL for the lbheartbeat endpoint

Generate a signed URL for the lbheartbeat endpoint

Taskcluster Version

Respond with the JSON version object. https://github.com/mozilla-services/Dockerflow/blob/main/docs/version_object.md

Generate an unsigned URL for the version endpoint

Generate a signed URL for the version endpoint

Purge Worker Cache

Publish a request to purge caches named cacheName with on workerPoolId workers.

If such a request already exists, its before timestamp is updated to the current time.

All Open Purge Requests

View all active purge requests.

This is useful mostly for administors to view the set of open purge requests. It should not be used by workers. They should use the purgeRequests endpoint that is specific to their workerType and provisionerId.

Generate an unsigned URL for the allPurgeRequests endpoint

Generate a signed URL for the allPurgeRequests endpoint

Open Purge Requests for a worker pool

List the caches for this workerPoolId that should to be purged if they are from before the time given in the response.

This is intended to be used by workers to determine which caches to purge.

Generate an unsigned URL for the purgeRequests endpoint

Generate a signed URL for the purgeRequests endpoint

Heartbeat

Respond with a service heartbeat.

This endpoint is used to check on backing services this service depends on.

Generate an unsigned URL for the heartbeat endpoint

Generate a signed URL for the heartbeat endpoint

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more