existenceprecondition

package
v0.0.0-...-3b62dd1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDownloader

func NewDownloader[TReference any](base object.Downloader[TReference]) object.Downloader[TReference]

NewDownloader creates a decorator for object.Downloader that causes all NOT_FOUND errors returned by DownloadObject() to be translated to FAILED_PRECONDITION.

This decorator can be used on workers that expect that all objects references by actions that they receive are present in storage. If objects cannot be read from storage, it's not desirable to let the execution of the action itself fail with NOT_FOUND.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL