Package dev.gmitch215.bytebox.gradle
Enum Class BindingType
- All Implemented Interfaces:
Serializable,Comparable<BindingType>,Constable
A binding type, for the short form of the bindings block.
bindings(KV, D1, D1, KV) // KV, DB, DB_2, KV_2
Every constant carries the name the first binding of its type takes and the Wrangler
configuration key it is written under. A second binding of the same type gets _2, a third
_3, so a project can start with the short form and add an identifier later without
renaming anything.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Workers AI binding.An AI Search instance.An Analytics Engine dataset.A static assets binding.The Browser Rendering binding.A container.A D1 database.A Workers for Platforms dispatch namespace.A Durable Object namespace.An email sending binding.A Hyperdrive configuration.The Images binding.A Workers KV namespace.An mTLS certificate.A Pipeline.A Queue producer.An R2 bucket.A rate limiter.A Secrets Store secret.Another Worker, reached with no network hop.A Vectorize index.The running version's metadata.A Workflow. -
Method Summary
Modifier and TypeMethodDescriptionReturns the Wrangler configuration key this type is written under.Returns the name the first binding of this type takes.booleanWhether a Worker can declare more than one of these.static BindingTypeReturns the enum constant of this class with the specified name.static BindingType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KV
A Workers KV namespace. -
D1
A D1 database. -
R2
An R2 bucket. -
AI
The Workers AI binding. -
VECTORIZE
A Vectorize index. -
HYPERDRIVE
A Hyperdrive configuration. -
IMAGES
The Images binding. -
BROWSER
The Browser Rendering binding. -
QUEUE
A Queue producer. -
DURABLE_OBJECT
A Durable Object namespace. -
EMAIL
An email sending binding. -
ASSETS
A static assets binding. -
SERVICE
Another Worker, reached with no network hop. -
WORKFLOW
A Workflow. -
ANALYTICS
An Analytics Engine dataset. -
AI_SEARCH
An AI Search instance. -
MTLS
An mTLS certificate. -
DISPATCH
A Workers for Platforms dispatch namespace. -
PIPELINE
A Pipeline. -
CONTAINER
A container. -
SECRETS
A Secrets Store secret. -
VERSION_METADATA
The running version's metadata. -
RATELIMIT
A rate limiter.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
defaultName
Returns the name the first binding of this type takes.- Returns:
- the name the first binding of this type takes
-
configKey
Returns the Wrangler configuration key this type is written under.- Returns:
- the Wrangler configuration key this type is written under
-
repeatable
public boolean repeatable()Whether a Worker can declare more than one of these.The single ones are the account-level services: there is one Workers AI, one Images, one browser. Declaring a second is a configuration mistake rather than something to number.
- Returns:
- whether repeats are allowed
-