Struct taskcluster::PurgeCache [−][src]
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.
Implementations
impl PurgeCache
[src]
pub fn new<CB: Into<ClientBuilder>>(client_builder: CB) -> Result<Self, Error>
[src]
Create a new undefined instance, based on the given client.
pub async fn ping(&self) -> Result<(), Error>
[src]
Ping Server
Respond without doing anything. This endpoint is used to check that the service is up.
pub fn ping_url(&self) -> Result<String, Error>
[src]
Generate an unsigned URL for the ping endpoint
pub fn ping_signed_url(&self, ttl: Duration) -> Result<String, Error>
[src]
Generate a signed URL for the ping endpoint
pub async fn purgeCache(
&self,
workerPoolId: &str,
payload: &Value
) -> Result<(), Error>
[src]
&self,
workerPoolId: &str,
payload: &Value
) -> Result<(), Error>
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.
pub async fn allPurgeRequests(
&self,
continuationToken: Option<&str>,
limit: Option<&str>
) -> Result<Value, Error>
[src]
&self,
continuationToken: Option<&str>,
limit: Option<&str>
) -> Result<Value, Error>
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.
pub fn allPurgeRequests_url(
&self,
continuationToken: Option<&str>,
limit: Option<&str>
) -> Result<String, Error>
[src]
&self,
continuationToken: Option<&str>,
limit: Option<&str>
) -> Result<String, Error>
Generate an unsigned URL for the allPurgeRequests endpoint
pub fn allPurgeRequests_signed_url(
&self,
continuationToken: Option<&str>,
limit: Option<&str>,
ttl: Duration
) -> Result<String, Error>
[src]
&self,
continuationToken: Option<&str>,
limit: Option<&str>,
ttl: Duration
) -> Result<String, Error>
Generate a signed URL for the allPurgeRequests endpoint
pub async fn purgeRequests(
&self,
workerPoolId: &str,
since: Option<&str>
) -> Result<Value, Error>
[src]
&self,
workerPoolId: &str,
since: Option<&str>
) -> Result<Value, Error>
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.
pub fn purgeRequests_url(
&self,
workerPoolId: &str,
since: Option<&str>
) -> Result<String, Error>
[src]
&self,
workerPoolId: &str,
since: Option<&str>
) -> Result<String, Error>
Generate an unsigned URL for the purgeRequests endpoint
pub fn purgeRequests_signed_url(
&self,
workerPoolId: &str,
since: Option<&str>,
ttl: Duration
) -> Result<String, Error>
[src]
&self,
workerPoolId: &str,
since: Option<&str>,
ttl: Duration
) -> Result<String, Error>
Generate a signed URL for the purgeRequests endpoint
Auto Trait Implementations
impl !RefUnwindSafe for PurgeCache
impl Send for PurgeCache
impl Sync for PurgeCache
impl Unpin for PurgeCache
impl !UnwindSafe for PurgeCache
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,