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

Hooks Service

The hooks service provides a mechanism for creating tasks in response to events.

Fields

client: Client

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

Implementations

Create a new Hooks 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

List hook groups

This endpoint will return a list of all hook groups with at least one hook.

Generate an unsigned URL for the listHookGroups endpoint

Generate a signed URL for the listHookGroups endpoint

List hooks in a given group

This endpoint will return a list of all the hook definitions within a given hook group.

Generate an unsigned URL for the listHooks endpoint

Generate a signed URL for the listHooks endpoint

Get hook definition

This endpoint will return the hook definition for the given hookGroupId and hookId.

Generate an unsigned URL for the hook endpoint

Generate a signed URL for the hook endpoint

Get hook status

This endpoint will return the current status of the hook. This represents a snapshot in time and may vary from one call to the next.

This method is deprecated in favor of listLastFires.

Generate an unsigned URL for the getHookStatus endpoint

Generate a signed URL for the getHookStatus endpoint

Create a hook

This endpoint will create a new hook.

The caller’s credentials must include the role that will be used to create the task. That role must satisfy task.scopes as well as the necessary scopes to add the task to the queue.

Update a hook

This endpoint will update an existing hook. All fields except hookGroupId and hookId can be modified.

Delete a hook

This endpoint will remove a hook definition.

Trigger a hook

This endpoint will trigger the creation of a task from a hook definition.

The HTTP payload must match the hooks triggerSchema. If it does, it is provided as the payload property of the JSON-e context used to render the task template.

Get a trigger token

Retrieve a unique secret token for triggering the specified hook. This token can be deactivated with resetTriggerToken.

Generate an unsigned URL for the getTriggerToken endpoint

Generate a signed URL for the getTriggerToken endpoint

Reset a trigger token

Reset the token for triggering a given hook. This invalidates token that may have been issued via getTriggerToken with a new token.

Trigger a hook with a token

This endpoint triggers a defined hook with a valid token.

The HTTP payload must match the hooks triggerSchema. If it does, it is provided as the payload property of the JSON-e context used to render the task template.

Get information about recent hook fires

This endpoint will return information about the the last few times this hook has been fired, including whether the hook was fired successfully or not

Generate an unsigned URL for the listLastFires endpoint

Generate a signed URL for the listLastFires 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