Documentation ¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type DispatchNamespaceDeleteParams
- type DispatchNamespaceDeleteResponse
- type DispatchNamespaceDeleteResponseEnvelope
- type DispatchNamespaceDeleteResponseEnvelopeSuccess
- type DispatchNamespaceGetParams
- type DispatchNamespaceGetResponse
- type DispatchNamespaceGetResponseEnvelope
- type DispatchNamespaceGetResponseEnvelopeSuccess
- type DispatchNamespaceListParams
- type DispatchNamespaceListResponse
- type DispatchNamespaceNewParams
- type DispatchNamespaceNewResponse
- type DispatchNamespaceNewResponseEnvelope
- type DispatchNamespaceNewResponseEnvelopeSuccess
- type DispatchNamespaceScriptAssetUploadNewParams
- type DispatchNamespaceScriptAssetUploadNewParamsManifest
- type DispatchNamespaceScriptAssetUploadNewResponse
- type DispatchNamespaceScriptAssetUploadNewResponseEnvelope
- type DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess
- type DispatchNamespaceScriptAssetUploadService
- type DispatchNamespaceScriptBindingGetParams
- type DispatchNamespaceScriptBindingGetResponse
- type DispatchNamespaceScriptBindingGetResponseEnvelope
- type DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess
- type DispatchNamespaceScriptBindingGetResponseUnion
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata
- type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType
- type DispatchNamespaceScriptBindingService
- type DispatchNamespaceScriptContentGetParams
- type DispatchNamespaceScriptContentService
- func (r *DispatchNamespaceScriptContentService) Get(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *http.Response, err error)
- func (r *DispatchNamespaceScriptContentService) Update(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *workers.Script, err error)
- type DispatchNamespaceScriptContentUpdateParams
- type DispatchNamespaceScriptContentUpdateResponseEnvelope
- type DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess
- type DispatchNamespaceScriptDeleteParams
- type DispatchNamespaceScriptGetParams
- type DispatchNamespaceScriptGetResponseEnvelope
- type DispatchNamespaceScriptGetResponseEnvelopeSuccess
- type DispatchNamespaceScriptSecretGetParams
- type DispatchNamespaceScriptSecretGetResponse
- type DispatchNamespaceScriptSecretGetResponseEnvelope
- type DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess
- type DispatchNamespaceScriptSecretGetResponseType
- type DispatchNamespaceScriptSecretListParams
- type DispatchNamespaceScriptSecretListResponse
- type DispatchNamespaceScriptSecretListResponseType
- type DispatchNamespaceScriptSecretService
- func (r *DispatchNamespaceScriptSecretService) Get(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *DispatchNamespaceScriptSecretGetResponse, err error)
- func (r *DispatchNamespaceScriptSecretService) List(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *pagination.SinglePage[DispatchNamespaceScriptSecretListResponse], ...)
- func (r *DispatchNamespaceScriptSecretService) ListAutoPaging(ctx context.Context, dispatchNamespace string, scriptName string, ...) *pagination.SinglePageAutoPager[DispatchNamespaceScriptSecretListResponse]
- func (r *DispatchNamespaceScriptSecretService) Update(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *DispatchNamespaceScriptSecretUpdateResponse, err error)
- type DispatchNamespaceScriptSecretUpdateParams
- type DispatchNamespaceScriptSecretUpdateResponse
- type DispatchNamespaceScriptSecretUpdateResponseEnvelope
- type DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess
- type DispatchNamespaceScriptSecretUpdateResponseType
- type DispatchNamespaceScriptService
- func (r *DispatchNamespaceScriptService) Delete(ctx context.Context, dispatchNamespace string, scriptName string, ...) (err error)
- func (r *DispatchNamespaceScriptService) Get(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *Script, err error)
- func (r *DispatchNamespaceScriptService) Update(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *DispatchNamespaceScriptUpdateResponse, err error)
- type DispatchNamespaceScriptSettingEditParams
- type DispatchNamespaceScriptSettingEditParamsSettings
- type DispatchNamespaceScriptSettingEditParamsSettingsBinding
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingUnion
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata
- type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType
- type DispatchNamespaceScriptSettingEditParamsSettingsLimits
- type DispatchNamespaceScriptSettingEditParamsSettingsMigrations
- type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion
- type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations
- func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion()
- func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) MarshalJSON() (data []byte, err error)
- type DispatchNamespaceScriptSettingEditParamsSettingsObservability
- type DispatchNamespaceScriptSettingEditParamsSettingsPlacement
- type DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode
- type DispatchNamespaceScriptSettingEditParamsSettingsUsageModel
- type DispatchNamespaceScriptSettingEditResponse
- type DispatchNamespaceScriptSettingEditResponseBinding
- type DispatchNamespaceScriptSettingEditResponseBindingsUnion
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata
- type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType
- type DispatchNamespaceScriptSettingEditResponseEnvelope
- type DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess
- type DispatchNamespaceScriptSettingEditResponseLimits
- type DispatchNamespaceScriptSettingEditResponseMigrations
- type DispatchNamespaceScriptSettingEditResponseMigrationsUnion
- type DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations
- func (r DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseMigrations()
- func (r *DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON(data []byte) (err error)
- type DispatchNamespaceScriptSettingEditResponseObservability
- type DispatchNamespaceScriptSettingEditResponsePlacement
- type DispatchNamespaceScriptSettingEditResponsePlacementMode
- type DispatchNamespaceScriptSettingEditResponseUsageModel
- type DispatchNamespaceScriptSettingGetParams
- type DispatchNamespaceScriptSettingGetResponse
- type DispatchNamespaceScriptSettingGetResponseBinding
- type DispatchNamespaceScriptSettingGetResponseBindingsUnion
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata
- type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType
- type DispatchNamespaceScriptSettingGetResponseEnvelope
- type DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess
- type DispatchNamespaceScriptSettingGetResponseLimits
- type DispatchNamespaceScriptSettingGetResponseMigrations
- type DispatchNamespaceScriptSettingGetResponseMigrationsUnion
- type DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations
- func (r DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseMigrations()
- func (r *DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON(data []byte) (err error)
- type DispatchNamespaceScriptSettingGetResponseObservability
- type DispatchNamespaceScriptSettingGetResponsePlacement
- type DispatchNamespaceScriptSettingGetResponsePlacementMode
- type DispatchNamespaceScriptSettingGetResponseUsageModel
- type DispatchNamespaceScriptSettingService
- func (r *DispatchNamespaceScriptSettingService) Edit(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *DispatchNamespaceScriptSettingEditResponse, err error)
- func (r *DispatchNamespaceScriptSettingService) Get(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *DispatchNamespaceScriptSettingGetResponse, err error)
- type DispatchNamespaceScriptTagDeleteParams
- type DispatchNamespaceScriptTagDeleteResponse
- type DispatchNamespaceScriptTagDeleteResponseEnvelope
- type DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess
- type DispatchNamespaceScriptTagListParams
- type DispatchNamespaceScriptTagService
- func (r *DispatchNamespaceScriptTagService) Delete(ctx context.Context, dispatchNamespace string, scriptName string, tag string, ...) (res *DispatchNamespaceScriptTagDeleteResponse, err error)
- func (r *DispatchNamespaceScriptTagService) List(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *pagination.SinglePage[string], err error)
- func (r *DispatchNamespaceScriptTagService) ListAutoPaging(ctx context.Context, dispatchNamespace string, scriptName string, ...) *pagination.SinglePageAutoPager[string]
- func (r *DispatchNamespaceScriptTagService) Update(ctx context.Context, dispatchNamespace string, scriptName string, ...) (res *[]string, err error)
- type DispatchNamespaceScriptTagUpdateParams
- type DispatchNamespaceScriptTagUpdateResponseEnvelope
- type DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess
- type DispatchNamespaceScriptUpdateParams
- type DispatchNamespaceScriptUpdateParamsMetadata
- type DispatchNamespaceScriptUpdateParamsMetadataAssets
- type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig
- type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling
- type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling
- type DispatchNamespaceScriptUpdateParamsMetadataBinding
- type DispatchNamespaceScriptUpdateParamsMetadataBindingUnion
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata
- type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType
- type DispatchNamespaceScriptUpdateParamsMetadataMigrations
- type DispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion
- type DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations
- func (r DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion()
- func (r DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) MarshalJSON() (data []byte, err error)
- type DispatchNamespaceScriptUpdateParamsMetadataObservability
- type DispatchNamespaceScriptUpdateParamsMetadataPlacement
- type DispatchNamespaceScriptUpdateParamsMetadataPlacementMode
- type DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus
- type DispatchNamespaceScriptUpdateParamsMetadataUsageModel
- type DispatchNamespaceScriptUpdateResponse
- type DispatchNamespaceScriptUpdateResponseEnvelope
- type DispatchNamespaceScriptUpdateResponseEnvelopeSuccess
- type DispatchNamespaceScriptUpdateResponsePlacement
- type DispatchNamespaceScriptUpdateResponsePlacementMode
- type DispatchNamespaceScriptUpdateResponsePlacementStatus
- type DispatchNamespaceScriptUpdateResponseUsageModel
- type DispatchNamespaceService
- func (r *DispatchNamespaceService) Delete(ctx context.Context, dispatchNamespace string, ...) (res *DispatchNamespaceDeleteResponse, err error)
- func (r *DispatchNamespaceService) Get(ctx context.Context, dispatchNamespace string, ...) (res *DispatchNamespaceGetResponse, err error)
- func (r *DispatchNamespaceService) List(ctx context.Context, query DispatchNamespaceListParams, ...) (res *pagination.SinglePage[DispatchNamespaceListResponse], err error)
- func (r *DispatchNamespaceService) ListAutoPaging(ctx context.Context, query DispatchNamespaceListParams, ...) *pagination.SinglePageAutoPager[DispatchNamespaceListResponse]
- func (r *DispatchNamespaceService) New(ctx context.Context, params DispatchNamespaceNewParams, ...) (res *DispatchNamespaceNewResponse, err error)
- type DispatchService
- type Error
- type ErrorData
- type Member
- type MemberPoliciesAccess
- type MemberPoliciesPermissionGroup
- type MemberPoliciesPermissionGroupsMeta
- type MemberPoliciesResourceGroup
- type MemberPoliciesResourceGroupsMeta
- type MemberPoliciesResourceGroupsScope
- type MemberPoliciesResourceGroupsScopeObject
- type MemberPolicy
- type MemberStatus
- type MemberUser
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type RatePlan
- type RatePlanParam
- type ResponseInfo
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type Script
- type SortDirection
- type Subscription
- type SubscriptionFrequency
- type SubscriptionParam
- type SubscriptionState
- type Token
- type TokenCondition
- type TokenConditionCIDRList
- type TokenConditionCIDRListParam
- type TokenConditionParam
- type TokenConditionRequestIP
- type TokenConditionRequestIPParam
- type TokenParam
- type TokenPolicy
- type TokenPolicyEffect
- type TokenPolicyParam
- type TokenPolicyPermissionGroup
- type TokenPolicyPermissionGroupParam
- type TokenPolicyPermissionGroupsMeta
- type TokenPolicyPermissionGroupsMetaParam
- type TokenStatus
- type TokenValue
- type WorkersForPlatformService
- type WorkersSecretModelParam
- type WorkersSecretModelType
Constants ¶
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CertificateCADigicert = shared.CertificateCADigicert
This is an alias to an internal value.
const CertificateCAGoogle = shared.CertificateCAGoogle
This is an alias to an internal value.
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt
This is an alias to an internal value.
const CertificateCASSLCom = shared.CertificateCASSLCom
This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow
This is an alias to an internal value.
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny
This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending
This is an alias to an internal value.
const SortDirectionAsc = shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc = shared.SortDirectionDesc
This is an alias to an internal value.
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly
This is an alias to an internal value.
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly
This is an alias to an internal value.
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly
This is an alias to an internal value.
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly
This is an alias to an internal value.
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment
This is an alias to an internal value.
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled
This is an alias to an internal value.
const SubscriptionStateExpired = shared.SubscriptionStateExpired
This is an alias to an internal value.
const SubscriptionStateFailed = shared.SubscriptionStateFailed
This is an alias to an internal value.
const SubscriptionStatePaid = shared.SubscriptionStatePaid
This is an alias to an internal value.
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned
This is an alias to an internal value.
const SubscriptionStateTrial = shared.SubscriptionStateTrial
This is an alias to an internal value.
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
This is an alias to an internal value.
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
This is an alias to an internal value.
const TokenStatusActive = shared.TokenStatusActive
This is an alias to an internal value.
const TokenStatusDisabled = shared.TokenStatusDisabled
This is an alias to an internal value.
const TokenStatusExpired = shared.TokenStatusExpired
This is an alias to an internal value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogAction ¶
type AuditLogAction = shared.AuditLogAction
This is an alias to an internal type.
type AuditLogActor ¶
type AuditLogActor = shared.AuditLogActor
This is an alias to an internal type.
type AuditLogActorType ¶
type AuditLogActorType = shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
type AuditLogOwner ¶
type AuditLogOwner = shared.AuditLogOwner
This is an alias to an internal type.
type AuditLogResource ¶
type AuditLogResource = shared.AuditLogResource
This is an alias to an internal type.
type CertificateCA ¶
type CertificateCA = shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
type CertificateRequestType ¶
type CertificateRequestType = shared.CertificateRequestType
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).
This is an alias to an internal type.
type CloudflareTunnel ¶
type CloudflareTunnel = shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
type CloudflareTunnelConnection ¶
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
This is an alias to an internal type.
type CloudflareTunnelStatus ¶
type CloudflareTunnelStatus = shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
This is an alias to an internal type.
type CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type DispatchNamespaceDeleteResponse ¶
type DispatchNamespaceDeleteResponse = interface{}
type DispatchNamespaceDeleteResponseEnvelope ¶
type DispatchNamespaceDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceDeleteResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceDeleteResponse `json:"result,nullable"` JSON dispatchNamespaceDeleteResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceDeleteResponseEnvelopeSuccess ¶
type DispatchNamespaceDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceDeleteResponseEnvelopeSuccessTrue DispatchNamespaceDeleteResponseEnvelopeSuccess = true
)
func (DispatchNamespaceDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceDeleteResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceGetResponse ¶
type DispatchNamespaceGetResponse struct { // Identifier CreatedBy string `json:"created_by"` // When the script was created. CreatedOn time.Time `json:"created_on" format:"date-time"` // Identifier ModifiedBy string `json:"modified_by"` // When the script was last modified. ModifiedOn time.Time `json:"modified_on" format:"date-time"` // API Resource UUID tag. NamespaceID string `json:"namespace_id"` // Name of the Workers for Platforms dispatch namespace. NamespaceName string `json:"namespace_name"` // The current number of scripts in this Dispatch Namespace ScriptCount int64 `json:"script_count"` JSON dispatchNamespaceGetResponseJSON `json:"-"` }
func (*DispatchNamespaceGetResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceGetResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceGetResponseEnvelope ¶
type DispatchNamespaceGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceGetResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceGetResponse `json:"result"` JSON dispatchNamespaceGetResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceGetResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceGetResponseEnvelopeSuccess ¶
type DispatchNamespaceGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceGetResponseEnvelopeSuccessTrue DispatchNamespaceGetResponseEnvelopeSuccess = true
)
func (DispatchNamespaceGetResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceGetResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceListResponse ¶
type DispatchNamespaceListResponse struct { // Identifier CreatedBy string `json:"created_by"` // When the script was created. CreatedOn time.Time `json:"created_on" format:"date-time"` // Identifier ModifiedBy string `json:"modified_by"` // When the script was last modified. ModifiedOn time.Time `json:"modified_on" format:"date-time"` // API Resource UUID tag. NamespaceID string `json:"namespace_id"` // Name of the Workers for Platforms dispatch namespace. NamespaceName string `json:"namespace_name"` // The current number of scripts in this Dispatch Namespace ScriptCount int64 `json:"script_count"` JSON dispatchNamespaceListResponseJSON `json:"-"` }
func (*DispatchNamespaceListResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceListResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceNewParams ¶
type DispatchNamespaceNewParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // The name of the dispatch namespace Name param.Field[string] `json:"name"` }
func (DispatchNamespaceNewParams) MarshalJSON ¶
func (r DispatchNamespaceNewParams) MarshalJSON() (data []byte, err error)
type DispatchNamespaceNewResponse ¶
type DispatchNamespaceNewResponse struct { // Identifier CreatedBy string `json:"created_by"` // When the script was created. CreatedOn time.Time `json:"created_on" format:"date-time"` // Identifier ModifiedBy string `json:"modified_by"` // When the script was last modified. ModifiedOn time.Time `json:"modified_on" format:"date-time"` // API Resource UUID tag. NamespaceID string `json:"namespace_id"` // Name of the Workers for Platforms dispatch namespace. NamespaceName string `json:"namespace_name"` // The current number of scripts in this Dispatch Namespace ScriptCount int64 `json:"script_count"` JSON dispatchNamespaceNewResponseJSON `json:"-"` }
func (*DispatchNamespaceNewResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceNewResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceNewResponseEnvelope ¶
type DispatchNamespaceNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceNewResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceNewResponse `json:"result"` JSON dispatchNamespaceNewResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceNewResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceNewResponseEnvelopeSuccess ¶
type DispatchNamespaceNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceNewResponseEnvelopeSuccessTrue DispatchNamespaceNewResponseEnvelopeSuccess = true
)
func (DispatchNamespaceNewResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceNewResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptAssetUploadNewParams ¶
type DispatchNamespaceScriptAssetUploadNewParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // A manifest ([path]: {hash, size}) map of files to upload. As an example, // `/blog/hello-world.html` would be a valid path key. Manifest param.Field[map[string]DispatchNamespaceScriptAssetUploadNewParamsManifest] `json:"manifest"` }
func (DispatchNamespaceScriptAssetUploadNewParams) MarshalJSON ¶
func (r DispatchNamespaceScriptAssetUploadNewParams) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptAssetUploadNewParamsManifest ¶
type DispatchNamespaceScriptAssetUploadNewParamsManifest struct { // The hash of the file. Hash param.Field[string] `json:"hash"` // The size of the file in bytes. Size param.Field[int64] `json:"size"` }
func (DispatchNamespaceScriptAssetUploadNewParamsManifest) MarshalJSON ¶
func (r DispatchNamespaceScriptAssetUploadNewParamsManifest) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptAssetUploadNewResponse ¶
type DispatchNamespaceScriptAssetUploadNewResponse struct { // The requests to make to upload assets. Buckets [][]string `json:"buckets"` // A JWT to use as authentication for uploading assets. JWT string `json:"jwt"` JSON dispatchNamespaceScriptAssetUploadNewResponseJSON `json:"-"` }
func (*DispatchNamespaceScriptAssetUploadNewResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptAssetUploadNewResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptAssetUploadNewResponseEnvelope ¶
type DispatchNamespaceScriptAssetUploadNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceScriptAssetUploadNewResponse `json:"result"` JSON dispatchNamespaceScriptAssetUploadNewResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptAssetUploadNewResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptAssetUploadNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccessTrue DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptAssetUploadNewResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptAssetUploadService ¶
type DispatchNamespaceScriptAssetUploadService struct {
Options []option.RequestOption
}
DispatchNamespaceScriptAssetUploadService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchNamespaceScriptAssetUploadService method instead.
func NewDispatchNamespaceScriptAssetUploadService ¶
func NewDispatchNamespaceScriptAssetUploadService(opts ...option.RequestOption) (r *DispatchNamespaceScriptAssetUploadService)
NewDispatchNamespaceScriptAssetUploadService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DispatchNamespaceScriptAssetUploadService) New ¶
func (r *DispatchNamespaceScriptAssetUploadService) New(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptAssetUploadNewParams, opts ...option.RequestOption) (res *DispatchNamespaceScriptAssetUploadNewResponse, err error)
Start uploading a collection of assets for use in a Worker version. To learn more about the direct uploads of assets, see https://developers.cloudflare.com/workers/static-assets/direct-upload/
type DispatchNamespaceScriptBindingGetResponse ¶
type DispatchNamespaceScriptBindingGetResponse struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type string `json:"type,required"` // Identifier of the D1 database to bind to. ID string `json:"id"` // R2 bucket to bind to. BucketName string `json:"bucket_name"` // Identifier of the certificate to bind to. CertificateID string `json:"certificate_id"` // The exported class name of the Durable Object. ClassName string `json:"class_name"` // The dataset name to bind to. Dataset string `json:"dataset"` // The environment of the script_name to bind to. Environment string `json:"environment"` // Name of the Vectorize index to bind to. IndexName string `json:"index_name"` // JSON data to use. Json string `json:"json"` // Namespace to bind to. Namespace string `json:"namespace"` // Namespace identifier tag. NamespaceID string `json:"namespace_id"` // This field can have the runtime type of // [DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound]. Outbound interface{} `json:"outbound"` // Name of the Queue to bind to. QueueName string `json:"queue_name"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName string `json:"script_name"` // Name of Worker to bind to. Service string `json:"service"` // The text value to use. Text string `json:"text"` JSON dispatchNamespaceScriptBindingGetResponseJSON `json:"-"` // contains filtered or unexported fields }
A binding to allow the Worker to communicate with resources
func (DispatchNamespaceScriptBindingGetResponse) AsUnion ¶
func (r DispatchNamespaceScriptBindingGetResponse) AsUnion() DispatchNamespaceScriptBindingGetResponseUnion
AsUnion returns a DispatchNamespaceScriptBindingGetResponseUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata.
func (*DispatchNamespaceScriptBindingGetResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseEnvelope ¶
type DispatchNamespaceScriptBindingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess `json:"success,required"` // List of bindings attached to a Worker. You can find more about bindings on our // docs: // https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. Result []DispatchNamespaceScriptBindingGetResponse `json:"result"` JSON dispatchNamespaceScriptBindingGetResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptBindingGetResponseEnvelopeSuccessTrue DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseUnion ¶
type DispatchNamespaceScriptBindingGetResponseUnion interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Union satisfied by workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize or workers_for_platforms.DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata.
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAI) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAITypeAI DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType = "ai"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAIType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine struct { // The dataset name to bind to. Dataset string `json:"dataset,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngine) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type string `json:"type,required"` ExtraFields map[string]interface{} `json:"-,extras"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindAnyJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAny) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssets) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType = "assets"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindAssetsType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRendering) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptBindingGetResponseWorkersBindingKindBrowserRenderingType = "browser_rendering"
)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1 ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1 struct { // Identifier of the D1 database to bind to. ID string `json:"id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1JSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1TypeD1 DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type = "d1"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindD1Type) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace to bind to. Namespace string `json:"namespace,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType `json:"type,required"` // Outbound worker. Outbound DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespace) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters. Params []string `json:"params"` // Outbound worker. Worker DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundJSON `json:"-"` }
Outbound worker.
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker struct { // Environment of the outbound worker. Environment string `json:"environment"` // Name of the outbound worker. Service string `json:"service"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"` }
Outbound worker.
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo struct { // The exported class name of the Durable Object. ClassName string `json:"class_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType `json:"type,required"` // The environment of the script_name to bind to. Environment string `json:"environment"` // Namespace identifier tag. NamespaceID string `json:"namespace_id"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName string `json:"script_name"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDo) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType = "durable_object_namespace"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindDoType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive struct { // Identifier of the Hyperdrive connection to bind to. ID string `json:"id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdrive) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType = "hyperdrive"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindHyperdriveType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson struct { // JSON data to use. Json string `json:"json,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJson) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonTypeJson DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType = "json"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindJsonType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace identifier tag. NamespaceID string `json:"namespace_id,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespace) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType = "kv_namespace"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindKVNamespaceType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT struct { // Identifier of the certificate to bind to. CertificateID string `json:"certificate_id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindMtlscertJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERT) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType = "mtls_certificate"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindMTLSCERTType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The text value to use. Text string `json:"text,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainText) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType = "plain_text"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindPlainTextType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of the Queue to bind to. QueueName string `json:"queue_name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueue) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType = "queue"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindQueueType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2 ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2 struct { // R2 bucket to bind to. BucketName string `json:"bucket_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2JSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type = "r2_bucket"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindR2Type) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The secret value to use. Text string `json:"text,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecret) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType = "secret_text"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindSecretType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService struct { // Optional environment if the Worker utilizes one. Environment string `json:"environment,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of Worker to bind to. Service string `json:"service,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindService) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceTypeService DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType = "service"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindServiceType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of Tail Worker to bind to. Service string `json:"service,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumer) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType = "tail_consumer"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindTailConsumerType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize struct { // Name of the Vectorize index to bind to. IndexName string `json:"index_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorize) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType = "vectorize"
)
func (DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType) IsKnown ¶
func (r DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVectorizeType) IsKnown() bool
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType `json:"type,required"` JSON dispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataJSON `json:"-"` }
func (*DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadata) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType ¶
type DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptBindingGetResponseWorkersBindingKindVersionMetadataType = "version_metadata"
)
type DispatchNamespaceScriptBindingService ¶
type DispatchNamespaceScriptBindingService struct {
Options []option.RequestOption
}
DispatchNamespaceScriptBindingService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchNamespaceScriptBindingService method instead.
func NewDispatchNamespaceScriptBindingService ¶
func NewDispatchNamespaceScriptBindingService(opts ...option.RequestOption) (r *DispatchNamespaceScriptBindingService)
NewDispatchNamespaceScriptBindingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DispatchNamespaceScriptBindingService) Get ¶
func (r *DispatchNamespaceScriptBindingService) Get(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptBindingGetParams, opts ...option.RequestOption) (res *[]DispatchNamespaceScriptBindingGetResponse, err error)
Fetch script bindings from a script uploaded to a Workers for Platforms namespace.
type DispatchNamespaceScriptContentService ¶
type DispatchNamespaceScriptContentService struct {
Options []option.RequestOption
}
DispatchNamespaceScriptContentService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchNamespaceScriptContentService method instead.
func NewDispatchNamespaceScriptContentService ¶
func NewDispatchNamespaceScriptContentService(opts ...option.RequestOption) (r *DispatchNamespaceScriptContentService)
NewDispatchNamespaceScriptContentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DispatchNamespaceScriptContentService) Get ¶
func (r *DispatchNamespaceScriptContentService) Get(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptContentGetParams, opts ...option.RequestOption) (res *http.Response, err error)
Fetch script content from a script uploaded to a Workers for Platforms namespace.
func (*DispatchNamespaceScriptContentService) Update ¶
func (r *DispatchNamespaceScriptContentService) Update(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptContentUpdateParams, opts ...option.RequestOption) (res *workers.Script, err error)
Put script content for a script uploaded to a Workers for Platforms namespace.
type DispatchNamespaceScriptContentUpdateParams ¶
type DispatchNamespaceScriptContentUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // JSON encoded metadata about the uploaded parts and Worker configuration. Metadata param.Field[workers.WorkerMetadataParam] `json:"metadata,required"` CfWorkerBodyPart param.Field[string] `header:"CF-WORKER-BODY-PART"` CfWorkerMainModulePart param.Field[string] `header:"CF-WORKER-MAIN-MODULE-PART"` }
func (DispatchNamespaceScriptContentUpdateParams) MarshalMultipart ¶
func (r DispatchNamespaceScriptContentUpdateParams) MarshalMultipart() (data []byte, contentType string, err error)
type DispatchNamespaceScriptContentUpdateResponseEnvelope ¶
type DispatchNamespaceScriptContentUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess `json:"success,required"` Result workers.Script `json:"result"` JSON dispatchNamespaceScriptContentUpdateResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptContentUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptContentUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccessTrue DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptContentUpdateResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptDeleteParams ¶
type DispatchNamespaceScriptDeleteParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // If set to true, delete will not be stopped by associated service binding, // durable object, or other binding. Any of these associated bindings/durable // objects will be deleted along with the script. Force param.Field[bool] `query:"force"` }
func (DispatchNamespaceScriptDeleteParams) URLQuery ¶
func (r DispatchNamespaceScriptDeleteParams) URLQuery() (v url.Values)
URLQuery serializes DispatchNamespaceScriptDeleteParams's query parameters as `url.Values`.
type DispatchNamespaceScriptGetResponseEnvelope ¶
type DispatchNamespaceScriptGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptGetResponseEnvelopeSuccess `json:"success,required"` // Details about a worker uploaded to a Workers for Platforms namespace. Result Script `json:"result"` JSON dispatchNamespaceScriptGetResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptGetResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptGetResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptGetResponseEnvelopeSuccessTrue DispatchNamespaceScriptGetResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptGetResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptGetResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptSecretGetResponse ¶
type DispatchNamespaceScriptSecretGetResponse struct { // The name of this secret, this is what will be used to access it inside the // Worker. Name string `json:"name"` // The type of secret. Type DispatchNamespaceScriptSecretGetResponseType `json:"type"` JSON dispatchNamespaceScriptSecretGetResponseJSON `json:"-"` }
func (*DispatchNamespaceScriptSecretGetResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSecretGetResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSecretGetResponseEnvelope ¶
type DispatchNamespaceScriptSecretGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceScriptSecretGetResponse `json:"result"` JSON dispatchNamespaceScriptSecretGetResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptSecretGetResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSecretGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptSecretGetResponseEnvelopeSuccessTrue DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptSecretGetResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptSecretGetResponseType ¶
type DispatchNamespaceScriptSecretGetResponseType string
The type of secret.
const (
DispatchNamespaceScriptSecretGetResponseTypeSecretText DispatchNamespaceScriptSecretGetResponseType = "secret_text"
)
func (DispatchNamespaceScriptSecretGetResponseType) IsKnown ¶
func (r DispatchNamespaceScriptSecretGetResponseType) IsKnown() bool
type DispatchNamespaceScriptSecretListResponse ¶
type DispatchNamespaceScriptSecretListResponse struct { // The name of this secret, this is what will be used to access it inside the // Worker. Name string `json:"name"` // The type of secret. Type DispatchNamespaceScriptSecretListResponseType `json:"type"` JSON dispatchNamespaceScriptSecretListResponseJSON `json:"-"` }
func (*DispatchNamespaceScriptSecretListResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSecretListResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSecretListResponseType ¶
type DispatchNamespaceScriptSecretListResponseType string
The type of secret.
const (
DispatchNamespaceScriptSecretListResponseTypeSecretText DispatchNamespaceScriptSecretListResponseType = "secret_text"
)
func (DispatchNamespaceScriptSecretListResponseType) IsKnown ¶
func (r DispatchNamespaceScriptSecretListResponseType) IsKnown() bool
type DispatchNamespaceScriptSecretService ¶
type DispatchNamespaceScriptSecretService struct {
Options []option.RequestOption
}
DispatchNamespaceScriptSecretService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchNamespaceScriptSecretService method instead.
func NewDispatchNamespaceScriptSecretService ¶
func NewDispatchNamespaceScriptSecretService(opts ...option.RequestOption) (r *DispatchNamespaceScriptSecretService)
NewDispatchNamespaceScriptSecretService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DispatchNamespaceScriptSecretService) Get ¶
func (r *DispatchNamespaceScriptSecretService) Get(ctx context.Context, dispatchNamespace string, scriptName string, secretName string, query DispatchNamespaceScriptSecretGetParams, opts ...option.RequestOption) (res *DispatchNamespaceScriptSecretGetResponse, err error)
Get secret from a script uploaded to a Workers for Platforms namespace.
func (*DispatchNamespaceScriptSecretService) List ¶
func (r *DispatchNamespaceScriptSecretService) List(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptSecretListParams, opts ...option.RequestOption) (res *pagination.SinglePage[DispatchNamespaceScriptSecretListResponse], err error)
List secrets from a script uploaded to a Workers for Platforms namespace.
func (*DispatchNamespaceScriptSecretService) ListAutoPaging ¶
func (r *DispatchNamespaceScriptSecretService) ListAutoPaging(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptSecretListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[DispatchNamespaceScriptSecretListResponse]
List secrets from a script uploaded to a Workers for Platforms namespace.
func (*DispatchNamespaceScriptSecretService) Update ¶
func (r *DispatchNamespaceScriptSecretService) Update(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptSecretUpdateParams, opts ...option.RequestOption) (res *DispatchNamespaceScriptSecretUpdateResponse, err error)
Put secrets to a script uploaded to a Workers for Platforms namespace.
type DispatchNamespaceScriptSecretUpdateParams ¶
type DispatchNamespaceScriptSecretUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` WorkersSecretModel WorkersSecretModelParam `json:"workers_secret_model,required"` }
func (DispatchNamespaceScriptSecretUpdateParams) MarshalJSON ¶
func (r DispatchNamespaceScriptSecretUpdateParams) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSecretUpdateResponse ¶
type DispatchNamespaceScriptSecretUpdateResponse struct { // The name of this secret, this is what will be used to access it inside the // Worker. Name string `json:"name"` // The type of secret. Type DispatchNamespaceScriptSecretUpdateResponseType `json:"type"` JSON dispatchNamespaceScriptSecretUpdateResponseJSON `json:"-"` }
func (*DispatchNamespaceScriptSecretUpdateResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSecretUpdateResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSecretUpdateResponseEnvelope ¶
type DispatchNamespaceScriptSecretUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceScriptSecretUpdateResponse `json:"result"` JSON dispatchNamespaceScriptSecretUpdateResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptSecretUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSecretUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccessTrue DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptSecretUpdateResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptSecretUpdateResponseType ¶
type DispatchNamespaceScriptSecretUpdateResponseType string
The type of secret.
const (
DispatchNamespaceScriptSecretUpdateResponseTypeSecretText DispatchNamespaceScriptSecretUpdateResponseType = "secret_text"
)
func (DispatchNamespaceScriptSecretUpdateResponseType) IsKnown ¶
func (r DispatchNamespaceScriptSecretUpdateResponseType) IsKnown() bool
type DispatchNamespaceScriptService ¶
type DispatchNamespaceScriptService struct { Options []option.RequestOption AssetUpload *DispatchNamespaceScriptAssetUploadService Content *DispatchNamespaceScriptContentService Settings *DispatchNamespaceScriptSettingService Bindings *DispatchNamespaceScriptBindingService Secrets *DispatchNamespaceScriptSecretService Tags *DispatchNamespaceScriptTagService }
DispatchNamespaceScriptService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchNamespaceScriptService method instead.
func NewDispatchNamespaceScriptService ¶
func NewDispatchNamespaceScriptService(opts ...option.RequestOption) (r *DispatchNamespaceScriptService)
NewDispatchNamespaceScriptService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DispatchNamespaceScriptService) Delete ¶
func (r *DispatchNamespaceScriptService) Delete(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptDeleteParams, opts ...option.RequestOption) (err error)
Delete a worker from a Workers for Platforms namespace. This call has no response body on a successful delete.
func (*DispatchNamespaceScriptService) Get ¶
func (r *DispatchNamespaceScriptService) Get(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptGetParams, opts ...option.RequestOption) (res *Script, err error)
Fetch information about a script uploaded to a Workers for Platforms namespace.
func (*DispatchNamespaceScriptService) Update ¶
func (r *DispatchNamespaceScriptService) Update(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptUpdateParams, opts ...option.RequestOption) (res *DispatchNamespaceScriptUpdateResponse, err error)
Upload a worker module to a Workers for Platforms namespace. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/.
type DispatchNamespaceScriptSettingEditParams ¶
type DispatchNamespaceScriptSettingEditParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Settings param.Field[DispatchNamespaceScriptSettingEditParamsSettings] `json:"settings"` }
func (DispatchNamespaceScriptSettingEditParams) MarshalMultipart ¶
func (r DispatchNamespaceScriptSettingEditParams) MarshalMultipart() (data []byte, contentType string, err error)
type DispatchNamespaceScriptSettingEditParamsSettings ¶
type DispatchNamespaceScriptSettingEditParamsSettings struct { // List of bindings attached to a Worker. You can find more about bindings on our // docs: // https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. Bindings param.Field[[]DispatchNamespaceScriptSettingEditParamsSettingsBindingUnion] `json:"bindings"` // Date indicating targeted support in the Workers runtime. Backwards incompatible // fixes to the runtime following this date will not affect this Worker. CompatibilityDate param.Field[string] `json:"compatibility_date"` // Flags that enable or disable certain features in the Workers runtime. Used to // enable upcoming features or opt in or out of specific changes not included in a // `compatibility_date`. CompatibilityFlags param.Field[[]string] `json:"compatibility_flags"` // Limits to apply for this Worker. Limits param.Field[DispatchNamespaceScriptSettingEditParamsSettingsLimits] `json:"limits"` // Whether Logpush is turned on for the Worker. Logpush param.Field[bool] `json:"logpush"` // Migrations to apply for Durable Objects associated with this Worker. Migrations param.Field[DispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion] `json:"migrations"` // Observability settings for the Worker. Observability param.Field[DispatchNamespaceScriptSettingEditParamsSettingsObservability] `json:"observability"` // Configuration for // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Placement param.Field[DispatchNamespaceScriptSettingEditParamsSettingsPlacement] `json:"placement"` // Tags to help you manage your Workers Tags param.Field[[]string] `json:"tags"` // List of Workers that will consume logs from the attached Worker. TailConsumers param.Field[[]workers.ConsumerScriptParam] `json:"tail_consumers"` // Usage model for the Worker invocations. UsageModel param.Field[DispatchNamespaceScriptSettingEditParamsSettingsUsageModel] `json:"usage_model"` }
func (DispatchNamespaceScriptSettingEditParamsSettings) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettings) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBinding ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBinding struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[string] `json:"type,required"` // Identifier of the D1 database to bind to. ID param.Field[string] `json:"id"` // R2 bucket to bind to. BucketName param.Field[string] `json:"bucket_name"` // Identifier of the certificate to bind to. CertificateID param.Field[string] `json:"certificate_id"` // The exported class name of the Durable Object. ClassName param.Field[string] `json:"class_name"` // The dataset name to bind to. Dataset param.Field[string] `json:"dataset"` // The environment of the script_name to bind to. Environment param.Field[string] `json:"environment"` // Name of the Vectorize index to bind to. IndexName param.Field[string] `json:"index_name"` // JSON data to use. Json param.Field[string] `json:"json"` // Namespace to bind to. Namespace param.Field[string] `json:"namespace"` // Namespace identifier tag. NamespaceID param.Field[string] `json:"namespace_id"` Outbound param.Field[interface{}] `json:"outbound"` // Name of the Queue to bind to. QueueName param.Field[string] `json:"queue_name"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName param.Field[string] `json:"script_name"` // Name of Worker to bind to. Service param.Field[string] `json:"service"` // The text value to use. Text param.Field[string] `json:"text"` }
A binding to allow the Worker to communicate with resources
func (DispatchNamespaceScriptSettingEditParamsSettingsBinding) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBinding) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingUnion ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingUnion interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Satisfied by workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata, DispatchNamespaceScriptSettingEditParamsSettingsBinding.
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAI) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAITypeAI DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAIType = "ai"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine struct { // The dataset name to bind to. Dataset param.Field[string] `json:"dataset,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[string] `json:"type,required"` ExtraFields map[string]interface{} `json:"-,extras"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAny) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssets) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindAssetsType = "assets"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRendering) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindBrowserRenderingType = "browser_rendering"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1 ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1 struct { // Identifier of the D1 database to bind to. ID param.Field[string] `json:"id,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1TypeD1 DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindD1Type = "d1"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Namespace to bind to. Namespace param.Field[string] `json:"namespace,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType] `json:"type,required"` // Outbound worker. Outbound param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound] `json:"outbound"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespace) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters. Params param.Field[[]string] `json:"params"` // Outbound worker. Worker param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"` }
Outbound worker.
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct { // Environment of the outbound worker. Environment param.Field[string] `json:"environment"` // Name of the outbound worker. Service param.Field[string] `json:"service"` }
Outbound worker.
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo struct { // The exported class name of the Durable Object. ClassName param.Field[string] `json:"class_name,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType] `json:"type,required"` // The environment of the script_name to bind to. Environment param.Field[string] `json:"environment"` // Namespace identifier tag. NamespaceID param.Field[string] `json:"namespace_id"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName param.Field[string] `json:"script_name"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDo) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindDoType = "durable_object_namespace"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive struct { // Identifier of the Hyperdrive connection to bind to. ID param.Field[string] `json:"id,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdrive) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson struct { // JSON data to use. Json param.Field[string] `json:"json,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJson) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindJsonType = "json"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Namespace identifier tag. NamespaceID param.Field[string] `json:"namespace_id,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespace) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT struct { // Identifier of the certificate to bind to. CertificateID param.Field[string] `json:"certificate_id,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERT) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindMTLSCERTType = "mtls_certificate"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The text value to use. Text param.Field[string] `json:"text,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainText) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindPlainTextType = "plain_text"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Name of the Queue to bind to. QueueName param.Field[string] `json:"queue_name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueue) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindQueueType = "queue"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2 ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2 struct { // R2 bucket to bind to. BucketName param.Field[string] `json:"bucket_name,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindR2Type = "r2_bucket"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The secret value to use. Text param.Field[string] `json:"text,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecret) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindSecretType = "secret_text"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService struct { // Optional environment if the Worker utilizes one. Environment param.Field[string] `json:"environment,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Name of Worker to bind to. Service param.Field[string] `json:"service,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindService) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceTypeService DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindServiceType = "service"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Name of Tail Worker to bind to. Service param.Field[string] `json:"service,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumer) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindTailConsumerType = "tail_consumer"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize struct { // Name of the Vectorize index to bind to. IndexName param.Field[string] `json:"index_name,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorize) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVectorizeType = "vectorize"
)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType] `json:"type,required"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadata) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType ¶
type DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptSettingEditParamsSettingsBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)
type DispatchNamespaceScriptSettingEditParamsSettingsLimits ¶
type DispatchNamespaceScriptSettingEditParamsSettingsLimits struct { // The amount of CPU time this Worker can use in milliseconds. CPUMs param.Field[int64] `json:"cpu_ms"` }
Limits to apply for this Worker.
func (DispatchNamespaceScriptSettingEditParamsSettingsLimits) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsLimits) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsMigrations ¶
type DispatchNamespaceScriptSettingEditParamsSettingsMigrations struct { DeletedClasses param.Field[interface{}] `json:"deleted_classes"` NewClasses param.Field[interface{}] `json:"new_classes"` NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes"` // Tag to set as the latest migration tag. NewTag param.Field[string] `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. OldTag param.Field[string] `json:"old_tag"` RenamedClasses param.Field[interface{}] `json:"renamed_classes"` Steps param.Field[interface{}] `json:"steps"` TransferredClasses param.Field[interface{}] `json:"transferred_classes"` }
Migrations to apply for Durable Objects associated with this Worker.
func (DispatchNamespaceScriptSettingEditParamsSettingsMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion()
func (DispatchNamespaceScriptSettingEditParamsSettingsMigrations) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrations) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion ¶
type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion interface {
ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion()
}
Migrations to apply for Durable Objects associated with this Worker.
Satisfied by workers.SingleStepMigrationParam, workers_for_platforms.DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations, DispatchNamespaceScriptSettingEditParamsSettingsMigrations.
type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations ¶
type DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations struct { // Tag to set as the latest migration tag. NewTag param.Field[string] `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. OldTag param.Field[string] `json:"old_tag"` // Migrations to apply in order. Steps param.Field[[]workers.MigrationStepParam] `json:"steps"` }
func (DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditParamsSettingsMigrationsUnion()
func (DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrationsWorkersMultipleStepMigrations) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsObservability ¶
type DispatchNamespaceScriptSettingEditParamsSettingsObservability struct { // Whether observability is enabled for the Worker. Enabled param.Field[bool] `json:"enabled,required"` // The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). // Default is 1. HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"` }
Observability settings for the Worker.
func (DispatchNamespaceScriptSettingEditParamsSettingsObservability) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsObservability) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsPlacement ¶
type DispatchNamespaceScriptSettingEditParamsSettingsPlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Mode param.Field[DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode] `json:"mode"` }
Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
func (DispatchNamespaceScriptSettingEditParamsSettingsPlacement) MarshalJSON ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsPlacement) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode ¶
type DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
const (
DispatchNamespaceScriptSettingEditParamsSettingsPlacementModeSmart DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode = "smart"
)
func (DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsPlacementMode) IsKnown() bool
type DispatchNamespaceScriptSettingEditParamsSettingsUsageModel ¶
type DispatchNamespaceScriptSettingEditParamsSettingsUsageModel string
Usage model for the Worker invocations.
const (
DispatchNamespaceScriptSettingEditParamsSettingsUsageModelStandard DispatchNamespaceScriptSettingEditParamsSettingsUsageModel = "standard"
)
func (DispatchNamespaceScriptSettingEditParamsSettingsUsageModel) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditParamsSettingsUsageModel) IsKnown() bool
type DispatchNamespaceScriptSettingEditResponse ¶
type DispatchNamespaceScriptSettingEditResponse struct { // List of bindings attached to a Worker. You can find more about bindings on our // docs: // https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. Bindings []DispatchNamespaceScriptSettingEditResponseBinding `json:"bindings"` // Date indicating targeted support in the Workers runtime. Backwards incompatible // fixes to the runtime following this date will not affect this Worker. CompatibilityDate string `json:"compatibility_date"` // Flags that enable or disable certain features in the Workers runtime. Used to // enable upcoming features or opt in or out of specific changes not included in a // `compatibility_date`. CompatibilityFlags []string `json:"compatibility_flags"` // Limits to apply for this Worker. Limits DispatchNamespaceScriptSettingEditResponseLimits `json:"limits"` // Whether Logpush is turned on for the Worker. Logpush bool `json:"logpush"` // Migrations to apply for Durable Objects associated with this Worker. Migrations DispatchNamespaceScriptSettingEditResponseMigrations `json:"migrations"` // Observability settings for the Worker. Observability DispatchNamespaceScriptSettingEditResponseObservability `json:"observability"` // Configuration for // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Placement DispatchNamespaceScriptSettingEditResponsePlacement `json:"placement"` // Tags to help you manage your Workers Tags []string `json:"tags"` // List of Workers that will consume logs from the attached Worker. TailConsumers []workers.ConsumerScript `json:"tail_consumers"` // Usage model for the Worker invocations. UsageModel DispatchNamespaceScriptSettingEditResponseUsageModel `json:"usage_model"` JSON dispatchNamespaceScriptSettingEditResponseJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBinding ¶
type DispatchNamespaceScriptSettingEditResponseBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type string `json:"type,required"` // Identifier of the D1 database to bind to. ID string `json:"id"` // R2 bucket to bind to. BucketName string `json:"bucket_name"` // Identifier of the certificate to bind to. CertificateID string `json:"certificate_id"` // The exported class name of the Durable Object. ClassName string `json:"class_name"` // The dataset name to bind to. Dataset string `json:"dataset"` // The environment of the script_name to bind to. Environment string `json:"environment"` // Name of the Vectorize index to bind to. IndexName string `json:"index_name"` // JSON data to use. Json string `json:"json"` // Namespace to bind to. Namespace string `json:"namespace"` // Namespace identifier tag. NamespaceID string `json:"namespace_id"` // This field can have the runtime type of // [DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound]. Outbound interface{} `json:"outbound"` // Name of the Queue to bind to. QueueName string `json:"queue_name"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName string `json:"script_name"` // Name of Worker to bind to. Service string `json:"service"` // The text value to use. Text string `json:"text"` JSON dispatchNamespaceScriptSettingEditResponseBindingJSON `json:"-"` // contains filtered or unexported fields }
A binding to allow the Worker to communicate with resources
func (DispatchNamespaceScriptSettingEditResponseBinding) AsUnion ¶
func (r DispatchNamespaceScriptSettingEditResponseBinding) AsUnion() DispatchNamespaceScriptSettingEditResponseBindingsUnion
AsUnion returns a DispatchNamespaceScriptSettingEditResponseBindingsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata.
func (*DispatchNamespaceScriptSettingEditResponseBinding) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBinding) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsUnion ¶
type DispatchNamespaceScriptSettingEditResponseBindingsUnion interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Union satisfied by workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize or workers_for_platforms.DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata.
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAI) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAITypeAI DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType = "ai"
)
func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAIType) IsKnown() bool
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine struct { // The dataset name to bind to. Dataset string `json:"dataset,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type string `json:"type,required"` ExtraFields map[string]interface{} `json:"-,extras"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAnyJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAny) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssets) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindAssetsType = "assets"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRendering) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindBrowserRenderingType = "browser_rendering"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1 ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1 struct { // Identifier of the D1 database to bind to. ID string `json:"id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1JSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1TypeD1 DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type = "d1"
)
func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindD1Type) IsKnown() bool
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace to bind to. Namespace string `json:"namespace,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType `json:"type,required"` // Outbound worker. Outbound DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters. Params []string `json:"params"` // Outbound worker. Worker DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundJSON `json:"-"` }
Outbound worker.
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct { // Environment of the outbound worker. Environment string `json:"environment"` // Name of the outbound worker. Service string `json:"service"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"` }
Outbound worker.
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo struct { // The exported class name of the Durable Object. ClassName string `json:"class_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType `json:"type,required"` // The environment of the script_name to bind to. Environment string `json:"environment"` // Namespace identifier tag. NamespaceID string `json:"namespace_id"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName string `json:"script_name"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDo) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType = "durable_object_namespace"
)
func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindDoType) IsKnown() bool
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive struct { // Identifier of the Hyperdrive connection to bind to. ID string `json:"id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdrive) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson struct { // JSON data to use. Json string `json:"json,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJson) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType = "json"
)
func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindJsonType) IsKnown() bool
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace identifier tag. NamespaceID string `json:"namespace_id,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespace) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT struct { // Identifier of the certificate to bind to. CertificateID string `json:"certificate_id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMtlscertJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERT) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindMTLSCERTType = "mtls_certificate"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The text value to use. Text string `json:"text,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainText) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindPlainTextType = "plain_text"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of the Queue to bind to. QueueName string `json:"queue_name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueue) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindQueueType = "queue"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2 ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2 struct { // R2 bucket to bind to. BucketName string `json:"bucket_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2JSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type = "r2_bucket"
)
func (DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindR2Type) IsKnown() bool
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The secret value to use. Text string `json:"text,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecret) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindSecretType = "secret_text"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService struct { // Optional environment if the Worker utilizes one. Environment string `json:"environment,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of Worker to bind to. Service string `json:"service,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindService) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceTypeService DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindServiceType = "service"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of Tail Worker to bind to. Service string `json:"service,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumer) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindTailConsumerType = "tail_consumer"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize struct { // Name of the Vectorize index to bind to. IndexName string `json:"index_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorize) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVectorizeType = "vectorize"
)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType `json:"type,required"` JSON dispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType ¶
type DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptSettingEditResponseBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)
type DispatchNamespaceScriptSettingEditResponseEnvelope ¶
type DispatchNamespaceScriptSettingEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceScriptSettingEditResponse `json:"result"` JSON dispatchNamespaceScriptSettingEditResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingEditResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptSettingEditResponseEnvelopeSuccessTrue DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptSettingEditResponseLimits ¶
type DispatchNamespaceScriptSettingEditResponseLimits struct { // The amount of CPU time this Worker can use in milliseconds. CPUMs int64 `json:"cpu_ms"` JSON dispatchNamespaceScriptSettingEditResponseLimitsJSON `json:"-"` }
Limits to apply for this Worker.
func (*DispatchNamespaceScriptSettingEditResponseLimits) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseLimits) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseMigrations ¶
type DispatchNamespaceScriptSettingEditResponseMigrations struct { // This field can have the runtime type of [[]string]. DeletedClasses interface{} `json:"deleted_classes"` // This field can have the runtime type of [[]string]. NewClasses interface{} `json:"new_classes"` // This field can have the runtime type of [[]string]. NewSqliteClasses interface{} `json:"new_sqlite_classes"` // Tag to set as the latest migration tag. NewTag string `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. OldTag string `json:"old_tag"` // This field can have the runtime type of // [[]workers.SingleStepMigrationRenamedClass]. RenamedClasses interface{} `json:"renamed_classes"` // This field can have the runtime type of [[]workers.MigrationStep]. Steps interface{} `json:"steps"` // This field can have the runtime type of // [[]workers.SingleStepMigrationTransferredClass]. TransferredClasses interface{} `json:"transferred_classes"` JSON dispatchNamespaceScriptSettingEditResponseMigrationsJSON `json:"-"` // contains filtered or unexported fields }
Migrations to apply for Durable Objects associated with this Worker.
func (DispatchNamespaceScriptSettingEditResponseMigrations) AsUnion ¶
func (r DispatchNamespaceScriptSettingEditResponseMigrations) AsUnion() DispatchNamespaceScriptSettingEditResponseMigrationsUnion
AsUnion returns a DispatchNamespaceScriptSettingEditResponseMigrationsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are workers.SingleStepMigration, workers_for_platforms.DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations.
func (*DispatchNamespaceScriptSettingEditResponseMigrations) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseMigrations) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseMigrationsUnion ¶
type DispatchNamespaceScriptSettingEditResponseMigrationsUnion interface {
ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseMigrations()
}
Migrations to apply for Durable Objects associated with this Worker.
Union satisfied by workers.SingleStepMigration or workers_for_platforms.DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations.
type DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations ¶
type DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations struct { // Tag to set as the latest migration tag. NewTag string `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. OldTag string `json:"old_tag"` // Migrations to apply in order. Steps []workers.MigrationStep `json:"steps"` JSON dispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrationsJSON `json:"-"` }
func (DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseMigrations ¶
func (r DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingEditResponseMigrations()
func (*DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponseObservability ¶
type DispatchNamespaceScriptSettingEditResponseObservability struct { // Whether observability is enabled for the Worker. Enabled bool `json:"enabled,required"` // The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). // Default is 1. HeadSamplingRate float64 `json:"head_sampling_rate,nullable"` JSON dispatchNamespaceScriptSettingEditResponseObservabilityJSON `json:"-"` }
Observability settings for the Worker.
func (*DispatchNamespaceScriptSettingEditResponseObservability) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponseObservability) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponsePlacement ¶
type DispatchNamespaceScriptSettingEditResponsePlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Mode DispatchNamespaceScriptSettingEditResponsePlacementMode `json:"mode"` JSON dispatchNamespaceScriptSettingEditResponsePlacementJSON `json:"-"` }
Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
func (*DispatchNamespaceScriptSettingEditResponsePlacement) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingEditResponsePlacement) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingEditResponsePlacementMode ¶
type DispatchNamespaceScriptSettingEditResponsePlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
const (
DispatchNamespaceScriptSettingEditResponsePlacementModeSmart DispatchNamespaceScriptSettingEditResponsePlacementMode = "smart"
)
func (DispatchNamespaceScriptSettingEditResponsePlacementMode) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditResponsePlacementMode) IsKnown() bool
type DispatchNamespaceScriptSettingEditResponseUsageModel ¶
type DispatchNamespaceScriptSettingEditResponseUsageModel string
Usage model for the Worker invocations.
const (
DispatchNamespaceScriptSettingEditResponseUsageModelStandard DispatchNamespaceScriptSettingEditResponseUsageModel = "standard"
)
func (DispatchNamespaceScriptSettingEditResponseUsageModel) IsKnown ¶
func (r DispatchNamespaceScriptSettingEditResponseUsageModel) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponse ¶
type DispatchNamespaceScriptSettingGetResponse struct { // List of bindings attached to a Worker. You can find more about bindings on our // docs: // https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. Bindings []DispatchNamespaceScriptSettingGetResponseBinding `json:"bindings"` // Date indicating targeted support in the Workers runtime. Backwards incompatible // fixes to the runtime following this date will not affect this Worker. CompatibilityDate string `json:"compatibility_date"` // Flags that enable or disable certain features in the Workers runtime. Used to // enable upcoming features or opt in or out of specific changes not included in a // `compatibility_date`. CompatibilityFlags []string `json:"compatibility_flags"` // Limits to apply for this Worker. Limits DispatchNamespaceScriptSettingGetResponseLimits `json:"limits"` // Whether Logpush is turned on for the Worker. Logpush bool `json:"logpush"` // Migrations to apply for Durable Objects associated with this Worker. Migrations DispatchNamespaceScriptSettingGetResponseMigrations `json:"migrations"` // Observability settings for the Worker. Observability DispatchNamespaceScriptSettingGetResponseObservability `json:"observability"` // Configuration for // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Placement DispatchNamespaceScriptSettingGetResponsePlacement `json:"placement"` // Tags to help you manage your Workers Tags []string `json:"tags"` // List of Workers that will consume logs from the attached Worker. TailConsumers []workers.ConsumerScript `json:"tail_consumers"` // Usage model for the Worker invocations. UsageModel DispatchNamespaceScriptSettingGetResponseUsageModel `json:"usage_model"` JSON dispatchNamespaceScriptSettingGetResponseJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBinding ¶
type DispatchNamespaceScriptSettingGetResponseBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type string `json:"type,required"` // Identifier of the D1 database to bind to. ID string `json:"id"` // R2 bucket to bind to. BucketName string `json:"bucket_name"` // Identifier of the certificate to bind to. CertificateID string `json:"certificate_id"` // The exported class name of the Durable Object. ClassName string `json:"class_name"` // The dataset name to bind to. Dataset string `json:"dataset"` // The environment of the script_name to bind to. Environment string `json:"environment"` // Name of the Vectorize index to bind to. IndexName string `json:"index_name"` // JSON data to use. Json string `json:"json"` // Namespace to bind to. Namespace string `json:"namespace"` // Namespace identifier tag. NamespaceID string `json:"namespace_id"` // This field can have the runtime type of // [DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound]. Outbound interface{} `json:"outbound"` // Name of the Queue to bind to. QueueName string `json:"queue_name"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName string `json:"script_name"` // Name of Worker to bind to. Service string `json:"service"` // The text value to use. Text string `json:"text"` JSON dispatchNamespaceScriptSettingGetResponseBindingJSON `json:"-"` // contains filtered or unexported fields }
A binding to allow the Worker to communicate with resources
func (DispatchNamespaceScriptSettingGetResponseBinding) AsUnion ¶
func (r DispatchNamespaceScriptSettingGetResponseBinding) AsUnion() DispatchNamespaceScriptSettingGetResponseBindingsUnion
AsUnion returns a DispatchNamespaceScriptSettingGetResponseBindingsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata.
func (*DispatchNamespaceScriptSettingGetResponseBinding) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBinding) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsUnion ¶
type DispatchNamespaceScriptSettingGetResponseBindingsUnion interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Union satisfied by workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize or workers_for_platforms.DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata.
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAI) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAITypeAI DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType = "ai"
)
func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAIType) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine struct { // The dataset name to bind to. Dataset string `json:"dataset,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngine) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type string `json:"type,required"` ExtraFields map[string]interface{} `json:"-,extras"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAnyJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAny) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssets) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindAssetsType = "assets"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRendering) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindBrowserRenderingType = "browser_rendering"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1 ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1 struct { // Identifier of the D1 database to bind to. ID string `json:"id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1JSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1TypeD1 DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type = "d1"
)
func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindD1Type) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace to bind to. Namespace string `json:"namespace,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType `json:"type,required"` // Outbound worker. Outbound DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound `json:"outbound"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespace) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters. Params []string `json:"params"` // Outbound worker. Worker DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker `json:"worker"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundJSON `json:"-"` }
Outbound worker.
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutbound) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct { // Environment of the outbound worker. Environment string `json:"environment"` // Name of the outbound worker. Service string `json:"service"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorkerJSON `json:"-"` }
Outbound worker.
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo struct { // The exported class name of the Durable Object. ClassName string `json:"class_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType `json:"type,required"` // The environment of the script_name to bind to. Environment string `json:"environment"` // Namespace identifier tag. NamespaceID string `json:"namespace_id"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName string `json:"script_name"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDo) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType = "durable_object_namespace"
)
func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindDoType) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive struct { // Identifier of the Hyperdrive connection to bind to. ID string `json:"id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdrive) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson struct { // JSON data to use. Json string `json:"json,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJson) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType = "json"
)
func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindJsonType) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace identifier tag. NamespaceID string `json:"namespace_id,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespace) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT struct { // Identifier of the certificate to bind to. CertificateID string `json:"certificate_id,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMtlscertJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERT) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindMTLSCERTType = "mtls_certificate"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The text value to use. Text string `json:"text,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainText) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindPlainTextType = "plain_text"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of the Queue to bind to. QueueName string `json:"queue_name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueue) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType = "queue"
)
func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindQueueType) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2 ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2 struct { // R2 bucket to bind to. BucketName string `json:"bucket_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2JSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type = "r2_bucket"
)
func (DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindR2Type) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The secret value to use. Text string `json:"text,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecret) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindSecretType = "secret_text"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService struct { // Optional environment if the Worker utilizes one. Environment string `json:"environment,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of Worker to bind to. Service string `json:"service,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindService) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceTypeService DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindServiceType = "service"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Name of Tail Worker to bind to. Service string `json:"service,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumer) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindTailConsumerType = "tail_consumer"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize struct { // Name of the Vectorize index to bind to. IndexName string `json:"index_name,required"` // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorize) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVectorizeType = "vectorize"
)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The kind of resource that the binding provides. Type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType `json:"type,required"` JSON dispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadata) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType ¶
type DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptSettingGetResponseBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)
type DispatchNamespaceScriptSettingGetResponseEnvelope ¶
type DispatchNamespaceScriptSettingGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceScriptSettingGetResponse `json:"result"` JSON dispatchNamespaceScriptSettingGetResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptSettingGetResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptSettingGetResponseEnvelopeSuccessTrue DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponseLimits ¶
type DispatchNamespaceScriptSettingGetResponseLimits struct { // The amount of CPU time this Worker can use in milliseconds. CPUMs int64 `json:"cpu_ms"` JSON dispatchNamespaceScriptSettingGetResponseLimitsJSON `json:"-"` }
Limits to apply for this Worker.
func (*DispatchNamespaceScriptSettingGetResponseLimits) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseLimits) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseMigrations ¶
type DispatchNamespaceScriptSettingGetResponseMigrations struct { // This field can have the runtime type of [[]string]. DeletedClasses interface{} `json:"deleted_classes"` // This field can have the runtime type of [[]string]. NewClasses interface{} `json:"new_classes"` // This field can have the runtime type of [[]string]. NewSqliteClasses interface{} `json:"new_sqlite_classes"` // Tag to set as the latest migration tag. NewTag string `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. OldTag string `json:"old_tag"` // This field can have the runtime type of // [[]workers.SingleStepMigrationRenamedClass]. RenamedClasses interface{} `json:"renamed_classes"` // This field can have the runtime type of [[]workers.MigrationStep]. Steps interface{} `json:"steps"` // This field can have the runtime type of // [[]workers.SingleStepMigrationTransferredClass]. TransferredClasses interface{} `json:"transferred_classes"` JSON dispatchNamespaceScriptSettingGetResponseMigrationsJSON `json:"-"` // contains filtered or unexported fields }
Migrations to apply for Durable Objects associated with this Worker.
func (DispatchNamespaceScriptSettingGetResponseMigrations) AsUnion ¶
func (r DispatchNamespaceScriptSettingGetResponseMigrations) AsUnion() DispatchNamespaceScriptSettingGetResponseMigrationsUnion
AsUnion returns a DispatchNamespaceScriptSettingGetResponseMigrationsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are workers.SingleStepMigration, workers_for_platforms.DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations.
func (*DispatchNamespaceScriptSettingGetResponseMigrations) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseMigrations) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseMigrationsUnion ¶
type DispatchNamespaceScriptSettingGetResponseMigrationsUnion interface {
ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseMigrations()
}
Migrations to apply for Durable Objects associated with this Worker.
Union satisfied by workers.SingleStepMigration or workers_for_platforms.DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations.
type DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations ¶
type DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations struct { // Tag to set as the latest migration tag. NewTag string `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. OldTag string `json:"old_tag"` // Migrations to apply in order. Steps []workers.MigrationStep `json:"steps"` JSON dispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrationsJSON `json:"-"` }
func (DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseMigrations ¶
func (r DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptSettingGetResponseMigrations()
func (*DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseMigrationsWorkersMultipleStepMigrations) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponseObservability ¶
type DispatchNamespaceScriptSettingGetResponseObservability struct { // Whether observability is enabled for the Worker. Enabled bool `json:"enabled,required"` // The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). // Default is 1. HeadSamplingRate float64 `json:"head_sampling_rate,nullable"` JSON dispatchNamespaceScriptSettingGetResponseObservabilityJSON `json:"-"` }
Observability settings for the Worker.
func (*DispatchNamespaceScriptSettingGetResponseObservability) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponseObservability) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponsePlacement ¶
type DispatchNamespaceScriptSettingGetResponsePlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Mode DispatchNamespaceScriptSettingGetResponsePlacementMode `json:"mode"` JSON dispatchNamespaceScriptSettingGetResponsePlacementJSON `json:"-"` }
Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
func (*DispatchNamespaceScriptSettingGetResponsePlacement) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptSettingGetResponsePlacement) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptSettingGetResponsePlacementMode ¶
type DispatchNamespaceScriptSettingGetResponsePlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
const (
DispatchNamespaceScriptSettingGetResponsePlacementModeSmart DispatchNamespaceScriptSettingGetResponsePlacementMode = "smart"
)
func (DispatchNamespaceScriptSettingGetResponsePlacementMode) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponsePlacementMode) IsKnown() bool
type DispatchNamespaceScriptSettingGetResponseUsageModel ¶
type DispatchNamespaceScriptSettingGetResponseUsageModel string
Usage model for the Worker invocations.
const (
DispatchNamespaceScriptSettingGetResponseUsageModelStandard DispatchNamespaceScriptSettingGetResponseUsageModel = "standard"
)
func (DispatchNamespaceScriptSettingGetResponseUsageModel) IsKnown ¶
func (r DispatchNamespaceScriptSettingGetResponseUsageModel) IsKnown() bool
type DispatchNamespaceScriptSettingService ¶
type DispatchNamespaceScriptSettingService struct {
Options []option.RequestOption
}
DispatchNamespaceScriptSettingService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchNamespaceScriptSettingService method instead.
func NewDispatchNamespaceScriptSettingService ¶
func NewDispatchNamespaceScriptSettingService(opts ...option.RequestOption) (r *DispatchNamespaceScriptSettingService)
NewDispatchNamespaceScriptSettingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DispatchNamespaceScriptSettingService) Edit ¶
func (r *DispatchNamespaceScriptSettingService) Edit(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptSettingEditParams, opts ...option.RequestOption) (res *DispatchNamespaceScriptSettingEditResponse, err error)
Patch script metadata, such as bindings
func (*DispatchNamespaceScriptSettingService) Get ¶
func (r *DispatchNamespaceScriptSettingService) Get(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptSettingGetParams, opts ...option.RequestOption) (res *DispatchNamespaceScriptSettingGetResponse, err error)
Get script settings from a script uploaded to a Workers for Platforms namespace.
type DispatchNamespaceScriptTagDeleteResponse ¶
type DispatchNamespaceScriptTagDeleteResponse = interface{}
type DispatchNamespaceScriptTagDeleteResponseEnvelope ¶
type DispatchNamespaceScriptTagDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceScriptTagDeleteResponse `json:"result,nullable"` JSON dispatchNamespaceScriptTagDeleteResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptTagDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptTagDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccessTrue DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptTagDeleteResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptTagService ¶
type DispatchNamespaceScriptTagService struct {
Options []option.RequestOption
}
DispatchNamespaceScriptTagService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchNamespaceScriptTagService method instead.
func NewDispatchNamespaceScriptTagService ¶
func NewDispatchNamespaceScriptTagService(opts ...option.RequestOption) (r *DispatchNamespaceScriptTagService)
NewDispatchNamespaceScriptTagService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DispatchNamespaceScriptTagService) Delete ¶
func (r *DispatchNamespaceScriptTagService) Delete(ctx context.Context, dispatchNamespace string, scriptName string, tag string, body DispatchNamespaceScriptTagDeleteParams, opts ...option.RequestOption) (res *DispatchNamespaceScriptTagDeleteResponse, err error)
Delete script tag for a script uploaded to a Workers for Platforms namespace.
func (*DispatchNamespaceScriptTagService) List ¶
func (r *DispatchNamespaceScriptTagService) List(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptTagListParams, opts ...option.RequestOption) (res *pagination.SinglePage[string], err error)
Fetch tags from a script uploaded to a Workers for Platforms namespace.
func (*DispatchNamespaceScriptTagService) ListAutoPaging ¶
func (r *DispatchNamespaceScriptTagService) ListAutoPaging(ctx context.Context, dispatchNamespace string, scriptName string, query DispatchNamespaceScriptTagListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[string]
Fetch tags from a script uploaded to a Workers for Platforms namespace.
func (*DispatchNamespaceScriptTagService) Update ¶
func (r *DispatchNamespaceScriptTagService) Update(ctx context.Context, dispatchNamespace string, scriptName string, params DispatchNamespaceScriptTagUpdateParams, opts ...option.RequestOption) (res *[]string, err error)
Put script tags for a script uploaded to a Workers for Platforms namespace.
type DispatchNamespaceScriptTagUpdateParams ¶
type DispatchNamespaceScriptTagUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // Tags to help you manage your Workers Body []string `json:"body,required"` }
func (DispatchNamespaceScriptTagUpdateParams) MarshalJSON ¶
func (r DispatchNamespaceScriptTagUpdateParams) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptTagUpdateResponseEnvelope ¶
type DispatchNamespaceScriptTagUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess `json:"success,required"` Result []string `json:"result"` JSON dispatchNamespaceScriptTagUpdateResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptTagUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptTagUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccessTrue DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptTagUpdateResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptUpdateParams ¶
type DispatchNamespaceScriptUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // JSON encoded metadata about the uploaded parts and Worker configuration. Metadata param.Field[DispatchNamespaceScriptUpdateParamsMetadata] `json:"metadata,required"` }
func (DispatchNamespaceScriptUpdateParams) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParams) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadata ¶
type DispatchNamespaceScriptUpdateParamsMetadata struct { // Configuration for assets within a Worker Assets param.Field[DispatchNamespaceScriptUpdateParamsMetadataAssets] `json:"assets"` // List of bindings attached to a Worker. You can find more about bindings on our // docs: // https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. Bindings param.Field[[]DispatchNamespaceScriptUpdateParamsMetadataBindingUnion] `json:"bindings"` // Name of the part in the multipart request that contains the script (e.g. the // file adding a listener to the `fetch` event). Indicates a // `service worker syntax` Worker. BodyPart param.Field[string] `json:"body_part"` // Date indicating targeted support in the Workers runtime. Backwards incompatible // fixes to the runtime following this date will not affect this Worker. CompatibilityDate param.Field[string] `json:"compatibility_date"` // Flags that enable or disable certain features in the Workers runtime. Used to // enable upcoming features or opt in or out of specific changes not included in a // `compatibility_date`. CompatibilityFlags param.Field[[]string] `json:"compatibility_flags"` // Retain assets which exist for a previously uploaded Worker version; used in lieu // of providing a completion token. KeepAssets param.Field[bool] `json:"keep_assets"` // List of binding types to keep from previous_upload. KeepBindings param.Field[[]string] `json:"keep_bindings"` // Whether Logpush is turned on for the Worker. Logpush param.Field[bool] `json:"logpush"` // Name of the part in the multipart request that contains the main module (e.g. // the file exporting a `fetch` handler). Indicates a `module syntax` Worker. MainModule param.Field[string] `json:"main_module"` // Migrations to apply for Durable Objects associated with this Worker. Migrations param.Field[DispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion] `json:"migrations"` // Observability settings for the Worker. Observability param.Field[DispatchNamespaceScriptUpdateParamsMetadataObservability] `json:"observability"` // Configuration for // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Placement param.Field[DispatchNamespaceScriptUpdateParamsMetadataPlacement] `json:"placement"` // List of strings to use as tags for this Worker. Tags param.Field[[]string] `json:"tags"` // List of Workers that will consume logs from the attached Worker. TailConsumers param.Field[[]workers.ConsumerScriptParam] `json:"tail_consumers"` // Usage model for the Worker invocations. UsageModel param.Field[DispatchNamespaceScriptUpdateParamsMetadataUsageModel] `json:"usage_model"` }
JSON encoded metadata about the uploaded parts and Worker configuration.
func (DispatchNamespaceScriptUpdateParamsMetadata) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadata) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataAssets ¶
type DispatchNamespaceScriptUpdateParamsMetadataAssets struct { // Configuration for assets within a Worker. Config param.Field[DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig] `json:"config"` // Token provided upon successful upload of all files from a registered manifest. JWT param.Field[string] `json:"jwt"` }
Configuration for assets within a Worker
func (DispatchNamespaceScriptUpdateParamsMetadataAssets) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataAssets) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig ¶
type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig struct { // Determines the redirects and rewrites of requests for HTML content. HTMLHandling param.Field[DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling] `json:"html_handling"` // Determines the response when a request does not match a static asset, and there // is no Worker script. NotFoundHandling param.Field[DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling] `json:"not_found_handling"` // When true and the incoming request matches an asset, that will be served instead // of invoking the Worker script. When false, requests will always invoke the // Worker script. ServeDirectly param.Field[bool] `json:"serve_directly"` }
Configuration for assets within a Worker.
func (DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataAssetsConfig) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling ¶
type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling string
Determines the redirects and rewrites of requests for HTML content.
const ( DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingAutoTrailingSlash DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "auto-trailing-slash" DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingForceTrailingSlash DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "force-trailing-slash" DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingDropTrailingSlash DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "drop-trailing-slash" DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandlingNone DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling = "none" )
func (DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigHTMLHandling) IsKnown() bool
type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling ¶
type DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling string
Determines the response when a request does not match a static asset, and there is no Worker script.
const ( DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandlingNone DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "none" DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling404Page DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "404-page" DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandlingSinglePageApplication DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling = "single-page-application" )
func (DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataAssetsConfigNotFoundHandling) IsKnown() bool
type DispatchNamespaceScriptUpdateParamsMetadataBinding ¶
type DispatchNamespaceScriptUpdateParamsMetadataBinding struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[string] `json:"type,required"` // Identifier of the D1 database to bind to. ID param.Field[string] `json:"id"` // R2 bucket to bind to. BucketName param.Field[string] `json:"bucket_name"` // Identifier of the certificate to bind to. CertificateID param.Field[string] `json:"certificate_id"` // The exported class name of the Durable Object. ClassName param.Field[string] `json:"class_name"` // The dataset name to bind to. Dataset param.Field[string] `json:"dataset"` // The environment of the script_name to bind to. Environment param.Field[string] `json:"environment"` // Name of the Vectorize index to bind to. IndexName param.Field[string] `json:"index_name"` // JSON data to use. Json param.Field[string] `json:"json"` // Namespace to bind to. Namespace param.Field[string] `json:"namespace"` // Namespace identifier tag. NamespaceID param.Field[string] `json:"namespace_id"` Outbound param.Field[interface{}] `json:"outbound"` // Name of the Queue to bind to. QueueName param.Field[string] `json:"queue_name"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName param.Field[string] `json:"script_name"` // Name of Worker to bind to. Service param.Field[string] `json:"service"` // The text value to use. Text param.Field[string] `json:"text"` }
A binding to allow the Worker to communicate with resources
func (DispatchNamespaceScriptUpdateParamsMetadataBinding) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBinding) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingUnion ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingUnion interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Satisfied by workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata, DispatchNamespaceScriptUpdateParamsMetadataBinding.
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAI) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAITypeAI DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType = "ai"
)
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAIType) IsKnown() bool
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine struct { // The dataset name to bind to. Dataset param.Field[string] `json:"dataset,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngine) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineTypeAnalyticsEngine DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAnalyticsEngineType = "analytics_engine"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[string] `json:"type,required"` ExtraFields map[string]interface{} `json:"-,extras"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAny) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssets) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsTypeAssets DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindAssetsType = "assets"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRendering) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingTypeBrowserRendering DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindBrowserRenderingType = "browser_rendering"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1 ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1 struct { // Identifier of the D1 database to bind to. ID param.Field[string] `json:"id,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1TypeD1 DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type = "d1"
)
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindD1Type) IsKnown() bool
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Namespace to bind to. Namespace param.Field[string] `json:"namespace,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType] `json:"type,required"` // Outbound worker. Outbound param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound] `json:"outbound"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespace) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters. Params param.Field[[]string] `json:"params"` // Outbound worker. Worker param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker] `json:"worker"` }
Outbound worker.
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutbound) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker struct { // Environment of the outbound worker. Environment param.Field[string] `json:"environment"` // Name of the outbound worker. Service param.Field[string] `json:"service"` }
Outbound worker.
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceOutboundWorker) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceTypeDispatchNamespace DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDispatchNamespaceType = "dispatch_namespace"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo struct { // The exported class name of the Durable Object. ClassName param.Field[string] `json:"class_name,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType] `json:"type,required"` // The environment of the script_name to bind to. Environment param.Field[string] `json:"environment"` // Namespace identifier tag. NamespaceID param.Field[string] `json:"namespace_id"` // The script where the Durable Object is defined, if it is external to this // Worker. ScriptName param.Field[string] `json:"script_name"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDo) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoTypeDurableObjectNamespace DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType = "durable_object_namespace"
)
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindDoType) IsKnown() bool
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive struct { // Identifier of the Hyperdrive connection to bind to. ID param.Field[string] `json:"id,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdrive) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveTypeHyperdrive DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindHyperdriveType = "hyperdrive"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson struct { // JSON data to use. Json param.Field[string] `json:"json,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJson) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonTypeJson DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindJsonType = "json"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Namespace identifier tag. NamespaceID param.Field[string] `json:"namespace_id,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespace) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceTypeKVNamespace DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindKVNamespaceType = "kv_namespace"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT struct { // Identifier of the certificate to bind to. CertificateID param.Field[string] `json:"certificate_id,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERT) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTTypeMTLSCertificate DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindMTLSCERTType = "mtls_certificate"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The text value to use. Text param.Field[string] `json:"text,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainText) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextTypePlainText DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindPlainTextType = "plain_text"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Name of the Queue to bind to. QueueName param.Field[string] `json:"queue_name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueue) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueTypeQueue DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindQueueType = "queue"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2 ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2 struct { // R2 bucket to bind to. BucketName param.Field[string] `json:"bucket_name,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2TypeR2Bucket DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type = "r2_bucket"
)
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindR2Type) IsKnown() bool
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The secret value to use. Text param.Field[string] `json:"text,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecret) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretTypeSecretText DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindSecretType = "secret_text"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService struct { // Optional environment if the Worker utilizes one. Environment param.Field[string] `json:"environment,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Name of Worker to bind to. Service param.Field[string] `json:"service,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindService) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceTypeService DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindServiceType = "service"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // Name of Tail Worker to bind to. Service param.Field[string] `json:"service,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumer) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerTypeTailConsumer DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindTailConsumerType = "tail_consumer"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize struct { // Name of the Vectorize index to bind to. IndexName param.Field[string] `json:"index_name,required"` // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorize) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeTypeVectorize DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVectorizeType = "vectorize"
)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata struct { // A JavaScript variable name for the binding. Name param.Field[string] `json:"name,required"` // The kind of resource that the binding provides. Type param.Field[DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType] `json:"type,required"` }
func (DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadata) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType ¶
type DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType string
The kind of resource that the binding provides.
const (
DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataTypeVersionMetadata DispatchNamespaceScriptUpdateParamsMetadataBindingsWorkersBindingKindVersionMetadataType = "version_metadata"
)
type DispatchNamespaceScriptUpdateParamsMetadataMigrations ¶
type DispatchNamespaceScriptUpdateParamsMetadataMigrations struct { DeletedClasses param.Field[interface{}] `json:"deleted_classes"` NewClasses param.Field[interface{}] `json:"new_classes"` NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes"` // Tag to set as the latest migration tag. NewTag param.Field[string] `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. OldTag param.Field[string] `json:"old_tag"` RenamedClasses param.Field[interface{}] `json:"renamed_classes"` Steps param.Field[interface{}] `json:"steps"` TransferredClasses param.Field[interface{}] `json:"transferred_classes"` }
Migrations to apply for Durable Objects associated with this Worker.
func (DispatchNamespaceScriptUpdateParamsMetadataMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion()
func (DispatchNamespaceScriptUpdateParamsMetadataMigrations) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataMigrations) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion ¶
type DispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion interface {
ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion()
}
Migrations to apply for Durable Objects associated with this Worker.
Satisfied by workers.SingleStepMigrationParam, workers_for_platforms.DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations, DispatchNamespaceScriptUpdateParamsMetadataMigrations.
type DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations ¶
type DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations struct { // Tag to set as the latest migration tag. NewTag param.Field[string] `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. OldTag param.Field[string] `json:"old_tag"` // Migrations to apply in order. Steps param.Field[[]workers.MigrationStepParam] `json:"steps"` }
func (DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) ImplementsWorkersForPlatformsDispatchNamespaceScriptUpdateParamsMetadataMigrationsUnion()
func (DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataMigrationsWorkersMultipleStepMigrations) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataObservability ¶
type DispatchNamespaceScriptUpdateParamsMetadataObservability struct { // Whether observability is enabled for the Worker. Enabled param.Field[bool] `json:"enabled,required"` // The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). // Default is 1. HeadSamplingRate param.Field[float64] `json:"head_sampling_rate"` }
Observability settings for the Worker.
func (DispatchNamespaceScriptUpdateParamsMetadataObservability) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataObservability) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataPlacement ¶
type DispatchNamespaceScriptUpdateParamsMetadataPlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Mode param.Field[DispatchNamespaceScriptUpdateParamsMetadataPlacementMode] `json:"mode"` }
Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
func (DispatchNamespaceScriptUpdateParamsMetadataPlacement) MarshalJSON ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataPlacement) MarshalJSON() (data []byte, err error)
type DispatchNamespaceScriptUpdateParamsMetadataPlacementMode ¶
type DispatchNamespaceScriptUpdateParamsMetadataPlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
const (
DispatchNamespaceScriptUpdateParamsMetadataPlacementModeSmart DispatchNamespaceScriptUpdateParamsMetadataPlacementMode = "smart"
)
func (DispatchNamespaceScriptUpdateParamsMetadataPlacementMode) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataPlacementMode) IsKnown() bool
type DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus ¶
type DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus string
Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
const ( DispatchNamespaceScriptUpdateParamsMetadataPlacementStatusSuccess DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus = "SUCCESS" DispatchNamespaceScriptUpdateParamsMetadataPlacementStatusUnsupportedApplication DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus = "UNSUPPORTED_APPLICATION" DispatchNamespaceScriptUpdateParamsMetadataPlacementStatusInsufficientInvocations DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus = "INSUFFICIENT_INVOCATIONS" )
func (DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataPlacementStatus) IsKnown() bool
type DispatchNamespaceScriptUpdateParamsMetadataUsageModel ¶
type DispatchNamespaceScriptUpdateParamsMetadataUsageModel string
Usage model for the Worker invocations.
const (
DispatchNamespaceScriptUpdateParamsMetadataUsageModelStandard DispatchNamespaceScriptUpdateParamsMetadataUsageModel = "standard"
)
func (DispatchNamespaceScriptUpdateParamsMetadataUsageModel) IsKnown ¶
func (r DispatchNamespaceScriptUpdateParamsMetadataUsageModel) IsKnown() bool
type DispatchNamespaceScriptUpdateResponse ¶
type DispatchNamespaceScriptUpdateResponse struct { // The id of the script in the Workers system. Usually the script name. ID string `json:"id"` // When the script was created. CreatedOn time.Time `json:"created_on" format:"date-time"` // Hashed script content, can be used in a If-None-Match header when updating. Etag string `json:"etag"` // Whether a Worker contains assets. HasAssets bool `json:"has_assets"` // Whether a Worker contains modules. HasModules bool `json:"has_modules"` // Whether Logpush is turned on for the Worker. Logpush bool `json:"logpush"` // When the script was last modified. ModifiedOn time.Time `json:"modified_on" format:"date-time"` // Configuration for // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Placement DispatchNamespaceScriptUpdateResponsePlacement `json:"placement"` // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). PlacementMode DispatchNamespaceScriptUpdateResponsePlacementMode `json:"placement_mode"` // Status of // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). PlacementStatus DispatchNamespaceScriptUpdateResponsePlacementStatus `json:"placement_status"` StartupTimeMs int64 `json:"startup_time_ms"` // List of Workers that will consume logs from the attached Worker. TailConsumers []workers.ConsumerScript `json:"tail_consumers"` // Usage model for the Worker invocations. UsageModel DispatchNamespaceScriptUpdateResponseUsageModel `json:"usage_model"` JSON dispatchNamespaceScriptUpdateResponseJSON `json:"-"` }
func (*DispatchNamespaceScriptUpdateResponse) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptUpdateResponse) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptUpdateResponseEnvelope ¶
type DispatchNamespaceScriptUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` // Whether the API call was successful Success DispatchNamespaceScriptUpdateResponseEnvelopeSuccess `json:"success,required"` Result DispatchNamespaceScriptUpdateResponse `json:"result"` JSON dispatchNamespaceScriptUpdateResponseEnvelopeJSON `json:"-"` }
func (*DispatchNamespaceScriptUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptUpdateResponseEnvelopeSuccess ¶
type DispatchNamespaceScriptUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DispatchNamespaceScriptUpdateResponseEnvelopeSuccessTrue DispatchNamespaceScriptUpdateResponseEnvelopeSuccess = true
)
func (DispatchNamespaceScriptUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r DispatchNamespaceScriptUpdateResponseEnvelopeSuccess) IsKnown() bool
type DispatchNamespaceScriptUpdateResponsePlacement ¶
type DispatchNamespaceScriptUpdateResponsePlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Mode DispatchNamespaceScriptUpdateResponsePlacementMode `json:"mode"` // Status of // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Status DispatchNamespaceScriptUpdateResponsePlacementStatus `json:"status"` JSON dispatchNamespaceScriptUpdateResponsePlacementJSON `json:"-"` }
Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
func (*DispatchNamespaceScriptUpdateResponsePlacement) UnmarshalJSON ¶
func (r *DispatchNamespaceScriptUpdateResponsePlacement) UnmarshalJSON(data []byte) (err error)
type DispatchNamespaceScriptUpdateResponsePlacementMode ¶
type DispatchNamespaceScriptUpdateResponsePlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
const (
DispatchNamespaceScriptUpdateResponsePlacementModeSmart DispatchNamespaceScriptUpdateResponsePlacementMode = "smart"
)
func (DispatchNamespaceScriptUpdateResponsePlacementMode) IsKnown ¶
func (r DispatchNamespaceScriptUpdateResponsePlacementMode) IsKnown() bool
type DispatchNamespaceScriptUpdateResponsePlacementStatus ¶
type DispatchNamespaceScriptUpdateResponsePlacementStatus string
Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
const ( DispatchNamespaceScriptUpdateResponsePlacementStatusSuccess DispatchNamespaceScriptUpdateResponsePlacementStatus = "SUCCESS" DispatchNamespaceScriptUpdateResponsePlacementStatusUnsupportedApplication DispatchNamespaceScriptUpdateResponsePlacementStatus = "UNSUPPORTED_APPLICATION" DispatchNamespaceScriptUpdateResponsePlacementStatusInsufficientInvocations DispatchNamespaceScriptUpdateResponsePlacementStatus = "INSUFFICIENT_INVOCATIONS" )
func (DispatchNamespaceScriptUpdateResponsePlacementStatus) IsKnown ¶
func (r DispatchNamespaceScriptUpdateResponsePlacementStatus) IsKnown() bool
type DispatchNamespaceScriptUpdateResponseUsageModel ¶
type DispatchNamespaceScriptUpdateResponseUsageModel string
Usage model for the Worker invocations.
const (
DispatchNamespaceScriptUpdateResponseUsageModelStandard DispatchNamespaceScriptUpdateResponseUsageModel = "standard"
)
func (DispatchNamespaceScriptUpdateResponseUsageModel) IsKnown ¶
func (r DispatchNamespaceScriptUpdateResponseUsageModel) IsKnown() bool
type DispatchNamespaceService ¶
type DispatchNamespaceService struct { Options []option.RequestOption Scripts *DispatchNamespaceScriptService }
DispatchNamespaceService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchNamespaceService method instead.
func NewDispatchNamespaceService ¶
func NewDispatchNamespaceService(opts ...option.RequestOption) (r *DispatchNamespaceService)
NewDispatchNamespaceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DispatchNamespaceService) Delete ¶
func (r *DispatchNamespaceService) Delete(ctx context.Context, dispatchNamespace string, body DispatchNamespaceDeleteParams, opts ...option.RequestOption) (res *DispatchNamespaceDeleteResponse, err error)
Delete a Workers for Platforms namespace.
func (*DispatchNamespaceService) Get ¶
func (r *DispatchNamespaceService) Get(ctx context.Context, dispatchNamespace string, query DispatchNamespaceGetParams, opts ...option.RequestOption) (res *DispatchNamespaceGetResponse, err error)
Get a Workers for Platforms namespace.
func (*DispatchNamespaceService) List ¶
func (r *DispatchNamespaceService) List(ctx context.Context, query DispatchNamespaceListParams, opts ...option.RequestOption) (res *pagination.SinglePage[DispatchNamespaceListResponse], err error)
Fetch a list of Workers for Platforms namespaces.
func (*DispatchNamespaceService) ListAutoPaging ¶
func (r *DispatchNamespaceService) ListAutoPaging(ctx context.Context, query DispatchNamespaceListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[DispatchNamespaceListResponse]
Fetch a list of Workers for Platforms namespaces.
func (*DispatchNamespaceService) New ¶
func (r *DispatchNamespaceService) New(ctx context.Context, params DispatchNamespaceNewParams, opts ...option.RequestOption) (res *DispatchNamespaceNewResponse, err error)
Create a new Workers for Platforms namespace.
type DispatchService ¶
type DispatchService struct { Options []option.RequestOption Namespaces *DispatchNamespaceService }
DispatchService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDispatchService method instead.
func NewDispatchService ¶
func NewDispatchService(opts ...option.RequestOption) (r *DispatchService)
NewDispatchService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type MemberPoliciesAccess ¶
type MemberPoliciesAccess = shared.MemberPoliciesAccess
Allow or deny operations against the resources.
This is an alias to an internal type.
type MemberPoliciesPermissionGroup ¶
type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type MemberPoliciesPermissionGroupsMeta ¶
type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type MemberPoliciesResourceGroup ¶
type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup
A group of scoped resources.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsMeta ¶
type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta
Attributes associated to the resource group.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsScope ¶
type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope
A scope is a combination of scope objects which provides additional context.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsScopeObject ¶
type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject
A scope object represents any resource that can have actions applied against invite.
This is an alias to an internal type.
type MemberStatus ¶
type MemberStatus = shared.MemberStatus
A member's status in the account.
This is an alias to an internal type.
type MemberUser ¶
type MemberUser = shared.MemberUser
Details of the user associated to the membership.
This is an alias to an internal type.
type PermissionGrant ¶
type PermissionGrant = shared.PermissionGrant
This is an alias to an internal type.
type PermissionGrantParam ¶
type PermissionGrantParam = shared.PermissionGrantParam
This is an alias to an internal type.
type RatePlanParam ¶
type RatePlanParam = shared.RatePlanParam
The rate plan applied to the subscription.
This is an alias to an internal type.
type RolePermissions ¶
type RolePermissions = shared.RolePermissions
This is an alias to an internal type.
type RolePermissionsParam ¶
type RolePermissionsParam = shared.RolePermissionsParam
This is an alias to an internal type.
type Script ¶
type Script struct { // When the script was created. CreatedOn time.Time `json:"created_on" format:"date-time"` // Name of the Workers for Platforms dispatch namespace. DispatchNamespace string `json:"dispatch_namespace"` // When the script was last modified. ModifiedOn time.Time `json:"modified_on" format:"date-time"` Script workers.Script `json:"script"` JSON scriptJSON `json:"-"` }
Details about a worker uploaded to a Workers for Platforms namespace.
func (*Script) UnmarshalJSON ¶
type SortDirection ¶
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
type SubscriptionFrequency ¶
type SubscriptionFrequency = shared.SubscriptionFrequency
How often the subscription is renewed automatically.
This is an alias to an internal type.
type SubscriptionParam ¶
type SubscriptionParam = shared.SubscriptionParam
This is an alias to an internal type.
type SubscriptionState ¶
type SubscriptionState = shared.SubscriptionState
The state that the subscription is in.
This is an alias to an internal type.
type TokenCondition ¶
type TokenCondition = shared.TokenCondition
This is an alias to an internal type.
type TokenConditionCIDRList ¶
type TokenConditionCIDRList = shared.TokenConditionCIDRList
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionCIDRListParam ¶
type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionParam ¶
type TokenConditionParam = shared.TokenConditionParam
This is an alias to an internal type.
type TokenConditionRequestIP ¶
type TokenConditionRequestIP = shared.TokenConditionRequestIP
Client IP restrictions.
This is an alias to an internal type.
type TokenConditionRequestIPParam ¶
type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
Client IP restrictions.
This is an alias to an internal type.
type TokenPolicyEffect ¶
type TokenPolicyEffect = shared.TokenPolicyEffect
Allow or deny operations against the resources.
This is an alias to an internal type.
type TokenPolicyParam ¶
type TokenPolicyParam = shared.TokenPolicyParam
This is an alias to an internal type.
type TokenPolicyPermissionGroup ¶
type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupParam ¶
type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta ¶
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam ¶
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenStatus ¶
type TokenStatus = shared.TokenStatus
Status of the token.
This is an alias to an internal type.
type TokenValue ¶
type TokenValue = shared.TokenValue
The token value.
This is an alias to an internal type.
type WorkersForPlatformService ¶
type WorkersForPlatformService struct { Options []option.RequestOption Dispatch *DispatchService }
WorkersForPlatformService contains methods and other services that help with interacting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewWorkersForPlatformService method instead.
func NewWorkersForPlatformService ¶
func NewWorkersForPlatformService(opts ...option.RequestOption) (r *WorkersForPlatformService)
NewWorkersForPlatformService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type WorkersSecretModelParam ¶
type WorkersSecretModelParam struct { // The name of this secret, this is what will be used to access it inside the // Worker. Name param.Field[string] `json:"name"` // The value of the secret. Text param.Field[string] `json:"text"` // The type of secret to put. Type param.Field[WorkersSecretModelType] `json:"type"` }
func (WorkersSecretModelParam) MarshalJSON ¶
func (r WorkersSecretModelParam) MarshalJSON() (data []byte, err error)
type WorkersSecretModelType ¶
type WorkersSecretModelType string
The type of secret to put.
const (
WorkersSecretModelTypeSecretText WorkersSecretModelType = "secret_text"
)
func (WorkersSecretModelType) IsKnown ¶
func (r WorkersSecretModelType) IsKnown() bool