Go SDKFeature Clients

Filters Client

Accessed via client.Filters() on the Hatchet client.

FiltersClient

FiltersClient provides methods for interacting with filters

Methods:

NameDescription
CreateCreate creates a new filter.
DeleteDelete deletes a filter by its ID.
GetGet gets a filter by its ID.
ListList lists filters for a given tenant.
UpdateUpdate updates a filter by its ID.

Functions

Create

Create creates a new filter.

func (c *FiltersClient) Create(ctx context.Context, opts rest.V1CreateFilterRequest) (*rest.V1Filter, error)

Parameters:

NameType
ctxcontext.Context
optsrest.V1CreateFilterRequest

Returns:

Type
*rest.V1Filter
error

Delete

Delete deletes a filter by its ID.

func (c *FiltersClient) Delete(ctx context.Context, filterID string) (*rest.V1Filter, error)

Parameters:

NameType
ctxcontext.Context
filterIDstring

Returns:

Type
*rest.V1Filter
error

Get

Get gets a filter by its ID.

func (c *FiltersClient) Get(ctx context.Context, filterID string) (*rest.V1Filter, error)

Parameters:

NameType
ctxcontext.Context
filterIDstring

Returns:

Type
*rest.V1Filter
error

List

List lists filters for a given tenant.

func (c *FiltersClient) List(ctx context.Context, opts *rest.V1FilterListParams) (*rest.V1FilterList, error)

Parameters:

NameType
ctxcontext.Context
opts*rest.V1FilterListParams

Returns:

Type
*rest.V1FilterList
error

Update

Update updates a filter by its ID.

func (c *FiltersClient) Update(ctx context.Context, filterID string, opts rest.V1FilterUpdateJSONRequestBody) (*rest.V1Filter, error)

Parameters:

NameType
ctxcontext.Context
filterIDstring
optsrest.V1FilterUpdateJSONRequestBody

Returns:

Type
*rest.V1Filter
error

Last updated on August 24, 2026

On this page