Documentation ¶
Index ¶
- type AIRunParams
- type AIRunResponse
- type AIRunResponseEnvelope
- type AIRunResponseEnvelopeErrors
- type AIService
- type AccountSettingGetParams
- type AccountSettingGetResponse
- type AccountSettingGetResponseEnvelope
- type AccountSettingGetResponseEnvelopeErrors
- type AccountSettingGetResponseEnvelopeMessages
- type AccountSettingGetResponseEnvelopeSuccess
- type AccountSettingService
- type AccountSettingUpdateParams
- type AccountSettingUpdateResponse
- type AccountSettingUpdateResponseEnvelope
- type AccountSettingUpdateResponseEnvelopeErrors
- type AccountSettingUpdateResponseEnvelopeMessages
- type AccountSettingUpdateResponseEnvelopeSuccess
- type DeploymentByScriptDetailGetParams
- type DeploymentByScriptDetailGetResponse
- type DeploymentByScriptDetailGetResponseEnvelope
- type DeploymentByScriptDetailGetResponseEnvelopeErrors
- type DeploymentByScriptDetailGetResponseEnvelopeMessages
- type DeploymentByScriptDetailGetResponseEnvelopeSuccess
- type DeploymentByScriptDetailService
- type DeploymentByScriptGetParams
- type DeploymentByScriptGetResponse
- type DeploymentByScriptGetResponseEnvelope
- type DeploymentByScriptGetResponseEnvelopeErrors
- type DeploymentByScriptGetResponseEnvelopeMessages
- type DeploymentByScriptGetResponseEnvelopeSuccess
- type DeploymentByScriptService
- type DeploymentService
- type DomainDeleteParams
- type DomainGetParams
- type DomainGetResponseEnvelope
- type DomainGetResponseEnvelopeErrors
- type DomainGetResponseEnvelopeMessages
- type DomainGetResponseEnvelopeSuccess
- type DomainListParams
- type DomainListResponseEnvelope
- type DomainListResponseEnvelopeErrors
- type DomainListResponseEnvelopeMessages
- type DomainListResponseEnvelopeSuccess
- type DomainService
- func (r *DomainService) Delete(ctx context.Context, domainID interface{}, body DomainDeleteParams, ...) (err error)
- func (r *DomainService) Get(ctx context.Context, domainID interface{}, query DomainGetParams, ...) (res *WorkersDomain, err error)
- func (r *DomainService) List(ctx context.Context, params DomainListParams, opts ...option.RequestOption) (res *[]WorkersDomain, err error)
- func (r *DomainService) Update(ctx context.Context, params DomainUpdateParams, opts ...option.RequestOption) (res *WorkersDomain, err error)
- type DomainUpdateParams
- type DomainUpdateResponseEnvelope
- type DomainUpdateResponseEnvelopeErrors
- type DomainUpdateResponseEnvelopeMessages
- type DomainUpdateResponseEnvelopeSuccess
- type Error
- type FilterDeleteParams
- type FilterDeleteResponse
- type FilterDeleteResponseEnvelope
- type FilterDeleteResponseEnvelopeErrors
- type FilterDeleteResponseEnvelopeMessages
- type FilterDeleteResponseEnvelopeSuccess
- type FilterListParams
- type FilterListResponseEnvelope
- type FilterListResponseEnvelopeErrors
- type FilterListResponseEnvelopeMessages
- type FilterListResponseEnvelopeSuccess
- type FilterNewParams
- type FilterNewResponse
- type FilterNewResponseEnvelope
- type FilterNewResponseEnvelopeErrors
- type FilterNewResponseEnvelopeMessages
- type FilterNewResponseEnvelopeSuccess
- type FilterService
- func (r *FilterService) Delete(ctx context.Context, filterID string, body FilterDeleteParams, ...) (res *FilterDeleteResponse, err error)
- func (r *FilterService) List(ctx context.Context, query FilterListParams, opts ...option.RequestOption) (res *[]WorkersFilters, err error)
- func (r *FilterService) New(ctx context.Context, params FilterNewParams, opts ...option.RequestOption) (res *FilterNewResponse, err error)
- func (r *FilterService) Update(ctx context.Context, filterID string, params FilterUpdateParams, ...) (res *WorkersFilters, err error)
- type FilterUpdateParams
- type FilterUpdateResponseEnvelope
- type FilterUpdateResponseEnvelopeErrors
- type FilterUpdateResponseEnvelopeMessages
- type FilterUpdateResponseEnvelopeSuccess
- type RouteDeleteParams
- type RouteDeleteResponse
- type RouteDeleteResponseEnvelope
- type RouteDeleteResponseEnvelopeErrors
- type RouteDeleteResponseEnvelopeMessages
- type RouteDeleteResponseEnvelopeSuccess
- type RouteGetParams
- type RouteGetResponseEnvelope
- type RouteGetResponseEnvelopeErrors
- type RouteGetResponseEnvelopeMessages
- type RouteGetResponseEnvelopeSuccess
- type RouteListParams
- type RouteListResponseEnvelope
- type RouteListResponseEnvelopeErrors
- type RouteListResponseEnvelopeMessages
- type RouteListResponseEnvelopeSuccess
- type RouteNewParams
- type RouteNewResponse
- type RouteNewResponseEnvelope
- type RouteNewResponseEnvelopeErrors
- type RouteNewResponseEnvelopeMessages
- type RouteNewResponseEnvelopeSuccess
- type RouteService
- func (r *RouteService) Delete(ctx context.Context, routeID string, body RouteDeleteParams, ...) (res *RouteDeleteResponse, err error)
- func (r *RouteService) Get(ctx context.Context, routeID string, query RouteGetParams, ...) (res *WorkersRoutes, err error)
- func (r *RouteService) List(ctx context.Context, query RouteListParams, opts ...option.RequestOption) (res *[]WorkersRoutes, err error)
- func (r *RouteService) New(ctx context.Context, params RouteNewParams, opts ...option.RequestOption) (res *RouteNewResponse, err error)
- func (r *RouteService) Update(ctx context.Context, routeID string, params RouteUpdateParams, ...) (res *WorkersRoutes, err error)
- type RouteUpdateParams
- type RouteUpdateResponseEnvelope
- type RouteUpdateResponseEnvelopeErrors
- type RouteUpdateResponseEnvelopeMessages
- type RouteUpdateResponseEnvelopeSuccess
- type ScriptBindingGetParams
- type ScriptBindingGetResponseEnvelope
- type ScriptBindingGetResponseEnvelopeErrors
- type ScriptBindingGetResponseEnvelopeMessages
- type ScriptBindingGetResponseEnvelopeSuccess
- type ScriptBindingService
- type ScriptContentService
- type ScriptContentUpdateParams
- type ScriptContentUpdateParamsMetadata
- type ScriptContentUpdateResponseEnvelope
- type ScriptContentUpdateResponseEnvelopeErrors
- type ScriptContentUpdateResponseEnvelopeMessages
- type ScriptContentUpdateResponseEnvelopeSuccess
- type ScriptContentV2GetParams
- type ScriptContentV2Service
- type ScriptDeleteParams
- type ScriptGetParams
- type ScriptListParams
- type ScriptListResponseEnvelope
- type ScriptListResponseEnvelopeErrors
- type ScriptListResponseEnvelopeMessages
- type ScriptListResponseEnvelopeSuccess
- type ScriptScheduleGetParams
- type ScriptScheduleGetResponse
- type ScriptScheduleGetResponseEnvelope
- type ScriptScheduleGetResponseEnvelopeErrors
- type ScriptScheduleGetResponseEnvelopeMessages
- type ScriptScheduleGetResponseEnvelopeSuccess
- type ScriptScheduleGetResponseSchedule
- type ScriptScheduleService
- func (r *ScriptScheduleService) Get(ctx context.Context, scriptName string, query ScriptScheduleGetParams, ...) (res *ScriptScheduleGetResponse, err error)
- func (r *ScriptScheduleService) Update(ctx context.Context, scriptName string, params ScriptScheduleUpdateParams, ...) (res *ScriptScheduleUpdateResponse, err error)
- type ScriptScheduleUpdateParams
- type ScriptScheduleUpdateResponse
- type ScriptScheduleUpdateResponseEnvelope
- type ScriptScheduleUpdateResponseEnvelopeErrors
- type ScriptScheduleUpdateResponseEnvelopeMessages
- type ScriptScheduleUpdateResponseEnvelopeSuccess
- type ScriptScheduleUpdateResponseSchedule
- type ScriptService
- func (r *ScriptService) Delete(ctx context.Context, scriptName string, params ScriptDeleteParams, ...) (err error)
- func (r *ScriptService) Get(ctx context.Context, scriptName string, query ScriptGetParams, ...) (res *http.Response, err error)
- func (r *ScriptService) List(ctx context.Context, query ScriptListParams, opts ...option.RequestOption) (res *[]WorkersScript, err error)
- func (r *ScriptService) Update(ctx context.Context, scriptName string, params ScriptUpdateParams, ...) (res *WorkersScript, err error)
- type ScriptSettingEditParams
- type ScriptSettingEditParamsSettings
- type ScriptSettingEditParamsSettingsError
- type ScriptSettingEditParamsSettingsMessage
- type ScriptSettingEditParamsSettingsResult
- type ScriptSettingEditParamsSettingsResultBinding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersD1Binding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersD1BindingType
- type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBinding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutbound
- type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker
- type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingType
- type ScriptSettingEditParamsSettingsResultBindingsWorkersDoBinding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersDoBindingType
- type ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBinding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBindingType
- type ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBinding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBindingType
- type ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBinding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBindingType
- type ScriptSettingEditParamsSettingsResultBindingsWorkersR2Binding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersR2BindingType
- type ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBinding
- type ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBindingType
- type ScriptSettingEditParamsSettingsResultMigrations
- type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrations
- type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsRenamedClass
- type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsTransferredClass
- type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrations
- type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStep
- type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass
- type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass
- type ScriptSettingEditParamsSettingsResultPlacement
- type ScriptSettingEditParamsSettingsResultPlacementMode
- type ScriptSettingEditParamsSettingsResultTailConsumer
- type ScriptSettingEditParamsSettingsSuccess
- type ScriptSettingEditResponse
- type ScriptSettingEditResponseBinding
- type ScriptSettingEditResponseBindingsWorkersD1Binding
- type ScriptSettingEditResponseBindingsWorkersD1BindingType
- type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBinding
- type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound
- type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker
- type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingType
- type ScriptSettingEditResponseBindingsWorkersDoBinding
- type ScriptSettingEditResponseBindingsWorkersDoBindingType
- type ScriptSettingEditResponseBindingsWorkersKVNamespaceBinding
- type ScriptSettingEditResponseBindingsWorkersKVNamespaceBindingType
- type ScriptSettingEditResponseBindingsWorkersMTLSCertBinding
- type ScriptSettingEditResponseBindingsWorkersMTLSCertBindingType
- type ScriptSettingEditResponseBindingsWorkersQueueBinding
- type ScriptSettingEditResponseBindingsWorkersQueueBindingType
- type ScriptSettingEditResponseBindingsWorkersR2Binding
- type ScriptSettingEditResponseBindingsWorkersR2BindingType
- type ScriptSettingEditResponseBindingsWorkersServiceBinding
- type ScriptSettingEditResponseBindingsWorkersServiceBindingType
- type ScriptSettingEditResponseEnvelope
- type ScriptSettingEditResponseEnvelopeErrors
- type ScriptSettingEditResponseEnvelopeMessages
- type ScriptSettingEditResponseEnvelopeSuccess
- type ScriptSettingEditResponseMigrations
- type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrations
- type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass
- type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass
- type ScriptSettingEditResponseMigrationsWorkersSteppedMigrations
- type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStep
- type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass
- type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass
- type ScriptSettingEditResponsePlacement
- type ScriptSettingEditResponsePlacementMode
- type ScriptSettingEditResponseTailConsumer
- type ScriptSettingGetParams
- type ScriptSettingGetResponse
- type ScriptSettingGetResponseBinding
- type ScriptSettingGetResponseBindingsWorkersD1Binding
- type ScriptSettingGetResponseBindingsWorkersD1BindingType
- type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBinding
- type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound
- type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker
- type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingType
- type ScriptSettingGetResponseBindingsWorkersDoBinding
- type ScriptSettingGetResponseBindingsWorkersDoBindingType
- type ScriptSettingGetResponseBindingsWorkersKVNamespaceBinding
- type ScriptSettingGetResponseBindingsWorkersKVNamespaceBindingType
- type ScriptSettingGetResponseBindingsWorkersMTLSCertBinding
- type ScriptSettingGetResponseBindingsWorkersMTLSCertBindingType
- type ScriptSettingGetResponseBindingsWorkersQueueBinding
- type ScriptSettingGetResponseBindingsWorkersQueueBindingType
- type ScriptSettingGetResponseBindingsWorkersR2Binding
- type ScriptSettingGetResponseBindingsWorkersR2BindingType
- type ScriptSettingGetResponseBindingsWorkersServiceBinding
- type ScriptSettingGetResponseBindingsWorkersServiceBindingType
- type ScriptSettingGetResponseEnvelope
- type ScriptSettingGetResponseEnvelopeErrors
- type ScriptSettingGetResponseEnvelopeMessages
- type ScriptSettingGetResponseEnvelopeSuccess
- type ScriptSettingGetResponseMigrations
- type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrations
- type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass
- type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass
- type ScriptSettingGetResponseMigrationsWorkersSteppedMigrations
- type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStep
- type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass
- type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass
- type ScriptSettingGetResponsePlacement
- type ScriptSettingGetResponsePlacementMode
- type ScriptSettingGetResponseTailConsumer
- type ScriptSettingService
- func (r *ScriptSettingService) Edit(ctx context.Context, scriptName string, params ScriptSettingEditParams, ...) (res *ScriptSettingEditResponse, err error)
- func (r *ScriptSettingService) Get(ctx context.Context, scriptName string, query ScriptSettingGetParams, ...) (res *ScriptSettingGetResponse, err error)
- type ScriptTailDeleteParams
- type ScriptTailDeleteResponse
- type ScriptTailDeleteResponseArray
- type ScriptTailDeleteResponseEnvelope
- type ScriptTailDeleteResponseEnvelopeErrors
- type ScriptTailDeleteResponseEnvelopeMessages
- type ScriptTailDeleteResponseEnvelopeSuccess
- type ScriptTailGetParams
- type ScriptTailGetResponse
- type ScriptTailGetResponseEnvelope
- type ScriptTailGetResponseEnvelopeErrors
- type ScriptTailGetResponseEnvelopeMessages
- type ScriptTailGetResponseEnvelopeSuccess
- type ScriptTailNewParams
- type ScriptTailNewResponse
- type ScriptTailNewResponseEnvelope
- type ScriptTailNewResponseEnvelopeErrors
- type ScriptTailNewResponseEnvelopeMessages
- type ScriptTailNewResponseEnvelopeSuccess
- type ScriptTailService
- func (r *ScriptTailService) Delete(ctx context.Context, scriptName string, id string, body ScriptTailDeleteParams, ...) (res *ScriptTailDeleteResponse, err error)
- func (r *ScriptTailService) Get(ctx context.Context, scriptName string, query ScriptTailGetParams, ...) (res *ScriptTailGetResponse, err error)
- func (r *ScriptTailService) New(ctx context.Context, scriptName string, body ScriptTailNewParams, ...) (res *ScriptTailNewResponse, err error)
- type ScriptUpdateParams
- type ScriptUpdateParamsMetadata
- type ScriptUpdateParamsMetadataMigrations
- type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrations
- type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsRenamedClass
- type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsTransferredClass
- type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrations
- type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStep
- type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsRenamedClass
- type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsTransferredClass
- type ScriptUpdateParamsMetadataPlacement
- type ScriptUpdateParamsMetadataPlacementMode
- type ScriptUpdateParamsMetadataTailConsumer
- type ScriptUpdateParamsMetadataUsageModel
- type ScriptUpdateResponseEnvelope
- type ScriptUpdateResponseEnvelopeErrors
- type ScriptUpdateResponseEnvelopeMessages
- type ScriptUpdateResponseEnvelopeSuccess
- type ScriptUsageModelGetParams
- type ScriptUsageModelGetResponse
- type ScriptUsageModelGetResponseEnvelope
- type ScriptUsageModelGetResponseEnvelopeErrors
- type ScriptUsageModelGetResponseEnvelopeMessages
- type ScriptUsageModelGetResponseEnvelopeSuccess
- type ScriptUsageModelService
- func (r *ScriptUsageModelService) Get(ctx context.Context, scriptName string, query ScriptUsageModelGetParams, ...) (res *ScriptUsageModelGetResponse, err error)
- func (r *ScriptUsageModelService) Update(ctx context.Context, scriptName string, params ScriptUsageModelUpdateParams, ...) (res *ScriptUsageModelUpdateResponse, err error)
- type ScriptUsageModelUpdateParams
- type ScriptUsageModelUpdateResponse
- type ScriptUsageModelUpdateResponseEnvelope
- type ScriptUsageModelUpdateResponseEnvelopeErrors
- type ScriptUsageModelUpdateResponseEnvelopeMessages
- type ScriptUsageModelUpdateResponseEnvelopeSuccess
- type ServiceEnvironmentContentGetParams
- type ServiceEnvironmentContentService
- func (r *ServiceEnvironmentContentService) Get(ctx context.Context, serviceName string, environmentName string, ...) (res *http.Response, err error)
- func (r *ServiceEnvironmentContentService) Update(ctx context.Context, serviceName string, environmentName string, ...) (res *WorkersScript, err error)
- type ServiceEnvironmentContentUpdateParams
- type ServiceEnvironmentContentUpdateParamsMetadata
- type ServiceEnvironmentContentUpdateResponseEnvelope
- type ServiceEnvironmentContentUpdateResponseEnvelopeErrors
- type ServiceEnvironmentContentUpdateResponseEnvelopeMessages
- type ServiceEnvironmentContentUpdateResponseEnvelopeSuccess
- type ServiceEnvironmentService
- type ServiceEnvironmentSettingEditParams
- type ServiceEnvironmentSettingEditParamsError
- type ServiceEnvironmentSettingEditParamsMessage
- type ServiceEnvironmentSettingEditParamsResult
- type ServiceEnvironmentSettingEditParamsResultBinding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1Binding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1BindingType
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBinding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutbound
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingType
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBinding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBindingType
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBinding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBindingType
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBinding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBindingType
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBinding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBindingType
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2Binding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2BindingType
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBinding
- type ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBindingType
- type ServiceEnvironmentSettingEditParamsResultMigrations
- type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrations
- type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsRenamedClass
- type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsTransferredClass
- type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrations
- type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStep
- type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass
- type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass
- type ServiceEnvironmentSettingEditParamsResultPlacement
- type ServiceEnvironmentSettingEditParamsResultPlacementMode
- type ServiceEnvironmentSettingEditParamsResultTailConsumer
- type ServiceEnvironmentSettingEditParamsSuccess
- type ServiceEnvironmentSettingEditResponse
- type ServiceEnvironmentSettingEditResponseBinding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersD1Binding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersD1BindingType
- type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBinding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound
- type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker
- type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingType
- type ServiceEnvironmentSettingEditResponseBindingsWorkersDoBinding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersDoBindingType
- type ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBinding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBindingType
- type ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBinding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBindingType
- type ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBinding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBindingType
- type ServiceEnvironmentSettingEditResponseBindingsWorkersR2Binding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersR2BindingType
- type ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBinding
- type ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBindingType
- type ServiceEnvironmentSettingEditResponseEnvelope
- type ServiceEnvironmentSettingEditResponseEnvelopeErrors
- type ServiceEnvironmentSettingEditResponseEnvelopeMessages
- type ServiceEnvironmentSettingEditResponseEnvelopeSuccess
- type ServiceEnvironmentSettingEditResponseMigrations
- type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrations
- type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass
- type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass
- type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrations
- type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStep
- type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass
- type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass
- type ServiceEnvironmentSettingEditResponsePlacement
- type ServiceEnvironmentSettingEditResponsePlacementMode
- type ServiceEnvironmentSettingEditResponseTailConsumer
- type ServiceEnvironmentSettingGetParams
- type ServiceEnvironmentSettingGetResponse
- type ServiceEnvironmentSettingGetResponseBinding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersD1Binding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersD1BindingType
- type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBinding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound
- type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker
- type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingType
- type ServiceEnvironmentSettingGetResponseBindingsWorkersDoBinding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersDoBindingType
- type ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBinding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBindingType
- type ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBinding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBindingType
- type ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBinding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBindingType
- type ServiceEnvironmentSettingGetResponseBindingsWorkersR2Binding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersR2BindingType
- type ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBinding
- type ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBindingType
- type ServiceEnvironmentSettingGetResponseEnvelope
- type ServiceEnvironmentSettingGetResponseEnvelopeErrors
- type ServiceEnvironmentSettingGetResponseEnvelopeMessages
- type ServiceEnvironmentSettingGetResponseEnvelopeSuccess
- type ServiceEnvironmentSettingGetResponseMigrations
- type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrations
- type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass
- type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass
- type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrations
- type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStep
- type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass
- type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass
- type ServiceEnvironmentSettingGetResponsePlacement
- type ServiceEnvironmentSettingGetResponsePlacementMode
- type ServiceEnvironmentSettingGetResponseTailConsumer
- type ServiceEnvironmentSettingService
- func (r *ServiceEnvironmentSettingService) Edit(ctx context.Context, serviceName string, environmentName string, ...) (res *ServiceEnvironmentSettingEditResponse, err error)
- func (r *ServiceEnvironmentSettingService) Get(ctx context.Context, serviceName string, environmentName string, ...) (res *ServiceEnvironmentSettingGetResponse, err error)
- type ServiceService
- type SubdomainGetParams
- type SubdomainGetResponse
- type SubdomainGetResponseEnvelope
- type SubdomainGetResponseEnvelopeErrors
- type SubdomainGetResponseEnvelopeMessages
- type SubdomainGetResponseEnvelopeSuccess
- type SubdomainService
- type SubdomainUpdateParams
- type SubdomainUpdateResponse
- type SubdomainUpdateResponseEnvelope
- type SubdomainUpdateResponseEnvelopeErrors
- type SubdomainUpdateResponseEnvelopeMessages
- type SubdomainUpdateResponseEnvelopeSuccess
- type WorkerService
- type WorkersDomain
- type WorkersFilters
- type WorkersRoutes
- type WorkersSchemasBinding
- type WorkersSchemasBindingWorkersKVNamespaceBinding
- type WorkersSchemasBindingWorkersKVNamespaceBindingType
- type WorkersSchemasBindingWorkersWasmModuleBinding
- type WorkersSchemasBindingWorkersWasmModuleBindingType
- type WorkersScript
- type WorkersScriptTailConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIRunParams ¶
type AIRunParams struct { AccountID param.Field[string] `path:"account_id,required"` Body param.Field[interface{}] `json:"body,required"` }
func (AIRunParams) MarshalJSON ¶
func (r AIRunParams) MarshalJSON() (data []byte, err error)
type AIRunResponse ¶
type AIRunResponse = interface{}
type AIRunResponseEnvelope ¶
type AIRunResponseEnvelope struct { Errors []AIRunResponseEnvelopeErrors `json:"errors,required"` Messages []string `json:"messages,required"` Result AIRunResponse `json:"result,required"` Success bool `json:"success,required"` JSON aiRunResponseEnvelopeJSON `json:"-"` }
func (*AIRunResponseEnvelope) UnmarshalJSON ¶
func (r *AIRunResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AIRunResponseEnvelopeErrors ¶
type AIRunResponseEnvelopeErrors struct { Message string `json:"message,required"` JSON aiRunResponseEnvelopeErrorsJSON `json:"-"` }
func (*AIRunResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AIRunResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AIService ¶
type AIService struct {
Options []option.RequestOption
}
AIService 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 NewAIService method instead.
func NewAIService ¶
func NewAIService(opts ...option.RequestOption) (r *AIService)
NewAIService 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 (*AIService) Run ¶
func (r *AIService) Run(ctx context.Context, modelName string, params AIRunParams, opts ...option.RequestOption) (res *AIRunResponse, err error)
This endpoint provides users with the capability to run specific AI models on-demand.
By submitting the required input data, users can receive real-time predictions or results generated by the chosen AI model. The endpoint supports various AI model types, ensuring flexibility and adaptability for diverse use cases.
Model specific inputs available in [Cloudflare Docs](https://developers.cloudflare.com/workers-ai/models/).
type AccountSettingGetParams ¶
type AccountSettingGetResponse ¶
type AccountSettingGetResponse struct { DefaultUsageModel interface{} `json:"default_usage_model"` GreenCompute interface{} `json:"green_compute"` JSON accountSettingGetResponseJSON `json:"-"` }
func (*AccountSettingGetResponse) UnmarshalJSON ¶
func (r *AccountSettingGetResponse) UnmarshalJSON(data []byte) (err error)
type AccountSettingGetResponseEnvelope ¶
type AccountSettingGetResponseEnvelope struct { Errors []AccountSettingGetResponseEnvelopeErrors `json:"errors,required"` Messages []AccountSettingGetResponseEnvelopeMessages `json:"messages,required"` Result AccountSettingGetResponse `json:"result,required"` // Whether the API call was successful Success AccountSettingGetResponseEnvelopeSuccess `json:"success,required"` JSON accountSettingGetResponseEnvelopeJSON `json:"-"` }
func (*AccountSettingGetResponseEnvelope) UnmarshalJSON ¶
func (r *AccountSettingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccountSettingGetResponseEnvelopeErrors ¶
type AccountSettingGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON accountSettingGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*AccountSettingGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AccountSettingGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AccountSettingGetResponseEnvelopeMessages ¶
type AccountSettingGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON accountSettingGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*AccountSettingGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AccountSettingGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AccountSettingGetResponseEnvelopeSuccess ¶
type AccountSettingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccountSettingGetResponseEnvelopeSuccessTrue AccountSettingGetResponseEnvelopeSuccess = true
)
type AccountSettingService ¶
type AccountSettingService struct {
Options []option.RequestOption
}
AccountSettingService 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 NewAccountSettingService method instead.
func NewAccountSettingService ¶
func NewAccountSettingService(opts ...option.RequestOption) (r *AccountSettingService)
NewAccountSettingService 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 (*AccountSettingService) Get ¶
func (r *AccountSettingService) Get(ctx context.Context, query AccountSettingGetParams, opts ...option.RequestOption) (res *AccountSettingGetResponse, err error)
Fetches Worker account settings for an account.
func (*AccountSettingService) Update ¶
func (r *AccountSettingService) Update(ctx context.Context, params AccountSettingUpdateParams, opts ...option.RequestOption) (res *AccountSettingUpdateResponse, err error)
Creates Worker account settings for an account.
type AccountSettingUpdateParams ¶
type AccountSettingUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Body param.Field[interface{}] `json:"body,required"` }
func (AccountSettingUpdateParams) MarshalJSON ¶
func (r AccountSettingUpdateParams) MarshalJSON() (data []byte, err error)
type AccountSettingUpdateResponse ¶
type AccountSettingUpdateResponse struct { DefaultUsageModel interface{} `json:"default_usage_model"` GreenCompute interface{} `json:"green_compute"` JSON accountSettingUpdateResponseJSON `json:"-"` }
func (*AccountSettingUpdateResponse) UnmarshalJSON ¶
func (r *AccountSettingUpdateResponse) UnmarshalJSON(data []byte) (err error)
type AccountSettingUpdateResponseEnvelope ¶
type AccountSettingUpdateResponseEnvelope struct { Errors []AccountSettingUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []AccountSettingUpdateResponseEnvelopeMessages `json:"messages,required"` Result AccountSettingUpdateResponse `json:"result,required"` // Whether the API call was successful Success AccountSettingUpdateResponseEnvelopeSuccess `json:"success,required"` JSON accountSettingUpdateResponseEnvelopeJSON `json:"-"` }
func (*AccountSettingUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AccountSettingUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AccountSettingUpdateResponseEnvelopeErrors ¶
type AccountSettingUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON accountSettingUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*AccountSettingUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *AccountSettingUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type AccountSettingUpdateResponseEnvelopeMessages ¶
type AccountSettingUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON accountSettingUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*AccountSettingUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *AccountSettingUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type AccountSettingUpdateResponseEnvelopeSuccess ¶
type AccountSettingUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AccountSettingUpdateResponseEnvelopeSuccessTrue AccountSettingUpdateResponseEnvelopeSuccess = true
)
type DeploymentByScriptDetailGetResponse ¶
type DeploymentByScriptDetailGetResponse struct { ID string `json:"id"` Metadata interface{} `json:"metadata"` Number float64 `json:"number"` Resources interface{} `json:"resources"` JSON deploymentByScriptDetailGetResponseJSON `json:"-"` }
func (*DeploymentByScriptDetailGetResponse) UnmarshalJSON ¶
func (r *DeploymentByScriptDetailGetResponse) UnmarshalJSON(data []byte) (err error)
type DeploymentByScriptDetailGetResponseEnvelope ¶
type DeploymentByScriptDetailGetResponseEnvelope struct { Errors []DeploymentByScriptDetailGetResponseEnvelopeErrors `json:"errors,required"` Messages []DeploymentByScriptDetailGetResponseEnvelopeMessages `json:"messages,required"` Result DeploymentByScriptDetailGetResponse `json:"result,required"` // Whether the API call was successful Success DeploymentByScriptDetailGetResponseEnvelopeSuccess `json:"success,required"` JSON deploymentByScriptDetailGetResponseEnvelopeJSON `json:"-"` }
func (*DeploymentByScriptDetailGetResponseEnvelope) UnmarshalJSON ¶
func (r *DeploymentByScriptDetailGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeploymentByScriptDetailGetResponseEnvelopeErrors ¶
type DeploymentByScriptDetailGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON deploymentByScriptDetailGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*DeploymentByScriptDetailGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *DeploymentByScriptDetailGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type DeploymentByScriptDetailGetResponseEnvelopeMessages ¶
type DeploymentByScriptDetailGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON deploymentByScriptDetailGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*DeploymentByScriptDetailGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *DeploymentByScriptDetailGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type DeploymentByScriptDetailGetResponseEnvelopeSuccess ¶
type DeploymentByScriptDetailGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DeploymentByScriptDetailGetResponseEnvelopeSuccessTrue DeploymentByScriptDetailGetResponseEnvelopeSuccess = true
)
type DeploymentByScriptDetailService ¶
type DeploymentByScriptDetailService struct {
Options []option.RequestOption
}
DeploymentByScriptDetailService 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 NewDeploymentByScriptDetailService method instead.
func NewDeploymentByScriptDetailService ¶
func NewDeploymentByScriptDetailService(opts ...option.RequestOption) (r *DeploymentByScriptDetailService)
NewDeploymentByScriptDetailService 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 (*DeploymentByScriptDetailService) Get ¶
func (r *DeploymentByScriptDetailService) Get(ctx context.Context, scriptID string, deploymentID string, query DeploymentByScriptDetailGetParams, opts ...option.RequestOption) (res *DeploymentByScriptDetailGetResponse, err error)
Get Deployment Detail
type DeploymentByScriptGetResponse ¶
type DeploymentByScriptGetResponse struct { Items []interface{} `json:"items"` Latest interface{} `json:"latest"` JSON deploymentByScriptGetResponseJSON `json:"-"` }
func (*DeploymentByScriptGetResponse) UnmarshalJSON ¶
func (r *DeploymentByScriptGetResponse) UnmarshalJSON(data []byte) (err error)
type DeploymentByScriptGetResponseEnvelope ¶
type DeploymentByScriptGetResponseEnvelope struct { Errors []DeploymentByScriptGetResponseEnvelopeErrors `json:"errors,required"` Messages []DeploymentByScriptGetResponseEnvelopeMessages `json:"messages,required"` Result DeploymentByScriptGetResponse `json:"result,required"` // Whether the API call was successful Success DeploymentByScriptGetResponseEnvelopeSuccess `json:"success,required"` JSON deploymentByScriptGetResponseEnvelopeJSON `json:"-"` }
func (*DeploymentByScriptGetResponseEnvelope) UnmarshalJSON ¶
func (r *DeploymentByScriptGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DeploymentByScriptGetResponseEnvelopeErrors ¶
type DeploymentByScriptGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON deploymentByScriptGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*DeploymentByScriptGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *DeploymentByScriptGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type DeploymentByScriptGetResponseEnvelopeMessages ¶
type DeploymentByScriptGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON deploymentByScriptGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*DeploymentByScriptGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *DeploymentByScriptGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type DeploymentByScriptGetResponseEnvelopeSuccess ¶
type DeploymentByScriptGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DeploymentByScriptGetResponseEnvelopeSuccessTrue DeploymentByScriptGetResponseEnvelopeSuccess = true
)
type DeploymentByScriptService ¶
type DeploymentByScriptService struct { Options []option.RequestOption Details *DeploymentByScriptDetailService }
DeploymentByScriptService 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 NewDeploymentByScriptService method instead.
func NewDeploymentByScriptService ¶
func NewDeploymentByScriptService(opts ...option.RequestOption) (r *DeploymentByScriptService)
NewDeploymentByScriptService 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 (*DeploymentByScriptService) Get ¶
func (r *DeploymentByScriptService) Get(ctx context.Context, scriptID string, query DeploymentByScriptGetParams, opts ...option.RequestOption) (res *DeploymentByScriptGetResponse, err error)
List Deployments
type DeploymentService ¶
type DeploymentService struct { Options []option.RequestOption ByScripts *DeploymentByScriptService }
DeploymentService 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 NewDeploymentService method instead.
func NewDeploymentService ¶
func NewDeploymentService(opts ...option.RequestOption) (r *DeploymentService)
NewDeploymentService 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 DomainDeleteParams ¶
type DomainGetParams ¶
type DomainGetResponseEnvelope ¶
type DomainGetResponseEnvelope struct { Errors []DomainGetResponseEnvelopeErrors `json:"errors,required"` Messages []DomainGetResponseEnvelopeMessages `json:"messages,required"` Result WorkersDomain `json:"result,required"` // Whether the API call was successful Success DomainGetResponseEnvelopeSuccess `json:"success,required"` JSON domainGetResponseEnvelopeJSON `json:"-"` }
func (*DomainGetResponseEnvelope) UnmarshalJSON ¶
func (r *DomainGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DomainGetResponseEnvelopeErrors ¶
type DomainGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON domainGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*DomainGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *DomainGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type DomainGetResponseEnvelopeMessages ¶
type DomainGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON domainGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*DomainGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *DomainGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type DomainGetResponseEnvelopeSuccess ¶
type DomainGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DomainGetResponseEnvelopeSuccessTrue DomainGetResponseEnvelopeSuccess = true
)
type DomainListParams ¶
type DomainListParams struct { AccountID param.Field[interface{}] `path:"account_id,required"` // Worker environment associated with the zone and hostname. Environment param.Field[string] `query:"environment"` // Hostname of the Worker Domain. Hostname param.Field[string] `query:"hostname"` // Worker service associated with the zone and hostname. Service param.Field[string] `query:"service"` // Identifier of the zone. ZoneID param.Field[interface{}] `query:"zone_id"` // Name of the zone. ZoneName param.Field[string] `query:"zone_name"` }
func (DomainListParams) URLQuery ¶
func (r DomainListParams) URLQuery() (v url.Values)
URLQuery serializes DomainListParams's query parameters as `url.Values`.
type DomainListResponseEnvelope ¶
type DomainListResponseEnvelope struct { Errors []DomainListResponseEnvelopeErrors `json:"errors,required"` Messages []DomainListResponseEnvelopeMessages `json:"messages,required"` Result []WorkersDomain `json:"result,required"` // Whether the API call was successful Success DomainListResponseEnvelopeSuccess `json:"success,required"` JSON domainListResponseEnvelopeJSON `json:"-"` }
func (*DomainListResponseEnvelope) UnmarshalJSON ¶
func (r *DomainListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DomainListResponseEnvelopeErrors ¶
type DomainListResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON domainListResponseEnvelopeErrorsJSON `json:"-"` }
func (*DomainListResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *DomainListResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type DomainListResponseEnvelopeMessages ¶
type DomainListResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON domainListResponseEnvelopeMessagesJSON `json:"-"` }
func (*DomainListResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *DomainListResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type DomainListResponseEnvelopeSuccess ¶
type DomainListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DomainListResponseEnvelopeSuccessTrue DomainListResponseEnvelopeSuccess = true
)
type DomainService ¶
type DomainService struct {
Options []option.RequestOption
}
DomainService 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 NewDomainService method instead.
func NewDomainService ¶
func NewDomainService(opts ...option.RequestOption) (r *DomainService)
NewDomainService 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 (*DomainService) Delete ¶
func (r *DomainService) Delete(ctx context.Context, domainID interface{}, body DomainDeleteParams, opts ...option.RequestOption) (err error)
Detaches a Worker from a zone and hostname.
func (*DomainService) Get ¶
func (r *DomainService) Get(ctx context.Context, domainID interface{}, query DomainGetParams, opts ...option.RequestOption) (res *WorkersDomain, err error)
Gets a Worker domain.
func (*DomainService) List ¶
func (r *DomainService) List(ctx context.Context, params DomainListParams, opts ...option.RequestOption) (res *[]WorkersDomain, err error)
Lists all Worker Domains for an account.
func (*DomainService) Update ¶
func (r *DomainService) Update(ctx context.Context, params DomainUpdateParams, opts ...option.RequestOption) (res *WorkersDomain, err error)
Attaches a Worker to a zone and hostname.
type DomainUpdateParams ¶
type DomainUpdateParams struct { AccountID param.Field[interface{}] `path:"account_id,required"` // Worker environment associated with the zone and hostname. Environment param.Field[string] `json:"environment,required"` // Hostname of the Worker Domain. Hostname param.Field[string] `json:"hostname,required"` // Worker service associated with the zone and hostname. Service param.Field[string] `json:"service,required"` // Identifier of the zone. ZoneID param.Field[interface{}] `json:"zone_id,required"` }
func (DomainUpdateParams) MarshalJSON ¶
func (r DomainUpdateParams) MarshalJSON() (data []byte, err error)
type DomainUpdateResponseEnvelope ¶
type DomainUpdateResponseEnvelope struct { Errors []DomainUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []DomainUpdateResponseEnvelopeMessages `json:"messages,required"` Result WorkersDomain `json:"result,required"` // Whether the API call was successful Success DomainUpdateResponseEnvelopeSuccess `json:"success,required"` JSON domainUpdateResponseEnvelopeJSON `json:"-"` }
func (*DomainUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *DomainUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type DomainUpdateResponseEnvelopeErrors ¶
type DomainUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON domainUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*DomainUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *DomainUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type DomainUpdateResponseEnvelopeMessages ¶
type DomainUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON domainUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*DomainUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *DomainUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type DomainUpdateResponseEnvelopeSuccess ¶
type DomainUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
DomainUpdateResponseEnvelopeSuccessTrue DomainUpdateResponseEnvelopeSuccess = true
)
type FilterDeleteParams ¶
type FilterDeleteResponse ¶
type FilterDeleteResponse struct { // Identifier ID string `json:"id,required"` JSON filterDeleteResponseJSON `json:"-"` }
func (*FilterDeleteResponse) UnmarshalJSON ¶
func (r *FilterDeleteResponse) UnmarshalJSON(data []byte) (err error)
type FilterDeleteResponseEnvelope ¶
type FilterDeleteResponseEnvelope struct { Errors []FilterDeleteResponseEnvelopeErrors `json:"errors,required"` Messages []FilterDeleteResponseEnvelopeMessages `json:"messages,required"` Result FilterDeleteResponse `json:"result,required,nullable"` // Whether the API call was successful Success FilterDeleteResponseEnvelopeSuccess `json:"success,required"` JSON filterDeleteResponseEnvelopeJSON `json:"-"` }
func (*FilterDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *FilterDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type FilterDeleteResponseEnvelopeErrors ¶
type FilterDeleteResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON filterDeleteResponseEnvelopeErrorsJSON `json:"-"` }
func (*FilterDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *FilterDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type FilterDeleteResponseEnvelopeMessages ¶
type FilterDeleteResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON filterDeleteResponseEnvelopeMessagesJSON `json:"-"` }
func (*FilterDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *FilterDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type FilterDeleteResponseEnvelopeSuccess ¶
type FilterDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
FilterDeleteResponseEnvelopeSuccessTrue FilterDeleteResponseEnvelopeSuccess = true
)
type FilterListParams ¶
type FilterListResponseEnvelope ¶
type FilterListResponseEnvelope struct { Errors []FilterListResponseEnvelopeErrors `json:"errors,required"` Messages []FilterListResponseEnvelopeMessages `json:"messages,required"` Result []WorkersFilters `json:"result,required"` // Whether the API call was successful Success FilterListResponseEnvelopeSuccess `json:"success,required"` JSON filterListResponseEnvelopeJSON `json:"-"` }
func (*FilterListResponseEnvelope) UnmarshalJSON ¶
func (r *FilterListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type FilterListResponseEnvelopeErrors ¶
type FilterListResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON filterListResponseEnvelopeErrorsJSON `json:"-"` }
func (*FilterListResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *FilterListResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type FilterListResponseEnvelopeMessages ¶
type FilterListResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON filterListResponseEnvelopeMessagesJSON `json:"-"` }
func (*FilterListResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *FilterListResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type FilterListResponseEnvelopeSuccess ¶
type FilterListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
FilterListResponseEnvelopeSuccessTrue FilterListResponseEnvelopeSuccess = true
)
type FilterNewParams ¶
type FilterNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Enabled param.Field[bool] `json:"enabled,required"` Pattern param.Field[string] `json:"pattern,required"` }
func (FilterNewParams) MarshalJSON ¶
func (r FilterNewParams) MarshalJSON() (data []byte, err error)
type FilterNewResponse ¶
type FilterNewResponse struct { // Identifier ID string `json:"id,required"` JSON filterNewResponseJSON `json:"-"` }
func (*FilterNewResponse) UnmarshalJSON ¶
func (r *FilterNewResponse) UnmarshalJSON(data []byte) (err error)
type FilterNewResponseEnvelope ¶
type FilterNewResponseEnvelope struct { Errors []FilterNewResponseEnvelopeErrors `json:"errors,required"` Messages []FilterNewResponseEnvelopeMessages `json:"messages,required"` Result FilterNewResponse `json:"result,required,nullable"` // Whether the API call was successful Success FilterNewResponseEnvelopeSuccess `json:"success,required"` JSON filterNewResponseEnvelopeJSON `json:"-"` }
func (*FilterNewResponseEnvelope) UnmarshalJSON ¶
func (r *FilterNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type FilterNewResponseEnvelopeErrors ¶
type FilterNewResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON filterNewResponseEnvelopeErrorsJSON `json:"-"` }
func (*FilterNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *FilterNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type FilterNewResponseEnvelopeMessages ¶
type FilterNewResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON filterNewResponseEnvelopeMessagesJSON `json:"-"` }
func (*FilterNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *FilterNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type FilterNewResponseEnvelopeSuccess ¶
type FilterNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
FilterNewResponseEnvelopeSuccessTrue FilterNewResponseEnvelopeSuccess = true
)
type FilterService ¶
type FilterService struct {
Options []option.RequestOption
}
FilterService 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 NewFilterService method instead.
func NewFilterService ¶
func NewFilterService(opts ...option.RequestOption) (r *FilterService)
NewFilterService 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 (*FilterService) Delete ¶
func (r *FilterService) Delete(ctx context.Context, filterID string, body FilterDeleteParams, opts ...option.RequestOption) (res *FilterDeleteResponse, err error)
Delete Filter
func (*FilterService) List ¶
func (r *FilterService) List(ctx context.Context, query FilterListParams, opts ...option.RequestOption) (res *[]WorkersFilters, err error)
List Filters
func (*FilterService) New ¶
func (r *FilterService) New(ctx context.Context, params FilterNewParams, opts ...option.RequestOption) (res *FilterNewResponse, err error)
Create Filter
func (*FilterService) Update ¶
func (r *FilterService) Update(ctx context.Context, filterID string, params FilterUpdateParams, opts ...option.RequestOption) (res *WorkersFilters, err error)
Update Filter
type FilterUpdateParams ¶
type FilterUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Enabled param.Field[bool] `json:"enabled,required"` Pattern param.Field[string] `json:"pattern,required"` }
func (FilterUpdateParams) MarshalJSON ¶
func (r FilterUpdateParams) MarshalJSON() (data []byte, err error)
type FilterUpdateResponseEnvelope ¶
type FilterUpdateResponseEnvelope struct { Errors []FilterUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []FilterUpdateResponseEnvelopeMessages `json:"messages,required"` Result WorkersFilters `json:"result,required"` // Whether the API call was successful Success FilterUpdateResponseEnvelopeSuccess `json:"success,required"` JSON filterUpdateResponseEnvelopeJSON `json:"-"` }
func (*FilterUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *FilterUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type FilterUpdateResponseEnvelopeErrors ¶
type FilterUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON filterUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*FilterUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *FilterUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type FilterUpdateResponseEnvelopeMessages ¶
type FilterUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON filterUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*FilterUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *FilterUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type FilterUpdateResponseEnvelopeSuccess ¶
type FilterUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
FilterUpdateResponseEnvelopeSuccessTrue FilterUpdateResponseEnvelopeSuccess = true
)
type RouteDeleteParams ¶
type RouteDeleteResponse ¶
type RouteDeleteResponse interface {
ImplementsWorkersRouteDeleteResponse()
}
Union satisfied by workers.RouteDeleteResponseUnknown or shared.UnionString.
type RouteDeleteResponseEnvelope ¶
type RouteDeleteResponseEnvelope struct { Errors []RouteDeleteResponseEnvelopeErrors `json:"errors,required"` Messages []RouteDeleteResponseEnvelopeMessages `json:"messages,required"` Result RouteDeleteResponse `json:"result,required"` // Whether the API call was successful Success RouteDeleteResponseEnvelopeSuccess `json:"success,required"` JSON routeDeleteResponseEnvelopeJSON `json:"-"` }
func (*RouteDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *RouteDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RouteDeleteResponseEnvelopeErrors ¶
type RouteDeleteResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeDeleteResponseEnvelopeErrorsJSON `json:"-"` }
func (*RouteDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RouteDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RouteDeleteResponseEnvelopeMessages ¶
type RouteDeleteResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeDeleteResponseEnvelopeMessagesJSON `json:"-"` }
func (*RouteDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RouteDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RouteDeleteResponseEnvelopeSuccess ¶
type RouteDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
RouteDeleteResponseEnvelopeSuccessTrue RouteDeleteResponseEnvelopeSuccess = true
)
type RouteGetParams ¶
type RouteGetResponseEnvelope ¶
type RouteGetResponseEnvelope struct { Errors []RouteGetResponseEnvelopeErrors `json:"errors,required"` Messages []RouteGetResponseEnvelopeMessages `json:"messages,required"` Result WorkersRoutes `json:"result,required"` // Whether the API call was successful Success RouteGetResponseEnvelopeSuccess `json:"success,required"` JSON routeGetResponseEnvelopeJSON `json:"-"` }
func (*RouteGetResponseEnvelope) UnmarshalJSON ¶
func (r *RouteGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RouteGetResponseEnvelopeErrors ¶
type RouteGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*RouteGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RouteGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RouteGetResponseEnvelopeMessages ¶
type RouteGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*RouteGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RouteGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RouteGetResponseEnvelopeSuccess ¶
type RouteGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
RouteGetResponseEnvelopeSuccessTrue RouteGetResponseEnvelopeSuccess = true
)
type RouteListParams ¶
type RouteListResponseEnvelope ¶
type RouteListResponseEnvelope struct { Errors []RouteListResponseEnvelopeErrors `json:"errors,required"` Messages []RouteListResponseEnvelopeMessages `json:"messages,required"` Result []WorkersRoutes `json:"result,required"` // Whether the API call was successful Success RouteListResponseEnvelopeSuccess `json:"success,required"` JSON routeListResponseEnvelopeJSON `json:"-"` }
func (*RouteListResponseEnvelope) UnmarshalJSON ¶
func (r *RouteListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RouteListResponseEnvelopeErrors ¶
type RouteListResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeListResponseEnvelopeErrorsJSON `json:"-"` }
func (*RouteListResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RouteListResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RouteListResponseEnvelopeMessages ¶
type RouteListResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeListResponseEnvelopeMessagesJSON `json:"-"` }
func (*RouteListResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RouteListResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RouteListResponseEnvelopeSuccess ¶
type RouteListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
RouteListResponseEnvelopeSuccessTrue RouteListResponseEnvelopeSuccess = true
)
type RouteNewParams ¶
type RouteNewParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Pattern param.Field[string] `json:"pattern,required"` // Name of the script, used in URLs and route configuration. Script param.Field[string] `json:"script"` }
func (RouteNewParams) MarshalJSON ¶
func (r RouteNewParams) MarshalJSON() (data []byte, err error)
type RouteNewResponse ¶
type RouteNewResponse interface {
ImplementsWorkersRouteNewResponse()
}
Union satisfied by workers.RouteNewResponseUnknown or shared.UnionString.
type RouteNewResponseEnvelope ¶
type RouteNewResponseEnvelope struct { Errors []RouteNewResponseEnvelopeErrors `json:"errors,required"` Messages []RouteNewResponseEnvelopeMessages `json:"messages,required"` Result RouteNewResponse `json:"result,required"` // Whether the API call was successful Success RouteNewResponseEnvelopeSuccess `json:"success,required"` JSON routeNewResponseEnvelopeJSON `json:"-"` }
func (*RouteNewResponseEnvelope) UnmarshalJSON ¶
func (r *RouteNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RouteNewResponseEnvelopeErrors ¶
type RouteNewResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeNewResponseEnvelopeErrorsJSON `json:"-"` }
func (*RouteNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RouteNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RouteNewResponseEnvelopeMessages ¶
type RouteNewResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeNewResponseEnvelopeMessagesJSON `json:"-"` }
func (*RouteNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RouteNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RouteNewResponseEnvelopeSuccess ¶
type RouteNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
RouteNewResponseEnvelopeSuccessTrue RouteNewResponseEnvelopeSuccess = true
)
type RouteService ¶
type RouteService struct {
Options []option.RequestOption
}
RouteService 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 NewRouteService method instead.
func NewRouteService ¶
func NewRouteService(opts ...option.RequestOption) (r *RouteService)
NewRouteService 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 (*RouteService) Delete ¶
func (r *RouteService) Delete(ctx context.Context, routeID string, body RouteDeleteParams, opts ...option.RequestOption) (res *RouteDeleteResponse, err error)
Deletes a route.
func (*RouteService) Get ¶
func (r *RouteService) Get(ctx context.Context, routeID string, query RouteGetParams, opts ...option.RequestOption) (res *WorkersRoutes, err error)
Returns information about a route, including URL pattern and Worker.
func (*RouteService) List ¶
func (r *RouteService) List(ctx context.Context, query RouteListParams, opts ...option.RequestOption) (res *[]WorkersRoutes, err error)
Returns routes for a zone.
func (*RouteService) New ¶
func (r *RouteService) New(ctx context.Context, params RouteNewParams, opts ...option.RequestOption) (res *RouteNewResponse, err error)
Creates a route that maps a URL pattern to a Worker.
func (*RouteService) Update ¶
func (r *RouteService) Update(ctx context.Context, routeID string, params RouteUpdateParams, opts ...option.RequestOption) (res *WorkersRoutes, err error)
Updates the URL pattern or Worker associated with a route.
type RouteUpdateParams ¶
type RouteUpdateParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` Pattern param.Field[string] `json:"pattern,required"` // Name of the script, used in URLs and route configuration. Script param.Field[string] `json:"script"` }
func (RouteUpdateParams) MarshalJSON ¶
func (r RouteUpdateParams) MarshalJSON() (data []byte, err error)
type RouteUpdateResponseEnvelope ¶
type RouteUpdateResponseEnvelope struct { Errors []RouteUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []RouteUpdateResponseEnvelopeMessages `json:"messages,required"` Result WorkersRoutes `json:"result,required"` // Whether the API call was successful Success RouteUpdateResponseEnvelopeSuccess `json:"success,required"` JSON routeUpdateResponseEnvelopeJSON `json:"-"` }
func (*RouteUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *RouteUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type RouteUpdateResponseEnvelopeErrors ¶
type RouteUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*RouteUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *RouteUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type RouteUpdateResponseEnvelopeMessages ¶
type RouteUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON routeUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*RouteUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *RouteUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type RouteUpdateResponseEnvelopeSuccess ¶
type RouteUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
RouteUpdateResponseEnvelopeSuccessTrue RouteUpdateResponseEnvelopeSuccess = true
)
type ScriptBindingGetParams ¶
type ScriptBindingGetResponseEnvelope ¶
type ScriptBindingGetResponseEnvelope struct { Errors []ScriptBindingGetResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptBindingGetResponseEnvelopeMessages `json:"messages,required"` Result []WorkersSchemasBinding `json:"result,required"` // Whether the API call was successful Success ScriptBindingGetResponseEnvelopeSuccess `json:"success,required"` JSON scriptBindingGetResponseEnvelopeJSON `json:"-"` }
func (*ScriptBindingGetResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptBindingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptBindingGetResponseEnvelopeErrors ¶
type ScriptBindingGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptBindingGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptBindingGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptBindingGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptBindingGetResponseEnvelopeMessages ¶
type ScriptBindingGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptBindingGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptBindingGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptBindingGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptBindingGetResponseEnvelopeSuccess ¶
type ScriptBindingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptBindingGetResponseEnvelopeSuccessTrue ScriptBindingGetResponseEnvelopeSuccess = true
)
type ScriptBindingService ¶
type ScriptBindingService struct {
Options []option.RequestOption
}
ScriptBindingService 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 NewScriptBindingService method instead.
func NewScriptBindingService ¶
func NewScriptBindingService(opts ...option.RequestOption) (r *ScriptBindingService)
NewScriptBindingService 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 (*ScriptBindingService) Get ¶
func (r *ScriptBindingService) Get(ctx context.Context, query ScriptBindingGetParams, opts ...option.RequestOption) (res *[]WorkersSchemasBinding, err error)
List the bindings for a Workers script.
type ScriptContentService ¶
type ScriptContentService struct {
Options []option.RequestOption
}
ScriptContentService 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 NewScriptContentService method instead.
func NewScriptContentService ¶
func NewScriptContentService(opts ...option.RequestOption) (r *ScriptContentService)
NewScriptContentService 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 (*ScriptContentService) Update ¶
func (r *ScriptContentService) Update(ctx context.Context, scriptName string, params ScriptContentUpdateParams, opts ...option.RequestOption) (res *WorkersScript, err error)
Put script content without touching config or metadata
type ScriptContentUpdateParams ¶
type ScriptContentUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // A module comprising a Worker script, often a javascript file. Multiple modules // may be provided as separate named parts, but at least one module must be // present. This should be referenced either in the metadata as `main_module` // (esm)/`body_part` (service worker) or as a header `CF-WORKER-MAIN-MODULE-PART` // (esm) /`CF-WORKER-BODY-PART` (service worker) by part name. AnyPartName param.Field[[]io.Reader] `json:"<any part name>" format:"binary"` // JSON encoded metadata about the uploaded parts and Worker configuration. Metadata param.Field[ScriptContentUpdateParamsMetadata] `json:"metadata"` CfWorkerBodyPart param.Field[string] `header:"CF-WORKER-BODY-PART"` CfWorkerMainModulePart param.Field[string] `header:"CF-WORKER-MAIN-MODULE-PART"` }
func (ScriptContentUpdateParams) MarshalMultipart ¶
func (r ScriptContentUpdateParams) MarshalMultipart() (data []byte, contentType string, err error)
type ScriptContentUpdateParamsMetadata ¶
type ScriptContentUpdateParamsMetadata struct { // 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"` // 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"` }
JSON encoded metadata about the uploaded parts and Worker configuration.
func (ScriptContentUpdateParamsMetadata) MarshalJSON ¶
func (r ScriptContentUpdateParamsMetadata) MarshalJSON() (data []byte, err error)
type ScriptContentUpdateResponseEnvelope ¶
type ScriptContentUpdateResponseEnvelope struct { Errors []ScriptContentUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptContentUpdateResponseEnvelopeMessages `json:"messages,required"` Result WorkersScript `json:"result,required"` // Whether the API call was successful Success ScriptContentUpdateResponseEnvelopeSuccess `json:"success,required"` JSON scriptContentUpdateResponseEnvelopeJSON `json:"-"` }
func (*ScriptContentUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptContentUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptContentUpdateResponseEnvelopeErrors ¶
type ScriptContentUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptContentUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptContentUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptContentUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptContentUpdateResponseEnvelopeMessages ¶
type ScriptContentUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptContentUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptContentUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptContentUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptContentUpdateResponseEnvelopeSuccess ¶
type ScriptContentUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptContentUpdateResponseEnvelopeSuccessTrue ScriptContentUpdateResponseEnvelopeSuccess = true
)
type ScriptContentV2Service ¶
type ScriptContentV2Service struct {
Options []option.RequestOption
}
ScriptContentV2Service 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 NewScriptContentV2Service method instead.
func NewScriptContentV2Service ¶
func NewScriptContentV2Service(opts ...option.RequestOption) (r *ScriptContentV2Service)
NewScriptContentV2Service 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 (*ScriptContentV2Service) Get ¶
func (r *ScriptContentV2Service) Get(ctx context.Context, scriptName string, query ScriptContentV2GetParams, opts ...option.RequestOption) (res *http.Response, err error)
Fetch script content only
type ScriptDeleteParams ¶
type ScriptDeleteParams 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 (ScriptDeleteParams) URLQuery ¶
func (r ScriptDeleteParams) URLQuery() (v url.Values)
URLQuery serializes ScriptDeleteParams's query parameters as `url.Values`.
type ScriptGetParams ¶
type ScriptListParams ¶
type ScriptListResponseEnvelope ¶
type ScriptListResponseEnvelope struct { Errors []ScriptListResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptListResponseEnvelopeMessages `json:"messages,required"` Result []WorkersScript `json:"result,required"` // Whether the API call was successful Success ScriptListResponseEnvelopeSuccess `json:"success,required"` JSON scriptListResponseEnvelopeJSON `json:"-"` }
func (*ScriptListResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptListResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptListResponseEnvelopeErrors ¶
type ScriptListResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptListResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptListResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptListResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptListResponseEnvelopeMessages ¶
type ScriptListResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptListResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptListResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptListResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptListResponseEnvelopeSuccess ¶
type ScriptListResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptListResponseEnvelopeSuccessTrue ScriptListResponseEnvelopeSuccess = true
)
type ScriptScheduleGetParams ¶
type ScriptScheduleGetResponse ¶
type ScriptScheduleGetResponse struct { Schedules []ScriptScheduleGetResponseSchedule `json:"schedules"` JSON scriptScheduleGetResponseJSON `json:"-"` }
func (*ScriptScheduleGetResponse) UnmarshalJSON ¶
func (r *ScriptScheduleGetResponse) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleGetResponseEnvelope ¶
type ScriptScheduleGetResponseEnvelope struct { Errors []ScriptScheduleGetResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptScheduleGetResponseEnvelopeMessages `json:"messages,required"` Result ScriptScheduleGetResponse `json:"result,required"` // Whether the API call was successful Success ScriptScheduleGetResponseEnvelopeSuccess `json:"success,required"` JSON scriptScheduleGetResponseEnvelopeJSON `json:"-"` }
func (*ScriptScheduleGetResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptScheduleGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleGetResponseEnvelopeErrors ¶
type ScriptScheduleGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptScheduleGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptScheduleGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptScheduleGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleGetResponseEnvelopeMessages ¶
type ScriptScheduleGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptScheduleGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptScheduleGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptScheduleGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleGetResponseEnvelopeSuccess ¶
type ScriptScheduleGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptScheduleGetResponseEnvelopeSuccessTrue ScriptScheduleGetResponseEnvelopeSuccess = true
)
type ScriptScheduleGetResponseSchedule ¶
type ScriptScheduleGetResponseSchedule struct { CreatedOn interface{} `json:"created_on"` Cron interface{} `json:"cron"` ModifiedOn interface{} `json:"modified_on"` JSON scriptScheduleGetResponseScheduleJSON `json:"-"` }
func (*ScriptScheduleGetResponseSchedule) UnmarshalJSON ¶
func (r *ScriptScheduleGetResponseSchedule) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleService ¶
type ScriptScheduleService struct {
Options []option.RequestOption
}
ScriptScheduleService 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 NewScriptScheduleService method instead.
func NewScriptScheduleService ¶
func NewScriptScheduleService(opts ...option.RequestOption) (r *ScriptScheduleService)
NewScriptScheduleService 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 (*ScriptScheduleService) Get ¶
func (r *ScriptScheduleService) Get(ctx context.Context, scriptName string, query ScriptScheduleGetParams, opts ...option.RequestOption) (res *ScriptScheduleGetResponse, err error)
Fetches Cron Triggers for a Worker.
func (*ScriptScheduleService) Update ¶
func (r *ScriptScheduleService) Update(ctx context.Context, scriptName string, params ScriptScheduleUpdateParams, opts ...option.RequestOption) (res *ScriptScheduleUpdateResponse, err error)
Updates Cron Triggers for a Worker.
type ScriptScheduleUpdateParams ¶
type ScriptScheduleUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Body param.Field[interface{}] `json:"body,required"` }
func (ScriptScheduleUpdateParams) MarshalJSON ¶
func (r ScriptScheduleUpdateParams) MarshalJSON() (data []byte, err error)
type ScriptScheduleUpdateResponse ¶
type ScriptScheduleUpdateResponse struct { Schedules []ScriptScheduleUpdateResponseSchedule `json:"schedules"` JSON scriptScheduleUpdateResponseJSON `json:"-"` }
func (*ScriptScheduleUpdateResponse) UnmarshalJSON ¶
func (r *ScriptScheduleUpdateResponse) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleUpdateResponseEnvelope ¶
type ScriptScheduleUpdateResponseEnvelope struct { Errors []ScriptScheduleUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptScheduleUpdateResponseEnvelopeMessages `json:"messages,required"` Result ScriptScheduleUpdateResponse `json:"result,required"` // Whether the API call was successful Success ScriptScheduleUpdateResponseEnvelopeSuccess `json:"success,required"` JSON scriptScheduleUpdateResponseEnvelopeJSON `json:"-"` }
func (*ScriptScheduleUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptScheduleUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleUpdateResponseEnvelopeErrors ¶
type ScriptScheduleUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptScheduleUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptScheduleUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptScheduleUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleUpdateResponseEnvelopeMessages ¶
type ScriptScheduleUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptScheduleUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptScheduleUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptScheduleUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptScheduleUpdateResponseEnvelopeSuccess ¶
type ScriptScheduleUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptScheduleUpdateResponseEnvelopeSuccessTrue ScriptScheduleUpdateResponseEnvelopeSuccess = true
)
type ScriptScheduleUpdateResponseSchedule ¶
type ScriptScheduleUpdateResponseSchedule struct { CreatedOn interface{} `json:"created_on"` Cron interface{} `json:"cron"` ModifiedOn interface{} `json:"modified_on"` JSON scriptScheduleUpdateResponseScheduleJSON `json:"-"` }
func (*ScriptScheduleUpdateResponseSchedule) UnmarshalJSON ¶
func (r *ScriptScheduleUpdateResponseSchedule) UnmarshalJSON(data []byte) (err error)
type ScriptService ¶
type ScriptService struct { Options []option.RequestOption Bindings *ScriptBindingService Schedules *ScriptScheduleService Tail *ScriptTailService UsageModel *ScriptUsageModelService Content *ScriptContentService ContentV2 *ScriptContentV2Service Settings *ScriptSettingService }
ScriptService 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 NewScriptService method instead.
func NewScriptService ¶
func NewScriptService(opts ...option.RequestOption) (r *ScriptService)
NewScriptService 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 (*ScriptService) Delete ¶
func (r *ScriptService) Delete(ctx context.Context, scriptName string, params ScriptDeleteParams, opts ...option.RequestOption) (err error)
Delete your worker. This call has no response body on a successful delete.
func (*ScriptService) Get ¶
func (r *ScriptService) Get(ctx context.Context, scriptName string, query ScriptGetParams, opts ...option.RequestOption) (res *http.Response, err error)
Fetch raw script content for your worker. Note this is the original script content, not JSON encoded.
func (*ScriptService) List ¶
func (r *ScriptService) List(ctx context.Context, query ScriptListParams, opts ...option.RequestOption) (res *[]WorkersScript, err error)
Fetch a list of uploaded workers.
func (*ScriptService) Update ¶
func (r *ScriptService) Update(ctx context.Context, scriptName string, params ScriptUpdateParams, opts ...option.RequestOption) (res *WorkersScript, err error)
Upload a worker module.
type ScriptSettingEditParams ¶
type ScriptSettingEditParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Settings param.Field[ScriptSettingEditParamsSettings] `json:"settings"` }
func (ScriptSettingEditParams) MarshalJSON ¶
func (r ScriptSettingEditParams) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettings ¶
type ScriptSettingEditParamsSettings struct { Errors param.Field[[]ScriptSettingEditParamsSettingsError] `json:"errors,required"` Messages param.Field[[]ScriptSettingEditParamsSettingsMessage] `json:"messages,required"` Result param.Field[ScriptSettingEditParamsSettingsResult] `json:"result,required"` // Whether the API call was successful Success param.Field[ScriptSettingEditParamsSettingsSuccess] `json:"success,required"` }
func (ScriptSettingEditParamsSettings) MarshalJSON ¶
func (r ScriptSettingEditParamsSettings) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsError ¶
type ScriptSettingEditParamsSettingsError struct { Code param.Field[int64] `json:"code,required"` Message param.Field[string] `json:"message,required"` }
func (ScriptSettingEditParamsSettingsError) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsError) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsMessage ¶
type ScriptSettingEditParamsSettingsMessage struct { Code param.Field[int64] `json:"code,required"` Message param.Field[string] `json:"message,required"` }
func (ScriptSettingEditParamsSettingsMessage) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsMessage) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResult ¶
type ScriptSettingEditParamsSettingsResult struct { // List of bindings attached to this Worker Bindings param.Field[[]ScriptSettingEditParamsSettingsResultBinding] `json:"bindings"` // Opt your Worker into changes after this date CompatibilityDate param.Field[string] `json:"compatibility_date"` // Opt your Worker into specific changes CompatibilityFlags param.Field[[]string] `json:"compatibility_flags"` // 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[ScriptSettingEditParamsSettingsResultMigrations] `json:"migrations"` Placement param.Field[ScriptSettingEditParamsSettingsResultPlacement] `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[[]ScriptSettingEditParamsSettingsResultTailConsumer] `json:"tail_consumers"` // Specifies the usage model for the Worker (e.g. 'bundled' or 'unbound'). UsageModel param.Field[string] `json:"usage_model"` }
func (ScriptSettingEditParamsSettingsResult) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResult) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBinding ¶
type ScriptSettingEditParamsSettingsResultBinding interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Satisfied by workers.ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBinding, workers.ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBinding, workers.ScriptSettingEditParamsSettingsResultBindingsWorkersDoBinding, workers.ScriptSettingEditParamsSettingsResultBindingsWorkersR2Binding, workers.ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBinding, workers.ScriptSettingEditParamsSettingsResultBindingsWorkersD1Binding, workers.ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBinding, workers.ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBinding.
type ScriptSettingEditParamsSettingsResultBindingsWorkersD1Binding ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersD1Binding struct { // ID of the D1 database to bind to ID param.Field[string] `json:"id,required"` // The name of the D1 database associated with the 'id' provided. Name param.Field[string] `json:"name,required"` // The class of resource that the binding provides. Type param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersD1BindingType] `json:"type,required"` }
func (ScriptSettingEditParamsSettingsResultBindingsWorkersD1Binding) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersD1Binding) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersD1BindingType ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersD1BindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditParamsSettingsResultBindingsWorkersD1BindingTypeD1 ScriptSettingEditParamsSettingsResultBindingsWorkersD1BindingType = "d1"
)
type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBinding ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBinding struct { // Namespace to bind to Namespace param.Field[string] `json:"namespace,required"` // The class of resource that the binding provides. Type param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingType] `json:"type,required"` // Outbound worker Outbound param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutbound] `json:"outbound"` }
func (ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBinding) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBinding) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutbound ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutbound 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[ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker] `json:"worker"` }
Outbound worker
func (ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutbound) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutbound) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker 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 (ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingType ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingTypeDispatchNamespace ScriptSettingEditParamsSettingsResultBindingsWorkersDispatchNamespaceBindingType = "dispatch_namespace"
)
type ScriptSettingEditParamsSettingsResultBindingsWorkersDoBinding ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersDoBinding struct { // The exported class name of the Durable Object ClassName param.Field[string] `json:"class_name,required"` // The class of resource that the binding provides. Type param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersDoBindingType] `json:"type,required"` // The environment of the script_name to bind to Environment param.Field[string] `json:"environment"` // The script where the Durable Object is defined, if it is external to this Worker ScriptName param.Field[string] `json:"script_name"` }
func (ScriptSettingEditParamsSettingsResultBindingsWorkersDoBinding) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersDoBinding) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersDoBindingType ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersDoBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditParamsSettingsResultBindingsWorkersDoBindingTypeDurableObjectNamespace ScriptSettingEditParamsSettingsResultBindingsWorkersDoBindingType = "durable_object_namespace"
)
type ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBinding ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBinding struct { // The class of resource that the binding provides. Type param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBindingType] `json:"type,required"` }
func (ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBinding) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBinding) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBindingType ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBindingTypeKVNamespace ScriptSettingEditParamsSettingsResultBindingsWorkersKVNamespaceBindingType = "kv_namespace"
)
type ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBinding ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBinding struct { // The class of resource that the binding provides. Type param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBindingType] `json:"type,required"` // ID of the certificate to bind to CertificateID param.Field[string] `json:"certificate_id"` }
func (ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBinding) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBinding) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBindingType ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBindingTypeMTLSCertificate ScriptSettingEditParamsSettingsResultBindingsWorkersMTLSCertBindingType = "mtls_certificate"
)
type ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBinding ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBinding struct { // Name of the Queue to bind to QueueName param.Field[string] `json:"queue_name,required"` // The class of resource that the binding provides. Type param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBindingType] `json:"type,required"` }
func (ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBinding) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBinding) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBindingType ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBindingTypeQueue ScriptSettingEditParamsSettingsResultBindingsWorkersQueueBindingType = "queue"
)
type ScriptSettingEditParamsSettingsResultBindingsWorkersR2Binding ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersR2Binding struct { // R2 bucket to bind to BucketName param.Field[string] `json:"bucket_name,required"` // The class of resource that the binding provides. Type param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersR2BindingType] `json:"type,required"` }
func (ScriptSettingEditParamsSettingsResultBindingsWorkersR2Binding) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersR2Binding) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersR2BindingType ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersR2BindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditParamsSettingsResultBindingsWorkersR2BindingTypeR2Bucket ScriptSettingEditParamsSettingsResultBindingsWorkersR2BindingType = "r2_bucket"
)
type ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBinding ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBinding struct { // Optional environment if the Worker utilizes one. Environment param.Field[string] `json:"environment,required"` // Name of Worker to bind to Service param.Field[string] `json:"service,required"` // The class of resource that the binding provides. Type param.Field[ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBindingType] `json:"type,required"` }
func (ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBinding) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBinding) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBindingType ¶
type ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBindingTypeService ScriptSettingEditParamsSettingsResultBindingsWorkersServiceBindingType = "service"
)
type ScriptSettingEditParamsSettingsResultMigrations ¶
type ScriptSettingEditParamsSettingsResultMigrations interface {
// contains filtered or unexported methods
}
Migrations to apply for Durable Objects associated with this Worker.
Satisfied by workers.ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrations, workers.ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrations.
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrations ¶
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrations struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses param.Field[[]string] `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses param.Field[[]string] `json:"new_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"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses param.Field[[]ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsRenamedClass] `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses param.Field[[]ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsTransferredClass] `json:"transferred_classes"` }
A single set of migrations to apply.
func (ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrations) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrations) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsRenamedClass ¶
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsRenamedClass struct { From param.Field[string] `json:"from"` To param.Field[string] `json:"to"` }
func (ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsRenamedClass) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsRenamedClass) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsTransferredClass ¶
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsTransferredClass struct { From param.Field[string] `json:"from"` FromScript param.Field[string] `json:"from_script"` To param.Field[string] `json:"to"` }
func (ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsTransferredClass) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultMigrationsWorkersSingleStepMigrationsTransferredClass) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrations ¶
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrations 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[[]ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStep] `json:"steps"` }
func (ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrations) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrations) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStep ¶
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStep struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses param.Field[[]string] `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses param.Field[[]string] `json:"new_classes"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses param.Field[[]ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass] `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses param.Field[[]ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass] `json:"transferred_classes"` }
func (ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStep) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStep) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass ¶
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass struct { From param.Field[string] `json:"from"` To param.Field[string] `json:"to"` }
func (ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass ¶
type ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass struct { From param.Field[string] `json:"from"` FromScript param.Field[string] `json:"from_script"` To param.Field[string] `json:"to"` }
func (ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultPlacement ¶
type ScriptSettingEditParamsSettingsResultPlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). // Only `"smart"` is currently supported Mode param.Field[ScriptSettingEditParamsSettingsResultPlacementMode] `json:"mode"` }
func (ScriptSettingEditParamsSettingsResultPlacement) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultPlacement) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsResultPlacementMode ¶
type ScriptSettingEditParamsSettingsResultPlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Only `"smart"` is currently supported
const (
ScriptSettingEditParamsSettingsResultPlacementModeSmart ScriptSettingEditParamsSettingsResultPlacementMode = "smart"
)
type ScriptSettingEditParamsSettingsResultTailConsumer ¶
type ScriptSettingEditParamsSettingsResultTailConsumer struct { // Name of Worker that is to be the consumer. Service param.Field[string] `json:"service,required"` // Optional environment if the Worker utilizes one. Environment param.Field[string] `json:"environment"` // Optional dispatch namespace the script belongs to. Namespace param.Field[string] `json:"namespace"` }
A reference to a script that will consume logs from the attached Worker.
func (ScriptSettingEditParamsSettingsResultTailConsumer) MarshalJSON ¶
func (r ScriptSettingEditParamsSettingsResultTailConsumer) MarshalJSON() (data []byte, err error)
type ScriptSettingEditParamsSettingsSuccess ¶
type ScriptSettingEditParamsSettingsSuccess bool
Whether the API call was successful
const (
ScriptSettingEditParamsSettingsSuccessTrue ScriptSettingEditParamsSettingsSuccess = true
)
type ScriptSettingEditResponse ¶
type ScriptSettingEditResponse struct { // List of bindings attached to this Worker Bindings []ScriptSettingEditResponseBinding `json:"bindings"` // Opt your Worker into changes after this date CompatibilityDate string `json:"compatibility_date"` // Opt your Worker into specific changes CompatibilityFlags []string `json:"compatibility_flags"` // Whether Logpush is turned on for the Worker. Logpush bool `json:"logpush"` // Migrations to apply for Durable Objects associated with this Worker. Migrations ScriptSettingEditResponseMigrations `json:"migrations"` Placement ScriptSettingEditResponsePlacement `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 []ScriptSettingEditResponseTailConsumer `json:"tail_consumers"` // Specifies the usage model for the Worker (e.g. 'bundled' or 'unbound'). UsageModel string `json:"usage_model"` JSON scriptSettingEditResponseJSON `json:"-"` }
func (*ScriptSettingEditResponse) UnmarshalJSON ¶
func (r *ScriptSettingEditResponse) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBinding ¶
type ScriptSettingEditResponseBinding interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Union satisfied by workers.ScriptSettingEditResponseBindingsWorkersKVNamespaceBinding, workers.ScriptSettingEditResponseBindingsWorkersServiceBinding, workers.ScriptSettingEditResponseBindingsWorkersDoBinding, workers.ScriptSettingEditResponseBindingsWorkersR2Binding, workers.ScriptSettingEditResponseBindingsWorkersQueueBinding, workers.ScriptSettingEditResponseBindingsWorkersD1Binding, workers.ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBinding or workers.ScriptSettingEditResponseBindingsWorkersMTLSCertBinding.
type ScriptSettingEditResponseBindingsWorkersD1Binding ¶
type ScriptSettingEditResponseBindingsWorkersD1Binding struct { // ID of the D1 database to bind to ID string `json:"id,required"` // A JavaScript variable name for the binding. Binding string `json:"binding,required"` // The name of the D1 database associated with the 'id' provided. Name string `json:"name,required"` // The class of resource that the binding provides. Type ScriptSettingEditResponseBindingsWorkersD1BindingType `json:"type,required"` JSON scriptSettingEditResponseBindingsWorkersD1BindingJSON `json:"-"` }
func (*ScriptSettingEditResponseBindingsWorkersD1Binding) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersD1Binding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersD1BindingType ¶
type ScriptSettingEditResponseBindingsWorkersD1BindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditResponseBindingsWorkersD1BindingTypeD1 ScriptSettingEditResponseBindingsWorkersD1BindingType = "d1"
)
type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBinding ¶
type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace to bind to Namespace string `json:"namespace,required"` // The class of resource that the binding provides. Type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingType `json:"type,required"` // Outbound worker Outbound ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound `json:"outbound"` JSON scriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingJSON `json:"-"` }
func (*ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBinding) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound ¶
type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters Params []string `json:"params"` // Outbound worker Worker ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker `json:"worker"` JSON scriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundJSON `json:"-"` }
Outbound worker
func (*ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker ¶
type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker struct { // Environment of the outbound worker Environment string `json:"environment"` // Name of the outbound worker Service string `json:"service"` JSON scriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorkerJSON `json:"-"` }
Outbound worker
func (*ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingType ¶
type ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingTypeDispatchNamespace ScriptSettingEditResponseBindingsWorkersDispatchNamespaceBindingType = "dispatch_namespace"
)
type ScriptSettingEditResponseBindingsWorkersDoBinding ¶
type ScriptSettingEditResponseBindingsWorkersDoBinding 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 class of resource that the binding provides. Type ScriptSettingEditResponseBindingsWorkersDoBindingType `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 scriptSettingEditResponseBindingsWorkersDoBindingJSON `json:"-"` }
func (*ScriptSettingEditResponseBindingsWorkersDoBinding) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersDoBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersDoBindingType ¶
type ScriptSettingEditResponseBindingsWorkersDoBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditResponseBindingsWorkersDoBindingTypeDurableObjectNamespace ScriptSettingEditResponseBindingsWorkersDoBindingType = "durable_object_namespace"
)
type ScriptSettingEditResponseBindingsWorkersKVNamespaceBinding ¶
type ScriptSettingEditResponseBindingsWorkersKVNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace identifier tag. NamespaceID string `json:"namespace_id,required"` // The class of resource that the binding provides. Type ScriptSettingEditResponseBindingsWorkersKVNamespaceBindingType `json:"type,required"` JSON scriptSettingEditResponseBindingsWorkersKVNamespaceBindingJSON `json:"-"` }
func (*ScriptSettingEditResponseBindingsWorkersKVNamespaceBinding) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersKVNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersKVNamespaceBindingType ¶
type ScriptSettingEditResponseBindingsWorkersKVNamespaceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditResponseBindingsWorkersKVNamespaceBindingTypeKVNamespace ScriptSettingEditResponseBindingsWorkersKVNamespaceBindingType = "kv_namespace"
)
type ScriptSettingEditResponseBindingsWorkersMTLSCertBinding ¶
type ScriptSettingEditResponseBindingsWorkersMTLSCertBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The class of resource that the binding provides. Type ScriptSettingEditResponseBindingsWorkersMTLSCertBindingType `json:"type,required"` // ID of the certificate to bind to CertificateID string `json:"certificate_id"` JSON scriptSettingEditResponseBindingsWorkersMTLSCertBindingJSON `json:"-"` }
func (*ScriptSettingEditResponseBindingsWorkersMTLSCertBinding) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersMTLSCertBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersMTLSCertBindingType ¶
type ScriptSettingEditResponseBindingsWorkersMTLSCertBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditResponseBindingsWorkersMTLSCertBindingTypeMTLSCertificate ScriptSettingEditResponseBindingsWorkersMTLSCertBindingType = "mtls_certificate"
)
type ScriptSettingEditResponseBindingsWorkersQueueBinding ¶
type ScriptSettingEditResponseBindingsWorkersQueueBinding 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 class of resource that the binding provides. Type ScriptSettingEditResponseBindingsWorkersQueueBindingType `json:"type,required"` JSON scriptSettingEditResponseBindingsWorkersQueueBindingJSON `json:"-"` }
func (*ScriptSettingEditResponseBindingsWorkersQueueBinding) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersQueueBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersQueueBindingType ¶
type ScriptSettingEditResponseBindingsWorkersQueueBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditResponseBindingsWorkersQueueBindingTypeQueue ScriptSettingEditResponseBindingsWorkersQueueBindingType = "queue"
)
type ScriptSettingEditResponseBindingsWorkersR2Binding ¶
type ScriptSettingEditResponseBindingsWorkersR2Binding 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 class of resource that the binding provides. Type ScriptSettingEditResponseBindingsWorkersR2BindingType `json:"type,required"` JSON scriptSettingEditResponseBindingsWorkersR2BindingJSON `json:"-"` }
func (*ScriptSettingEditResponseBindingsWorkersR2Binding) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersR2Binding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersR2BindingType ¶
type ScriptSettingEditResponseBindingsWorkersR2BindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditResponseBindingsWorkersR2BindingTypeR2Bucket ScriptSettingEditResponseBindingsWorkersR2BindingType = "r2_bucket"
)
type ScriptSettingEditResponseBindingsWorkersServiceBinding ¶
type ScriptSettingEditResponseBindingsWorkersServiceBinding 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 class of resource that the binding provides. Type ScriptSettingEditResponseBindingsWorkersServiceBindingType `json:"type,required"` JSON scriptSettingEditResponseBindingsWorkersServiceBindingJSON `json:"-"` }
func (*ScriptSettingEditResponseBindingsWorkersServiceBinding) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseBindingsWorkersServiceBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseBindingsWorkersServiceBindingType ¶
type ScriptSettingEditResponseBindingsWorkersServiceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingEditResponseBindingsWorkersServiceBindingTypeService ScriptSettingEditResponseBindingsWorkersServiceBindingType = "service"
)
type ScriptSettingEditResponseEnvelope ¶
type ScriptSettingEditResponseEnvelope struct { Errors []ScriptSettingEditResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptSettingEditResponseEnvelopeMessages `json:"messages,required"` Result ScriptSettingEditResponse `json:"result,required"` // Whether the API call was successful Success ScriptSettingEditResponseEnvelopeSuccess `json:"success,required"` JSON scriptSettingEditResponseEnvelopeJSON `json:"-"` }
func (*ScriptSettingEditResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseEnvelopeErrors ¶
type ScriptSettingEditResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptSettingEditResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptSettingEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseEnvelopeMessages ¶
type ScriptSettingEditResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptSettingEditResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptSettingEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseEnvelopeSuccess ¶
type ScriptSettingEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptSettingEditResponseEnvelopeSuccessTrue ScriptSettingEditResponseEnvelopeSuccess = true
)
type ScriptSettingEditResponseMigrations ¶
type ScriptSettingEditResponseMigrations interface {
// contains filtered or unexported methods
}
Migrations to apply for Durable Objects associated with this Worker.
Union satisfied by workers.ScriptSettingEditResponseMigrationsWorkersSingleStepMigrations or workers.ScriptSettingEditResponseMigrationsWorkersSteppedMigrations.
type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrations ¶
type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrations struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses []string `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses []string `json:"new_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"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses []ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses []ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass `json:"transferred_classes"` JSON scriptSettingEditResponseMigrationsWorkersSingleStepMigrationsJSON `json:"-"` }
A single set of migrations to apply.
func (*ScriptSettingEditResponseMigrationsWorkersSingleStepMigrations) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseMigrationsWorkersSingleStepMigrations) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass ¶
type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass struct { From string `json:"from"` To string `json:"to"` JSON scriptSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClassJSON `json:"-"` }
func (*ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass ¶
type ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass struct { From string `json:"from"` FromScript string `json:"from_script"` To string `json:"to"` JSON scriptSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClassJSON `json:"-"` }
func (*ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseMigrationsWorkersSteppedMigrations ¶
type ScriptSettingEditResponseMigrationsWorkersSteppedMigrations 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 []ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStep `json:"steps"` JSON scriptSettingEditResponseMigrationsWorkersSteppedMigrationsJSON `json:"-"` }
func (*ScriptSettingEditResponseMigrationsWorkersSteppedMigrations) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseMigrationsWorkersSteppedMigrations) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStep ¶
type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStep struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses []string `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses []string `json:"new_classes"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses []ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses []ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass `json:"transferred_classes"` JSON scriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepJSON `json:"-"` }
func (*ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStep) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStep) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass ¶
type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass struct { From string `json:"from"` To string `json:"to"` JSON scriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClassJSON `json:"-"` }
func (*ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass ¶
type ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass struct { From string `json:"from"` FromScript string `json:"from_script"` To string `json:"to"` JSON scriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClassJSON `json:"-"` }
func (*ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponsePlacement ¶
type ScriptSettingEditResponsePlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). // Only `"smart"` is currently supported Mode ScriptSettingEditResponsePlacementMode `json:"mode"` JSON scriptSettingEditResponsePlacementJSON `json:"-"` }
func (*ScriptSettingEditResponsePlacement) UnmarshalJSON ¶
func (r *ScriptSettingEditResponsePlacement) UnmarshalJSON(data []byte) (err error)
type ScriptSettingEditResponsePlacementMode ¶
type ScriptSettingEditResponsePlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Only `"smart"` is currently supported
const (
ScriptSettingEditResponsePlacementModeSmart ScriptSettingEditResponsePlacementMode = "smart"
)
type ScriptSettingEditResponseTailConsumer ¶
type ScriptSettingEditResponseTailConsumer struct { // Name of Worker that is to be the consumer. Service string `json:"service,required"` // Optional environment if the Worker utilizes one. Environment string `json:"environment"` // Optional dispatch namespace the script belongs to. Namespace string `json:"namespace"` JSON scriptSettingEditResponseTailConsumerJSON `json:"-"` }
A reference to a script that will consume logs from the attached Worker.
func (*ScriptSettingEditResponseTailConsumer) UnmarshalJSON ¶
func (r *ScriptSettingEditResponseTailConsumer) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetParams ¶
type ScriptSettingGetResponse ¶
type ScriptSettingGetResponse struct { // List of bindings attached to this Worker Bindings []ScriptSettingGetResponseBinding `json:"bindings"` // Opt your Worker into changes after this date CompatibilityDate string `json:"compatibility_date"` // Opt your Worker into specific changes CompatibilityFlags []string `json:"compatibility_flags"` // Whether Logpush is turned on for the Worker. Logpush bool `json:"logpush"` // Migrations to apply for Durable Objects associated with this Worker. Migrations ScriptSettingGetResponseMigrations `json:"migrations"` Placement ScriptSettingGetResponsePlacement `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 []ScriptSettingGetResponseTailConsumer `json:"tail_consumers"` // Specifies the usage model for the Worker (e.g. 'bundled' or 'unbound'). UsageModel string `json:"usage_model"` JSON scriptSettingGetResponseJSON `json:"-"` }
func (*ScriptSettingGetResponse) UnmarshalJSON ¶
func (r *ScriptSettingGetResponse) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBinding ¶
type ScriptSettingGetResponseBinding interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Union satisfied by workers.ScriptSettingGetResponseBindingsWorkersKVNamespaceBinding, workers.ScriptSettingGetResponseBindingsWorkersServiceBinding, workers.ScriptSettingGetResponseBindingsWorkersDoBinding, workers.ScriptSettingGetResponseBindingsWorkersR2Binding, workers.ScriptSettingGetResponseBindingsWorkersQueueBinding, workers.ScriptSettingGetResponseBindingsWorkersD1Binding, workers.ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBinding or workers.ScriptSettingGetResponseBindingsWorkersMTLSCertBinding.
type ScriptSettingGetResponseBindingsWorkersD1Binding ¶
type ScriptSettingGetResponseBindingsWorkersD1Binding struct { // ID of the D1 database to bind to ID string `json:"id,required"` // A JavaScript variable name for the binding. Binding string `json:"binding,required"` // The name of the D1 database associated with the 'id' provided. Name string `json:"name,required"` // The class of resource that the binding provides. Type ScriptSettingGetResponseBindingsWorkersD1BindingType `json:"type,required"` JSON scriptSettingGetResponseBindingsWorkersD1BindingJSON `json:"-"` }
func (*ScriptSettingGetResponseBindingsWorkersD1Binding) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersD1Binding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersD1BindingType ¶
type ScriptSettingGetResponseBindingsWorkersD1BindingType string
The class of resource that the binding provides.
const (
ScriptSettingGetResponseBindingsWorkersD1BindingTypeD1 ScriptSettingGetResponseBindingsWorkersD1BindingType = "d1"
)
type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBinding ¶
type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace to bind to Namespace string `json:"namespace,required"` // The class of resource that the binding provides. Type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingType `json:"type,required"` // Outbound worker Outbound ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound `json:"outbound"` JSON scriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingJSON `json:"-"` }
func (*ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBinding) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound ¶
type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters Params []string `json:"params"` // Outbound worker Worker ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker `json:"worker"` JSON scriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundJSON `json:"-"` }
Outbound worker
func (*ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker ¶
type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker struct { // Environment of the outbound worker Environment string `json:"environment"` // Name of the outbound worker Service string `json:"service"` JSON scriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorkerJSON `json:"-"` }
Outbound worker
func (*ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingType ¶
type ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingTypeDispatchNamespace ScriptSettingGetResponseBindingsWorkersDispatchNamespaceBindingType = "dispatch_namespace"
)
type ScriptSettingGetResponseBindingsWorkersDoBinding ¶
type ScriptSettingGetResponseBindingsWorkersDoBinding 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 class of resource that the binding provides. Type ScriptSettingGetResponseBindingsWorkersDoBindingType `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 scriptSettingGetResponseBindingsWorkersDoBindingJSON `json:"-"` }
func (*ScriptSettingGetResponseBindingsWorkersDoBinding) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersDoBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersDoBindingType ¶
type ScriptSettingGetResponseBindingsWorkersDoBindingType string
The class of resource that the binding provides.
const (
ScriptSettingGetResponseBindingsWorkersDoBindingTypeDurableObjectNamespace ScriptSettingGetResponseBindingsWorkersDoBindingType = "durable_object_namespace"
)
type ScriptSettingGetResponseBindingsWorkersKVNamespaceBinding ¶
type ScriptSettingGetResponseBindingsWorkersKVNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace identifier tag. NamespaceID string `json:"namespace_id,required"` // The class of resource that the binding provides. Type ScriptSettingGetResponseBindingsWorkersKVNamespaceBindingType `json:"type,required"` JSON scriptSettingGetResponseBindingsWorkersKVNamespaceBindingJSON `json:"-"` }
func (*ScriptSettingGetResponseBindingsWorkersKVNamespaceBinding) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersKVNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersKVNamespaceBindingType ¶
type ScriptSettingGetResponseBindingsWorkersKVNamespaceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingGetResponseBindingsWorkersKVNamespaceBindingTypeKVNamespace ScriptSettingGetResponseBindingsWorkersKVNamespaceBindingType = "kv_namespace"
)
type ScriptSettingGetResponseBindingsWorkersMTLSCertBinding ¶
type ScriptSettingGetResponseBindingsWorkersMTLSCertBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The class of resource that the binding provides. Type ScriptSettingGetResponseBindingsWorkersMTLSCertBindingType `json:"type,required"` // ID of the certificate to bind to CertificateID string `json:"certificate_id"` JSON scriptSettingGetResponseBindingsWorkersMTLSCertBindingJSON `json:"-"` }
func (*ScriptSettingGetResponseBindingsWorkersMTLSCertBinding) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersMTLSCertBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersMTLSCertBindingType ¶
type ScriptSettingGetResponseBindingsWorkersMTLSCertBindingType string
The class of resource that the binding provides.
const (
ScriptSettingGetResponseBindingsWorkersMTLSCertBindingTypeMTLSCertificate ScriptSettingGetResponseBindingsWorkersMTLSCertBindingType = "mtls_certificate"
)
type ScriptSettingGetResponseBindingsWorkersQueueBinding ¶
type ScriptSettingGetResponseBindingsWorkersQueueBinding 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 class of resource that the binding provides. Type ScriptSettingGetResponseBindingsWorkersQueueBindingType `json:"type,required"` JSON scriptSettingGetResponseBindingsWorkersQueueBindingJSON `json:"-"` }
func (*ScriptSettingGetResponseBindingsWorkersQueueBinding) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersQueueBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersQueueBindingType ¶
type ScriptSettingGetResponseBindingsWorkersQueueBindingType string
The class of resource that the binding provides.
const (
ScriptSettingGetResponseBindingsWorkersQueueBindingTypeQueue ScriptSettingGetResponseBindingsWorkersQueueBindingType = "queue"
)
type ScriptSettingGetResponseBindingsWorkersR2Binding ¶
type ScriptSettingGetResponseBindingsWorkersR2Binding 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 class of resource that the binding provides. Type ScriptSettingGetResponseBindingsWorkersR2BindingType `json:"type,required"` JSON scriptSettingGetResponseBindingsWorkersR2BindingJSON `json:"-"` }
func (*ScriptSettingGetResponseBindingsWorkersR2Binding) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersR2Binding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersR2BindingType ¶
type ScriptSettingGetResponseBindingsWorkersR2BindingType string
The class of resource that the binding provides.
const (
ScriptSettingGetResponseBindingsWorkersR2BindingTypeR2Bucket ScriptSettingGetResponseBindingsWorkersR2BindingType = "r2_bucket"
)
type ScriptSettingGetResponseBindingsWorkersServiceBinding ¶
type ScriptSettingGetResponseBindingsWorkersServiceBinding 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 class of resource that the binding provides. Type ScriptSettingGetResponseBindingsWorkersServiceBindingType `json:"type,required"` JSON scriptSettingGetResponseBindingsWorkersServiceBindingJSON `json:"-"` }
func (*ScriptSettingGetResponseBindingsWorkersServiceBinding) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseBindingsWorkersServiceBinding) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseBindingsWorkersServiceBindingType ¶
type ScriptSettingGetResponseBindingsWorkersServiceBindingType string
The class of resource that the binding provides.
const (
ScriptSettingGetResponseBindingsWorkersServiceBindingTypeService ScriptSettingGetResponseBindingsWorkersServiceBindingType = "service"
)
type ScriptSettingGetResponseEnvelope ¶
type ScriptSettingGetResponseEnvelope struct { Errors []ScriptSettingGetResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptSettingGetResponseEnvelopeMessages `json:"messages,required"` Result ScriptSettingGetResponse `json:"result,required"` // Whether the API call was successful Success ScriptSettingGetResponseEnvelopeSuccess `json:"success,required"` JSON scriptSettingGetResponseEnvelopeJSON `json:"-"` }
func (*ScriptSettingGetResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseEnvelopeErrors ¶
type ScriptSettingGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptSettingGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptSettingGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseEnvelopeMessages ¶
type ScriptSettingGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptSettingGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptSettingGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseEnvelopeSuccess ¶
type ScriptSettingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptSettingGetResponseEnvelopeSuccessTrue ScriptSettingGetResponseEnvelopeSuccess = true
)
type ScriptSettingGetResponseMigrations ¶
type ScriptSettingGetResponseMigrations interface {
// contains filtered or unexported methods
}
Migrations to apply for Durable Objects associated with this Worker.
Union satisfied by workers.ScriptSettingGetResponseMigrationsWorkersSingleStepMigrations or workers.ScriptSettingGetResponseMigrationsWorkersSteppedMigrations.
type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrations ¶
type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrations struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses []string `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses []string `json:"new_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"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses []ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses []ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass `json:"transferred_classes"` JSON scriptSettingGetResponseMigrationsWorkersSingleStepMigrationsJSON `json:"-"` }
A single set of migrations to apply.
func (*ScriptSettingGetResponseMigrationsWorkersSingleStepMigrations) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseMigrationsWorkersSingleStepMigrations) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass ¶
type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass struct { From string `json:"from"` To string `json:"to"` JSON scriptSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClassJSON `json:"-"` }
func (*ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass ¶
type ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass struct { From string `json:"from"` FromScript string `json:"from_script"` To string `json:"to"` JSON scriptSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClassJSON `json:"-"` }
func (*ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseMigrationsWorkersSteppedMigrations ¶
type ScriptSettingGetResponseMigrationsWorkersSteppedMigrations 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 []ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStep `json:"steps"` JSON scriptSettingGetResponseMigrationsWorkersSteppedMigrationsJSON `json:"-"` }
func (*ScriptSettingGetResponseMigrationsWorkersSteppedMigrations) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseMigrationsWorkersSteppedMigrations) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStep ¶
type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStep struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses []string `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses []string `json:"new_classes"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses []ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses []ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass `json:"transferred_classes"` JSON scriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepJSON `json:"-"` }
func (*ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStep) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStep) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass ¶
type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass struct { From string `json:"from"` To string `json:"to"` JSON scriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClassJSON `json:"-"` }
func (*ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass ¶
type ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass struct { From string `json:"from"` FromScript string `json:"from_script"` To string `json:"to"` JSON scriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClassJSON `json:"-"` }
func (*ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponsePlacement ¶
type ScriptSettingGetResponsePlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). // Only `"smart"` is currently supported Mode ScriptSettingGetResponsePlacementMode `json:"mode"` JSON scriptSettingGetResponsePlacementJSON `json:"-"` }
func (*ScriptSettingGetResponsePlacement) UnmarshalJSON ¶
func (r *ScriptSettingGetResponsePlacement) UnmarshalJSON(data []byte) (err error)
type ScriptSettingGetResponsePlacementMode ¶
type ScriptSettingGetResponsePlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Only `"smart"` is currently supported
const (
ScriptSettingGetResponsePlacementModeSmart ScriptSettingGetResponsePlacementMode = "smart"
)
type ScriptSettingGetResponseTailConsumer ¶
type ScriptSettingGetResponseTailConsumer struct { // Name of Worker that is to be the consumer. Service string `json:"service,required"` // Optional environment if the Worker utilizes one. Environment string `json:"environment"` // Optional dispatch namespace the script belongs to. Namespace string `json:"namespace"` JSON scriptSettingGetResponseTailConsumerJSON `json:"-"` }
A reference to a script that will consume logs from the attached Worker.
func (*ScriptSettingGetResponseTailConsumer) UnmarshalJSON ¶
func (r *ScriptSettingGetResponseTailConsumer) UnmarshalJSON(data []byte) (err error)
type ScriptSettingService ¶
type ScriptSettingService struct {
Options []option.RequestOption
}
ScriptSettingService 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 NewScriptSettingService method instead.
func NewScriptSettingService ¶
func NewScriptSettingService(opts ...option.RequestOption) (r *ScriptSettingService)
NewScriptSettingService 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 (*ScriptSettingService) Edit ¶
func (r *ScriptSettingService) Edit(ctx context.Context, scriptName string, params ScriptSettingEditParams, opts ...option.RequestOption) (res *ScriptSettingEditResponse, err error)
Patch script metadata or config, such as bindings or usage model
func (*ScriptSettingService) Get ¶
func (r *ScriptSettingService) Get(ctx context.Context, scriptName string, query ScriptSettingGetParams, opts ...option.RequestOption) (res *ScriptSettingGetResponse, err error)
Get script metadata and config, such as bindings or usage model
type ScriptTailDeleteParams ¶
type ScriptTailDeleteResponse ¶ added in v2.1.0
type ScriptTailDeleteResponse interface {
ImplementsWorkersScriptTailDeleteResponse()
}
Union satisfied by workers.ScriptTailDeleteResponseUnknown, workers.ScriptTailDeleteResponseArray or shared.UnionString.
type ScriptTailDeleteResponseArray ¶
type ScriptTailDeleteResponseArray []interface{}
func (ScriptTailDeleteResponseArray) ImplementsWorkersScriptTailDeleteResponse ¶
func (r ScriptTailDeleteResponseArray) ImplementsWorkersScriptTailDeleteResponse()
type ScriptTailDeleteResponseEnvelope ¶
type ScriptTailDeleteResponseEnvelope struct { Errors []ScriptTailDeleteResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptTailDeleteResponseEnvelopeMessages `json:"messages,required"` Result ScriptTailDeleteResponse `json:"result,required"` // Whether the API call was successful Success ScriptTailDeleteResponseEnvelopeSuccess `json:"success,required"` JSON scriptTailDeleteResponseEnvelopeJSON `json:"-"` }
func (*ScriptTailDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptTailDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptTailDeleteResponseEnvelopeErrors ¶
type ScriptTailDeleteResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptTailDeleteResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptTailDeleteResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptTailDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptTailDeleteResponseEnvelopeMessages ¶
type ScriptTailDeleteResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptTailDeleteResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptTailDeleteResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptTailDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptTailDeleteResponseEnvelopeSuccess ¶
type ScriptTailDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptTailDeleteResponseEnvelopeSuccessTrue ScriptTailDeleteResponseEnvelopeSuccess = true
)
type ScriptTailGetParams ¶
type ScriptTailGetResponse ¶
type ScriptTailGetResponse struct { ID interface{} `json:"id"` ExpiresAt interface{} `json:"expires_at"` URL interface{} `json:"url"` JSON scriptTailGetResponseJSON `json:"-"` }
func (*ScriptTailGetResponse) UnmarshalJSON ¶
func (r *ScriptTailGetResponse) UnmarshalJSON(data []byte) (err error)
type ScriptTailGetResponseEnvelope ¶
type ScriptTailGetResponseEnvelope struct { Errors []ScriptTailGetResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptTailGetResponseEnvelopeMessages `json:"messages,required"` Result ScriptTailGetResponse `json:"result,required"` // Whether the API call was successful Success ScriptTailGetResponseEnvelopeSuccess `json:"success,required"` JSON scriptTailGetResponseEnvelopeJSON `json:"-"` }
func (*ScriptTailGetResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptTailGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptTailGetResponseEnvelopeErrors ¶
type ScriptTailGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptTailGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptTailGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptTailGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptTailGetResponseEnvelopeMessages ¶
type ScriptTailGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptTailGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptTailGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptTailGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptTailGetResponseEnvelopeSuccess ¶
type ScriptTailGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptTailGetResponseEnvelopeSuccessTrue ScriptTailGetResponseEnvelopeSuccess = true
)
type ScriptTailNewParams ¶
type ScriptTailNewResponse ¶
type ScriptTailNewResponse struct { ID interface{} `json:"id"` ExpiresAt interface{} `json:"expires_at"` URL interface{} `json:"url"` JSON scriptTailNewResponseJSON `json:"-"` }
func (*ScriptTailNewResponse) UnmarshalJSON ¶
func (r *ScriptTailNewResponse) UnmarshalJSON(data []byte) (err error)
type ScriptTailNewResponseEnvelope ¶
type ScriptTailNewResponseEnvelope struct { Errors []ScriptTailNewResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptTailNewResponseEnvelopeMessages `json:"messages,required"` Result ScriptTailNewResponse `json:"result,required"` // Whether the API call was successful Success ScriptTailNewResponseEnvelopeSuccess `json:"success,required"` JSON scriptTailNewResponseEnvelopeJSON `json:"-"` }
func (*ScriptTailNewResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptTailNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptTailNewResponseEnvelopeErrors ¶
type ScriptTailNewResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptTailNewResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptTailNewResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptTailNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptTailNewResponseEnvelopeMessages ¶
type ScriptTailNewResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptTailNewResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptTailNewResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptTailNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptTailNewResponseEnvelopeSuccess ¶
type ScriptTailNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptTailNewResponseEnvelopeSuccessTrue ScriptTailNewResponseEnvelopeSuccess = true
)
type ScriptTailService ¶
type ScriptTailService struct {
Options []option.RequestOption
}
ScriptTailService 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 NewScriptTailService method instead.
func NewScriptTailService ¶
func NewScriptTailService(opts ...option.RequestOption) (r *ScriptTailService)
NewScriptTailService 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 (*ScriptTailService) Delete ¶
func (r *ScriptTailService) Delete(ctx context.Context, scriptName string, id string, body ScriptTailDeleteParams, opts ...option.RequestOption) (res *ScriptTailDeleteResponse, err error)
Deletes a tail from a Worker.
func (*ScriptTailService) Get ¶
func (r *ScriptTailService) Get(ctx context.Context, scriptName string, query ScriptTailGetParams, opts ...option.RequestOption) (res *ScriptTailGetResponse, err error)
Get list of tails currently deployed on a Worker.
func (*ScriptTailService) New ¶
func (r *ScriptTailService) New(ctx context.Context, scriptName string, body ScriptTailNewParams, opts ...option.RequestOption) (res *ScriptTailNewResponse, err error)
Starts a tail that receives logs and exception from a Worker.
type ScriptUpdateParams ¶
type ScriptUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // Rollback to provided deployment based on deployment ID. Request body will only // parse a "message" part. You can learn more about deployments // [here](https://developers.cloudflare.com/workers/platform/deployments/). RollbackTo param.Field[string] `query:"rollback_to"` // A module comprising a Worker script, often a javascript file. Multiple modules // may be provided as separate named parts, but at least one module must be present // and referenced in the metadata as `main_module` or `body_part` by part name. AnyPartName param.Field[[]io.Reader] `json:"<any part name>" format:"binary"` // Rollback message to be associated with this deployment. Only parsed when query // param `"rollback_to"` is present. Message param.Field[string] `json:"message"` // JSON encoded metadata about the uploaded parts and Worker configuration. Metadata param.Field[ScriptUpdateParamsMetadata] `json:"metadata"` }
func (ScriptUpdateParams) MarshalMultipart ¶
func (r ScriptUpdateParams) MarshalMultipart() (data []byte, contentType string, err error)
func (ScriptUpdateParams) URLQuery ¶
func (r ScriptUpdateParams) URLQuery() (v url.Values)
URLQuery serializes ScriptUpdateParams's query parameters as `url.Values`.
type ScriptUpdateParamsMetadata ¶
type ScriptUpdateParamsMetadata struct { // List of bindings available to the worker. Bindings param.Field[[]interface{}] `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"` // 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[ScriptUpdateParamsMetadataMigrations] `json:"migrations"` Placement param.Field[ScriptUpdateParamsMetadataPlacement] `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[[]ScriptUpdateParamsMetadataTailConsumer] `json:"tail_consumers"` // Usage model to apply to invocations. UsageModel param.Field[ScriptUpdateParamsMetadataUsageModel] `json:"usage_model"` // Key-value pairs to use as tags for this version of this Worker VersionTags param.Field[interface{}] `json:"version_tags"` }
JSON encoded metadata about the uploaded parts and Worker configuration.
func (ScriptUpdateParamsMetadata) MarshalJSON ¶
func (r ScriptUpdateParamsMetadata) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataMigrations ¶
type ScriptUpdateParamsMetadataMigrations interface {
// contains filtered or unexported methods
}
Migrations to apply for Durable Objects associated with this Worker.
Satisfied by workers.ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrations, workers.ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrations.
type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrations ¶
type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrations struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses param.Field[[]string] `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses param.Field[[]string] `json:"new_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"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses param.Field[[]ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsRenamedClass] `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses param.Field[[]ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsTransferredClass] `json:"transferred_classes"` }
A single set of migrations to apply.
func (ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrations) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrations) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsRenamedClass ¶
type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsRenamedClass struct { From param.Field[string] `json:"from"` To param.Field[string] `json:"to"` }
func (ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsRenamedClass) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsRenamedClass) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsTransferredClass ¶
type ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsTransferredClass struct { From param.Field[string] `json:"from"` FromScript param.Field[string] `json:"from_script"` To param.Field[string] `json:"to"` }
func (ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsTransferredClass) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataMigrationsWorkersSingleStepMigrationsTransferredClass) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrations ¶
type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrations 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[[]ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStep] `json:"steps"` }
func (ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrations) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrations) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStep ¶
type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStep struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses param.Field[[]string] `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses param.Field[[]string] `json:"new_classes"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses param.Field[[]ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsRenamedClass] `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses param.Field[[]ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsTransferredClass] `json:"transferred_classes"` }
func (ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStep) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStep) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsRenamedClass ¶
type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsRenamedClass struct { From param.Field[string] `json:"from"` To param.Field[string] `json:"to"` }
func (ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsRenamedClass) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsRenamedClass) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsTransferredClass ¶
type ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsTransferredClass struct { From param.Field[string] `json:"from"` FromScript param.Field[string] `json:"from_script"` To param.Field[string] `json:"to"` }
func (ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsTransferredClass) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataMigrationsWorkersSteppedMigrationsStepsTransferredClass) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataPlacement ¶
type ScriptUpdateParamsMetadataPlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). // Only `"smart"` is currently supported Mode param.Field[ScriptUpdateParamsMetadataPlacementMode] `json:"mode"` }
func (ScriptUpdateParamsMetadataPlacement) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataPlacement) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataPlacementMode ¶
type ScriptUpdateParamsMetadataPlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Only `"smart"` is currently supported
const (
ScriptUpdateParamsMetadataPlacementModeSmart ScriptUpdateParamsMetadataPlacementMode = "smart"
)
type ScriptUpdateParamsMetadataTailConsumer ¶
type ScriptUpdateParamsMetadataTailConsumer struct { // Name of Worker that is to be the consumer. Service param.Field[string] `json:"service,required"` // Optional environment if the Worker utilizes one. Environment param.Field[string] `json:"environment"` // Optional dispatch namespace the script belongs to. Namespace param.Field[string] `json:"namespace"` }
A reference to a script that will consume logs from the attached Worker.
func (ScriptUpdateParamsMetadataTailConsumer) MarshalJSON ¶
func (r ScriptUpdateParamsMetadataTailConsumer) MarshalJSON() (data []byte, err error)
type ScriptUpdateParamsMetadataUsageModel ¶
type ScriptUpdateParamsMetadataUsageModel string
Usage model to apply to invocations.
const ( ScriptUpdateParamsMetadataUsageModelBundled ScriptUpdateParamsMetadataUsageModel = "bundled" ScriptUpdateParamsMetadataUsageModelUnbound ScriptUpdateParamsMetadataUsageModel = "unbound" )
type ScriptUpdateResponseEnvelope ¶
type ScriptUpdateResponseEnvelope struct { Errors []ScriptUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptUpdateResponseEnvelopeMessages `json:"messages,required"` Result WorkersScript `json:"result,required"` // Whether the API call was successful Success ScriptUpdateResponseEnvelopeSuccess `json:"success,required"` JSON scriptUpdateResponseEnvelopeJSON `json:"-"` }
func (*ScriptUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptUpdateResponseEnvelopeErrors ¶
type ScriptUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptUpdateResponseEnvelopeMessages ¶
type ScriptUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptUpdateResponseEnvelopeSuccess ¶
type ScriptUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptUpdateResponseEnvelopeSuccessTrue ScriptUpdateResponseEnvelopeSuccess = true
)
type ScriptUsageModelGetResponse ¶
type ScriptUsageModelGetResponse struct { UsageModel interface{} `json:"usage_model"` JSON scriptUsageModelGetResponseJSON `json:"-"` }
func (*ScriptUsageModelGetResponse) UnmarshalJSON ¶
func (r *ScriptUsageModelGetResponse) UnmarshalJSON(data []byte) (err error)
type ScriptUsageModelGetResponseEnvelope ¶
type ScriptUsageModelGetResponseEnvelope struct { Errors []ScriptUsageModelGetResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptUsageModelGetResponseEnvelopeMessages `json:"messages,required"` Result ScriptUsageModelGetResponse `json:"result,required"` // Whether the API call was successful Success ScriptUsageModelGetResponseEnvelopeSuccess `json:"success,required"` JSON scriptUsageModelGetResponseEnvelopeJSON `json:"-"` }
func (*ScriptUsageModelGetResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptUsageModelGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptUsageModelGetResponseEnvelopeErrors ¶
type ScriptUsageModelGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptUsageModelGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptUsageModelGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptUsageModelGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptUsageModelGetResponseEnvelopeMessages ¶
type ScriptUsageModelGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptUsageModelGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptUsageModelGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptUsageModelGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptUsageModelGetResponseEnvelopeSuccess ¶
type ScriptUsageModelGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptUsageModelGetResponseEnvelopeSuccessTrue ScriptUsageModelGetResponseEnvelopeSuccess = true
)
type ScriptUsageModelService ¶
type ScriptUsageModelService struct {
Options []option.RequestOption
}
ScriptUsageModelService 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 NewScriptUsageModelService method instead.
func NewScriptUsageModelService ¶
func NewScriptUsageModelService(opts ...option.RequestOption) (r *ScriptUsageModelService)
NewScriptUsageModelService 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 (*ScriptUsageModelService) Get ¶
func (r *ScriptUsageModelService) Get(ctx context.Context, scriptName string, query ScriptUsageModelGetParams, opts ...option.RequestOption) (res *ScriptUsageModelGetResponse, err error)
Fetches the Usage Model for a given Worker.
func (*ScriptUsageModelService) Update ¶
func (r *ScriptUsageModelService) Update(ctx context.Context, scriptName string, params ScriptUsageModelUpdateParams, opts ...option.RequestOption) (res *ScriptUsageModelUpdateResponse, err error)
Updates the Usage Model for a given Worker. Requires a Workers Paid subscription.
type ScriptUsageModelUpdateParams ¶
type ScriptUsageModelUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Body param.Field[interface{}] `json:"body,required"` }
func (ScriptUsageModelUpdateParams) MarshalJSON ¶
func (r ScriptUsageModelUpdateParams) MarshalJSON() (data []byte, err error)
type ScriptUsageModelUpdateResponse ¶
type ScriptUsageModelUpdateResponse struct { UsageModel interface{} `json:"usage_model"` JSON scriptUsageModelUpdateResponseJSON `json:"-"` }
func (*ScriptUsageModelUpdateResponse) UnmarshalJSON ¶
func (r *ScriptUsageModelUpdateResponse) UnmarshalJSON(data []byte) (err error)
type ScriptUsageModelUpdateResponseEnvelope ¶
type ScriptUsageModelUpdateResponseEnvelope struct { Errors []ScriptUsageModelUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []ScriptUsageModelUpdateResponseEnvelopeMessages `json:"messages,required"` Result ScriptUsageModelUpdateResponse `json:"result,required"` // Whether the API call was successful Success ScriptUsageModelUpdateResponseEnvelopeSuccess `json:"success,required"` JSON scriptUsageModelUpdateResponseEnvelopeJSON `json:"-"` }
func (*ScriptUsageModelUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *ScriptUsageModelUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ScriptUsageModelUpdateResponseEnvelopeErrors ¶
type ScriptUsageModelUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptUsageModelUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*ScriptUsageModelUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ScriptUsageModelUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ScriptUsageModelUpdateResponseEnvelopeMessages ¶
type ScriptUsageModelUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON scriptUsageModelUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*ScriptUsageModelUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ScriptUsageModelUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ScriptUsageModelUpdateResponseEnvelopeSuccess ¶
type ScriptUsageModelUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ScriptUsageModelUpdateResponseEnvelopeSuccessTrue ScriptUsageModelUpdateResponseEnvelopeSuccess = true
)
type ServiceEnvironmentContentService ¶
type ServiceEnvironmentContentService struct {
Options []option.RequestOption
}
ServiceEnvironmentContentService 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 NewServiceEnvironmentContentService method instead.
func NewServiceEnvironmentContentService ¶
func NewServiceEnvironmentContentService(opts ...option.RequestOption) (r *ServiceEnvironmentContentService)
NewServiceEnvironmentContentService 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 (*ServiceEnvironmentContentService) Get ¶
func (r *ServiceEnvironmentContentService) Get(ctx context.Context, serviceName string, environmentName string, query ServiceEnvironmentContentGetParams, opts ...option.RequestOption) (res *http.Response, err error)
Get script content from a worker with an environment
func (*ServiceEnvironmentContentService) Update ¶
func (r *ServiceEnvironmentContentService) Update(ctx context.Context, serviceName string, environmentName string, params ServiceEnvironmentContentUpdateParams, opts ...option.RequestOption) (res *WorkersScript, err error)
Put script content from a worker with an environment
type ServiceEnvironmentContentUpdateParams ¶
type ServiceEnvironmentContentUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // A module comprising a Worker script, often a javascript file. Multiple modules // may be provided as separate named parts, but at least one module must be // present. This should be referenced either in the metadata as `main_module` // (esm)/`body_part` (service worker) or as a header `CF-WORKER-MAIN-MODULE-PART` // (esm) /`CF-WORKER-BODY-PART` (service worker) by part name. AnyPartName param.Field[[]io.Reader] `json:"<any part name>" format:"binary"` // JSON encoded metadata about the uploaded parts and Worker configuration. Metadata param.Field[ServiceEnvironmentContentUpdateParamsMetadata] `json:"metadata"` CfWorkerBodyPart param.Field[string] `header:"CF-WORKER-BODY-PART"` CfWorkerMainModulePart param.Field[string] `header:"CF-WORKER-MAIN-MODULE-PART"` }
func (ServiceEnvironmentContentUpdateParams) MarshalMultipart ¶
func (r ServiceEnvironmentContentUpdateParams) MarshalMultipart() (data []byte, contentType string, err error)
type ServiceEnvironmentContentUpdateParamsMetadata ¶
type ServiceEnvironmentContentUpdateParamsMetadata struct { // 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"` // 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"` }
JSON encoded metadata about the uploaded parts and Worker configuration.
func (ServiceEnvironmentContentUpdateParamsMetadata) MarshalJSON ¶
func (r ServiceEnvironmentContentUpdateParamsMetadata) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentContentUpdateResponseEnvelope ¶
type ServiceEnvironmentContentUpdateResponseEnvelope struct { Errors []ServiceEnvironmentContentUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []ServiceEnvironmentContentUpdateResponseEnvelopeMessages `json:"messages,required"` Result WorkersScript `json:"result,required"` // Whether the API call was successful Success ServiceEnvironmentContentUpdateResponseEnvelopeSuccess `json:"success,required"` JSON serviceEnvironmentContentUpdateResponseEnvelopeJSON `json:"-"` }
func (*ServiceEnvironmentContentUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *ServiceEnvironmentContentUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentContentUpdateResponseEnvelopeErrors ¶
type ServiceEnvironmentContentUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON serviceEnvironmentContentUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*ServiceEnvironmentContentUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ServiceEnvironmentContentUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentContentUpdateResponseEnvelopeMessages ¶
type ServiceEnvironmentContentUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON serviceEnvironmentContentUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*ServiceEnvironmentContentUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ServiceEnvironmentContentUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentContentUpdateResponseEnvelopeSuccess ¶
type ServiceEnvironmentContentUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ServiceEnvironmentContentUpdateResponseEnvelopeSuccessTrue ServiceEnvironmentContentUpdateResponseEnvelopeSuccess = true
)
type ServiceEnvironmentService ¶
type ServiceEnvironmentService struct { Options []option.RequestOption Content *ServiceEnvironmentContentService Settings *ServiceEnvironmentSettingService }
ServiceEnvironmentService 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 NewServiceEnvironmentService method instead.
func NewServiceEnvironmentService ¶
func NewServiceEnvironmentService(opts ...option.RequestOption) (r *ServiceEnvironmentService)
NewServiceEnvironmentService 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 ServiceEnvironmentSettingEditParams ¶
type ServiceEnvironmentSettingEditParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Errors param.Field[[]ServiceEnvironmentSettingEditParamsError] `json:"errors,required"` Messages param.Field[[]ServiceEnvironmentSettingEditParamsMessage] `json:"messages,required"` Result param.Field[ServiceEnvironmentSettingEditParamsResult] `json:"result,required"` // Whether the API call was successful Success param.Field[ServiceEnvironmentSettingEditParamsSuccess] `json:"success,required"` }
func (ServiceEnvironmentSettingEditParams) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParams) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsError ¶
type ServiceEnvironmentSettingEditParamsError struct { Code param.Field[int64] `json:"code,required"` Message param.Field[string] `json:"message,required"` }
func (ServiceEnvironmentSettingEditParamsError) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsError) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsMessage ¶
type ServiceEnvironmentSettingEditParamsMessage struct { Code param.Field[int64] `json:"code,required"` Message param.Field[string] `json:"message,required"` }
func (ServiceEnvironmentSettingEditParamsMessage) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsMessage) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResult ¶
type ServiceEnvironmentSettingEditParamsResult struct { // List of bindings attached to this Worker Bindings param.Field[[]ServiceEnvironmentSettingEditParamsResultBinding] `json:"bindings"` // Opt your Worker into changes after this date CompatibilityDate param.Field[string] `json:"compatibility_date"` // Opt your Worker into specific changes CompatibilityFlags param.Field[[]string] `json:"compatibility_flags"` // 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[ServiceEnvironmentSettingEditParamsResultMigrations] `json:"migrations"` Placement param.Field[ServiceEnvironmentSettingEditParamsResultPlacement] `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[[]ServiceEnvironmentSettingEditParamsResultTailConsumer] `json:"tail_consumers"` // Specifies the usage model for the Worker (e.g. 'bundled' or 'unbound'). UsageModel param.Field[string] `json:"usage_model"` }
func (ServiceEnvironmentSettingEditParamsResult) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResult) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBinding ¶
type ServiceEnvironmentSettingEditParamsResultBinding interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Satisfied by workers.ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBinding, workers.ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBinding, workers.ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBinding, workers.ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2Binding, workers.ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBinding, workers.ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1Binding, workers.ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBinding, workers.ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBinding.
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1Binding ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1Binding struct { // ID of the D1 database to bind to ID param.Field[string] `json:"id,required"` // The name of the D1 database associated with the 'id' provided. Name param.Field[string] `json:"name,required"` // The class of resource that the binding provides. Type param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1BindingType] `json:"type,required"` }
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1Binding) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1Binding) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1BindingType ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1BindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1BindingTypeD1 ServiceEnvironmentSettingEditParamsResultBindingsWorkersD1BindingType = "d1"
)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBinding ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBinding struct { // Namespace to bind to Namespace param.Field[string] `json:"namespace,required"` // The class of resource that the binding provides. Type param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingType] `json:"type,required"` // Outbound worker Outbound param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutbound] `json:"outbound"` }
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBinding) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBinding) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutbound ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutbound 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[ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker] `json:"worker"` }
Outbound worker
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutbound) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutbound) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker 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 (ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingOutboundWorker) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingType ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingTypeDispatchNamespace ServiceEnvironmentSettingEditParamsResultBindingsWorkersDispatchNamespaceBindingType = "dispatch_namespace"
)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBinding ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBinding struct { // The exported class name of the Durable Object ClassName param.Field[string] `json:"class_name,required"` // The class of resource that the binding provides. Type param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBindingType] `json:"type,required"` // The environment of the script_name to bind to Environment param.Field[string] `json:"environment"` // The script where the Durable Object is defined, if it is external to this Worker ScriptName param.Field[string] `json:"script_name"` }
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBinding) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBinding) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBindingType ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBindingTypeDurableObjectNamespace ServiceEnvironmentSettingEditParamsResultBindingsWorkersDoBindingType = "durable_object_namespace"
)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBinding ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBinding struct { // The class of resource that the binding provides. Type param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBindingType] `json:"type,required"` }
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBinding) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBinding) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBindingType ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBindingTypeKVNamespace ServiceEnvironmentSettingEditParamsResultBindingsWorkersKVNamespaceBindingType = "kv_namespace"
)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBinding ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBinding struct { // The class of resource that the binding provides. Type param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBindingType] `json:"type,required"` // ID of the certificate to bind to CertificateID param.Field[string] `json:"certificate_id"` }
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBinding) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBinding) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBindingType ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBindingTypeMTLSCertificate ServiceEnvironmentSettingEditParamsResultBindingsWorkersMTLSCertBindingType = "mtls_certificate"
)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBinding ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBinding struct { // Name of the Queue to bind to QueueName param.Field[string] `json:"queue_name,required"` // The class of resource that the binding provides. Type param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBindingType] `json:"type,required"` }
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBinding) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBinding) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBindingType ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBindingTypeQueue ServiceEnvironmentSettingEditParamsResultBindingsWorkersQueueBindingType = "queue"
)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2Binding ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2Binding struct { // R2 bucket to bind to BucketName param.Field[string] `json:"bucket_name,required"` // The class of resource that the binding provides. Type param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2BindingType] `json:"type,required"` }
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2Binding) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2Binding) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2BindingType ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2BindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2BindingTypeR2Bucket ServiceEnvironmentSettingEditParamsResultBindingsWorkersR2BindingType = "r2_bucket"
)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBinding ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBinding struct { // Optional environment if the Worker utilizes one. Environment param.Field[string] `json:"environment,required"` // Name of Worker to bind to Service param.Field[string] `json:"service,required"` // The class of resource that the binding provides. Type param.Field[ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBindingType] `json:"type,required"` }
func (ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBinding) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBinding) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBindingType ¶
type ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBindingTypeService ServiceEnvironmentSettingEditParamsResultBindingsWorkersServiceBindingType = "service"
)
type ServiceEnvironmentSettingEditParamsResultMigrations ¶
type ServiceEnvironmentSettingEditParamsResultMigrations interface {
// contains filtered or unexported methods
}
Migrations to apply for Durable Objects associated with this Worker.
Satisfied by workers.ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrations, workers.ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrations.
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrations ¶
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrations struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses param.Field[[]string] `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses param.Field[[]string] `json:"new_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"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses param.Field[[]ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsRenamedClass] `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses param.Field[[]ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsTransferredClass] `json:"transferred_classes"` }
A single set of migrations to apply.
func (ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrations) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrations) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsRenamedClass ¶
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsRenamedClass struct { From param.Field[string] `json:"from"` To param.Field[string] `json:"to"` }
func (ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsRenamedClass) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsRenamedClass) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsTransferredClass ¶
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsTransferredClass struct { From param.Field[string] `json:"from"` FromScript param.Field[string] `json:"from_script"` To param.Field[string] `json:"to"` }
func (ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsTransferredClass) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSingleStepMigrationsTransferredClass) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrations ¶
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrations 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[[]ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStep] `json:"steps"` }
func (ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrations) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrations) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStep ¶
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStep struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses param.Field[[]string] `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses param.Field[[]string] `json:"new_classes"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses param.Field[[]ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass] `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses param.Field[[]ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass] `json:"transferred_classes"` }
func (ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStep) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStep) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass ¶
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass struct { From param.Field[string] `json:"from"` To param.Field[string] `json:"to"` }
func (ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsRenamedClass) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass ¶
type ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass struct { From param.Field[string] `json:"from"` FromScript param.Field[string] `json:"from_script"` To param.Field[string] `json:"to"` }
func (ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultMigrationsWorkersSteppedMigrationsStepsTransferredClass) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultPlacement ¶
type ServiceEnvironmentSettingEditParamsResultPlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). // Only `"smart"` is currently supported Mode param.Field[ServiceEnvironmentSettingEditParamsResultPlacementMode] `json:"mode"` }
func (ServiceEnvironmentSettingEditParamsResultPlacement) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultPlacement) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsResultPlacementMode ¶
type ServiceEnvironmentSettingEditParamsResultPlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Only `"smart"` is currently supported
const (
ServiceEnvironmentSettingEditParamsResultPlacementModeSmart ServiceEnvironmentSettingEditParamsResultPlacementMode = "smart"
)
type ServiceEnvironmentSettingEditParamsResultTailConsumer ¶
type ServiceEnvironmentSettingEditParamsResultTailConsumer struct { // Name of Worker that is to be the consumer. Service param.Field[string] `json:"service,required"` // Optional environment if the Worker utilizes one. Environment param.Field[string] `json:"environment"` // Optional dispatch namespace the script belongs to. Namespace param.Field[string] `json:"namespace"` }
A reference to a script that will consume logs from the attached Worker.
func (ServiceEnvironmentSettingEditParamsResultTailConsumer) MarshalJSON ¶
func (r ServiceEnvironmentSettingEditParamsResultTailConsumer) MarshalJSON() (data []byte, err error)
type ServiceEnvironmentSettingEditParamsSuccess ¶
type ServiceEnvironmentSettingEditParamsSuccess bool
Whether the API call was successful
const (
ServiceEnvironmentSettingEditParamsSuccessTrue ServiceEnvironmentSettingEditParamsSuccess = true
)
type ServiceEnvironmentSettingEditResponse ¶
type ServiceEnvironmentSettingEditResponse struct { // List of bindings attached to this Worker Bindings []ServiceEnvironmentSettingEditResponseBinding `json:"bindings"` // Opt your Worker into changes after this date CompatibilityDate string `json:"compatibility_date"` // Opt your Worker into specific changes CompatibilityFlags []string `json:"compatibility_flags"` // Whether Logpush is turned on for the Worker. Logpush bool `json:"logpush"` // Migrations to apply for Durable Objects associated with this Worker. Migrations ServiceEnvironmentSettingEditResponseMigrations `json:"migrations"` Placement ServiceEnvironmentSettingEditResponsePlacement `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 []ServiceEnvironmentSettingEditResponseTailConsumer `json:"tail_consumers"` // Specifies the usage model for the Worker (e.g. 'bundled' or 'unbound'). UsageModel string `json:"usage_model"` JSON serviceEnvironmentSettingEditResponseJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponse) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponse) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBinding ¶
type ServiceEnvironmentSettingEditResponseBinding interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Union satisfied by workers.ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBinding, workers.ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBinding, workers.ServiceEnvironmentSettingEditResponseBindingsWorkersDoBinding, workers.ServiceEnvironmentSettingEditResponseBindingsWorkersR2Binding, workers.ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBinding, workers.ServiceEnvironmentSettingEditResponseBindingsWorkersD1Binding, workers.ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBinding or workers.ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBinding.
type ServiceEnvironmentSettingEditResponseBindingsWorkersD1Binding ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersD1Binding struct { // ID of the D1 database to bind to ID string `json:"id,required"` // A JavaScript variable name for the binding. Binding string `json:"binding,required"` // The name of the D1 database associated with the 'id' provided. Name string `json:"name,required"` // The class of resource that the binding provides. Type ServiceEnvironmentSettingEditResponseBindingsWorkersD1BindingType `json:"type,required"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersD1BindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersD1Binding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersD1Binding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersD1BindingType ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersD1BindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditResponseBindingsWorkersD1BindingTypeD1 ServiceEnvironmentSettingEditResponseBindingsWorkersD1BindingType = "d1"
)
type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBinding ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace to bind to Namespace string `json:"namespace,required"` // The class of resource that the binding provides. Type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingType `json:"type,required"` // Outbound worker Outbound ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound `json:"outbound"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters Params []string `json:"params"` // Outbound worker Worker ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker `json:"worker"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundJSON `json:"-"` }
Outbound worker
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutbound) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker struct { // Environment of the outbound worker Environment string `json:"environment"` // Name of the outbound worker Service string `json:"service"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorkerJSON `json:"-"` }
Outbound worker
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingType ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingTypeDispatchNamespace ServiceEnvironmentSettingEditResponseBindingsWorkersDispatchNamespaceBindingType = "dispatch_namespace"
)
type ServiceEnvironmentSettingEditResponseBindingsWorkersDoBinding ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersDoBinding 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 class of resource that the binding provides. Type ServiceEnvironmentSettingEditResponseBindingsWorkersDoBindingType `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 serviceEnvironmentSettingEditResponseBindingsWorkersDoBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersDoBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersDoBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersDoBindingType ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersDoBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditResponseBindingsWorkersDoBindingTypeDurableObjectNamespace ServiceEnvironmentSettingEditResponseBindingsWorkersDoBindingType = "durable_object_namespace"
)
type ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBinding ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace identifier tag. NamespaceID string `json:"namespace_id,required"` // The class of resource that the binding provides. Type ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBindingType `json:"type,required"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBindingType ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBindingTypeKVNamespace ServiceEnvironmentSettingEditResponseBindingsWorkersKVNamespaceBindingType = "kv_namespace"
)
type ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBinding ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The class of resource that the binding provides. Type ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBindingType `json:"type,required"` // ID of the certificate to bind to CertificateID string `json:"certificate_id"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBindingType ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBindingTypeMTLSCertificate ServiceEnvironmentSettingEditResponseBindingsWorkersMTLSCertBindingType = "mtls_certificate"
)
type ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBinding ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBinding 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 class of resource that the binding provides. Type ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBindingType `json:"type,required"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersQueueBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBindingType ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBindingTypeQueue ServiceEnvironmentSettingEditResponseBindingsWorkersQueueBindingType = "queue"
)
type ServiceEnvironmentSettingEditResponseBindingsWorkersR2Binding ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersR2Binding 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 class of resource that the binding provides. Type ServiceEnvironmentSettingEditResponseBindingsWorkersR2BindingType `json:"type,required"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersR2BindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersR2Binding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersR2Binding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersR2BindingType ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersR2BindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditResponseBindingsWorkersR2BindingTypeR2Bucket ServiceEnvironmentSettingEditResponseBindingsWorkersR2BindingType = "r2_bucket"
)
type ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBinding ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBinding 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 class of resource that the binding provides. Type ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBindingType `json:"type,required"` JSON serviceEnvironmentSettingEditResponseBindingsWorkersServiceBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBindingType ¶
type ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBindingTypeService ServiceEnvironmentSettingEditResponseBindingsWorkersServiceBindingType = "service"
)
type ServiceEnvironmentSettingEditResponseEnvelope ¶
type ServiceEnvironmentSettingEditResponseEnvelope struct { Errors []ServiceEnvironmentSettingEditResponseEnvelopeErrors `json:"errors,required"` Messages []ServiceEnvironmentSettingEditResponseEnvelopeMessages `json:"messages,required"` Result ServiceEnvironmentSettingEditResponse `json:"result,required"` // Whether the API call was successful Success ServiceEnvironmentSettingEditResponseEnvelopeSuccess `json:"success,required"` JSON serviceEnvironmentSettingEditResponseEnvelopeJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseEnvelope) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseEnvelopeErrors ¶
type ServiceEnvironmentSettingEditResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON serviceEnvironmentSettingEditResponseEnvelopeErrorsJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseEnvelopeMessages ¶
type ServiceEnvironmentSettingEditResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON serviceEnvironmentSettingEditResponseEnvelopeMessagesJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseEnvelopeSuccess ¶
type ServiceEnvironmentSettingEditResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ServiceEnvironmentSettingEditResponseEnvelopeSuccessTrue ServiceEnvironmentSettingEditResponseEnvelopeSuccess = true
)
type ServiceEnvironmentSettingEditResponseMigrations ¶
type ServiceEnvironmentSettingEditResponseMigrations interface {
// contains filtered or unexported methods
}
Migrations to apply for Durable Objects associated with this Worker.
Union satisfied by workers.ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrations or workers.ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrations.
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrations ¶
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrations struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses []string `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses []string `json:"new_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"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses []ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses []ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass `json:"transferred_classes"` JSON serviceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsJSON `json:"-"` }
A single set of migrations to apply.
func (*ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrations) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrations) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass ¶
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass struct { From string `json:"from"` To string `json:"to"` JSON serviceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClassJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsRenamedClass) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass ¶
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass struct { From string `json:"from"` FromScript string `json:"from_script"` To string `json:"to"` JSON serviceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClassJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseMigrationsWorkersSingleStepMigrationsTransferredClass) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrations ¶
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrations 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 []ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStep `json:"steps"` JSON serviceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrations) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrations) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStep ¶
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStep struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses []string `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses []string `json:"new_classes"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses []ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses []ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass `json:"transferred_classes"` JSON serviceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStep) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStep) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass ¶
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass struct { From string `json:"from"` To string `json:"to"` JSON serviceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClassJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass ¶
type ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass struct { From string `json:"from"` FromScript string `json:"from_script"` To string `json:"to"` JSON serviceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClassJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponsePlacement ¶
type ServiceEnvironmentSettingEditResponsePlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). // Only `"smart"` is currently supported Mode ServiceEnvironmentSettingEditResponsePlacementMode `json:"mode"` JSON serviceEnvironmentSettingEditResponsePlacementJSON `json:"-"` }
func (*ServiceEnvironmentSettingEditResponsePlacement) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponsePlacement) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingEditResponsePlacementMode ¶
type ServiceEnvironmentSettingEditResponsePlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Only `"smart"` is currently supported
const (
ServiceEnvironmentSettingEditResponsePlacementModeSmart ServiceEnvironmentSettingEditResponsePlacementMode = "smart"
)
type ServiceEnvironmentSettingEditResponseTailConsumer ¶
type ServiceEnvironmentSettingEditResponseTailConsumer struct { // Name of Worker that is to be the consumer. Service string `json:"service,required"` // Optional environment if the Worker utilizes one. Environment string `json:"environment"` // Optional dispatch namespace the script belongs to. Namespace string `json:"namespace"` JSON serviceEnvironmentSettingEditResponseTailConsumerJSON `json:"-"` }
A reference to a script that will consume logs from the attached Worker.
func (*ServiceEnvironmentSettingEditResponseTailConsumer) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingEditResponseTailConsumer) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponse ¶
type ServiceEnvironmentSettingGetResponse struct { // List of bindings attached to this Worker Bindings []ServiceEnvironmentSettingGetResponseBinding `json:"bindings"` // Opt your Worker into changes after this date CompatibilityDate string `json:"compatibility_date"` // Opt your Worker into specific changes CompatibilityFlags []string `json:"compatibility_flags"` // Whether Logpush is turned on for the Worker. Logpush bool `json:"logpush"` // Migrations to apply for Durable Objects associated with this Worker. Migrations ServiceEnvironmentSettingGetResponseMigrations `json:"migrations"` Placement ServiceEnvironmentSettingGetResponsePlacement `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 []ServiceEnvironmentSettingGetResponseTailConsumer `json:"tail_consumers"` // Specifies the usage model for the Worker (e.g. 'bundled' or 'unbound'). UsageModel string `json:"usage_model"` JSON serviceEnvironmentSettingGetResponseJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponse) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponse) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBinding ¶
type ServiceEnvironmentSettingGetResponseBinding interface {
// contains filtered or unexported methods
}
A binding to allow the Worker to communicate with resources
Union satisfied by workers.ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBinding, workers.ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBinding, workers.ServiceEnvironmentSettingGetResponseBindingsWorkersDoBinding, workers.ServiceEnvironmentSettingGetResponseBindingsWorkersR2Binding, workers.ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBinding, workers.ServiceEnvironmentSettingGetResponseBindingsWorkersD1Binding, workers.ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBinding or workers.ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBinding.
type ServiceEnvironmentSettingGetResponseBindingsWorkersD1Binding ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersD1Binding struct { // ID of the D1 database to bind to ID string `json:"id,required"` // A JavaScript variable name for the binding. Binding string `json:"binding,required"` // The name of the D1 database associated with the 'id' provided. Name string `json:"name,required"` // The class of resource that the binding provides. Type ServiceEnvironmentSettingGetResponseBindingsWorkersD1BindingType `json:"type,required"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersD1BindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersD1Binding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersD1Binding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersD1BindingType ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersD1BindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingGetResponseBindingsWorkersD1BindingTypeD1 ServiceEnvironmentSettingGetResponseBindingsWorkersD1BindingType = "d1"
)
type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBinding ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace to bind to Namespace string `json:"namespace,required"` // The class of resource that the binding provides. Type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingType `json:"type,required"` // Outbound worker Outbound ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound `json:"outbound"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound struct { // Pass information from the Dispatch Worker to the Outbound Worker through the // parameters Params []string `json:"params"` // Outbound worker Worker ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker `json:"worker"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundJSON `json:"-"` }
Outbound worker
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutbound) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker struct { // Environment of the outbound worker Environment string `json:"environment"` // Name of the outbound worker Service string `json:"service"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorkerJSON `json:"-"` }
Outbound worker
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingOutboundWorker) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingType ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingTypeDispatchNamespace ServiceEnvironmentSettingGetResponseBindingsWorkersDispatchNamespaceBindingType = "dispatch_namespace"
)
type ServiceEnvironmentSettingGetResponseBindingsWorkersDoBinding ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersDoBinding 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 class of resource that the binding provides. Type ServiceEnvironmentSettingGetResponseBindingsWorkersDoBindingType `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 serviceEnvironmentSettingGetResponseBindingsWorkersDoBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersDoBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersDoBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersDoBindingType ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersDoBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingGetResponseBindingsWorkersDoBindingTypeDurableObjectNamespace ServiceEnvironmentSettingGetResponseBindingsWorkersDoBindingType = "durable_object_namespace"
)
type ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBinding ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace identifier tag. NamespaceID string `json:"namespace_id,required"` // The class of resource that the binding provides. Type ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBindingType `json:"type,required"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBindingType ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBindingTypeKVNamespace ServiceEnvironmentSettingGetResponseBindingsWorkersKVNamespaceBindingType = "kv_namespace"
)
type ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBinding ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The class of resource that the binding provides. Type ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBindingType `json:"type,required"` // ID of the certificate to bind to CertificateID string `json:"certificate_id"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBindingType ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBindingTypeMTLSCertificate ServiceEnvironmentSettingGetResponseBindingsWorkersMTLSCertBindingType = "mtls_certificate"
)
type ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBinding ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBinding 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 class of resource that the binding provides. Type ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBindingType `json:"type,required"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersQueueBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBindingType ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBindingTypeQueue ServiceEnvironmentSettingGetResponseBindingsWorkersQueueBindingType = "queue"
)
type ServiceEnvironmentSettingGetResponseBindingsWorkersR2Binding ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersR2Binding 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 class of resource that the binding provides. Type ServiceEnvironmentSettingGetResponseBindingsWorkersR2BindingType `json:"type,required"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersR2BindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersR2Binding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersR2Binding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersR2BindingType ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersR2BindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingGetResponseBindingsWorkersR2BindingTypeR2Bucket ServiceEnvironmentSettingGetResponseBindingsWorkersR2BindingType = "r2_bucket"
)
type ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBinding ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBinding 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 class of resource that the binding provides. Type ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBindingType `json:"type,required"` JSON serviceEnvironmentSettingGetResponseBindingsWorkersServiceBindingJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBinding) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBinding) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBindingType ¶
type ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBindingType string
The class of resource that the binding provides.
const (
ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBindingTypeService ServiceEnvironmentSettingGetResponseBindingsWorkersServiceBindingType = "service"
)
type ServiceEnvironmentSettingGetResponseEnvelope ¶
type ServiceEnvironmentSettingGetResponseEnvelope struct { Errors []ServiceEnvironmentSettingGetResponseEnvelopeErrors `json:"errors,required"` Messages []ServiceEnvironmentSettingGetResponseEnvelopeMessages `json:"messages,required"` Result ServiceEnvironmentSettingGetResponse `json:"result,required"` // Whether the API call was successful Success ServiceEnvironmentSettingGetResponseEnvelopeSuccess `json:"success,required"` JSON serviceEnvironmentSettingGetResponseEnvelopeJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseEnvelope) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseEnvelopeErrors ¶
type ServiceEnvironmentSettingGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON serviceEnvironmentSettingGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseEnvelopeMessages ¶
type ServiceEnvironmentSettingGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON serviceEnvironmentSettingGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseEnvelopeSuccess ¶
type ServiceEnvironmentSettingGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ServiceEnvironmentSettingGetResponseEnvelopeSuccessTrue ServiceEnvironmentSettingGetResponseEnvelopeSuccess = true
)
type ServiceEnvironmentSettingGetResponseMigrations ¶
type ServiceEnvironmentSettingGetResponseMigrations interface {
// contains filtered or unexported methods
}
Migrations to apply for Durable Objects associated with this Worker.
Union satisfied by workers.ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrations or workers.ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrations.
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrations ¶
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrations struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses []string `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses []string `json:"new_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"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses []ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses []ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass `json:"transferred_classes"` JSON serviceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsJSON `json:"-"` }
A single set of migrations to apply.
func (*ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrations) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrations) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass ¶
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass struct { From string `json:"from"` To string `json:"to"` JSON serviceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClassJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsRenamedClass) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass ¶
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass struct { From string `json:"from"` FromScript string `json:"from_script"` To string `json:"to"` JSON serviceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClassJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseMigrationsWorkersSingleStepMigrationsTransferredClass) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrations ¶
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrations 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 []ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStep `json:"steps"` JSON serviceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrations) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrations) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStep ¶
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStep struct { // A list of classes to delete Durable Object namespaces from. DeletedClasses []string `json:"deleted_classes"` // A list of classes to create Durable Object namespaces from. NewClasses []string `json:"new_classes"` // A list of classes with Durable Object namespaces that were renamed. RenamedClasses []ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass `json:"renamed_classes"` // A list of transfers for Durable Object namespaces from a different Worker and // class to a class defined in this Worker. TransferredClasses []ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass `json:"transferred_classes"` JSON serviceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStep) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStep) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass ¶
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass struct { From string `json:"from"` To string `json:"to"` JSON serviceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClassJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsRenamedClass) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass ¶
type ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass struct { From string `json:"from"` FromScript string `json:"from_script"` To string `json:"to"` JSON serviceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClassJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseMigrationsWorkersSteppedMigrationsStepsTransferredClass) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponsePlacement ¶
type ServiceEnvironmentSettingGetResponsePlacement struct { // Enables // [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). // Only `"smart"` is currently supported Mode ServiceEnvironmentSettingGetResponsePlacementMode `json:"mode"` JSON serviceEnvironmentSettingGetResponsePlacementJSON `json:"-"` }
func (*ServiceEnvironmentSettingGetResponsePlacement) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponsePlacement) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingGetResponsePlacementMode ¶
type ServiceEnvironmentSettingGetResponsePlacementMode string
Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Only `"smart"` is currently supported
const (
ServiceEnvironmentSettingGetResponsePlacementModeSmart ServiceEnvironmentSettingGetResponsePlacementMode = "smart"
)
type ServiceEnvironmentSettingGetResponseTailConsumer ¶
type ServiceEnvironmentSettingGetResponseTailConsumer struct { // Name of Worker that is to be the consumer. Service string `json:"service,required"` // Optional environment if the Worker utilizes one. Environment string `json:"environment"` // Optional dispatch namespace the script belongs to. Namespace string `json:"namespace"` JSON serviceEnvironmentSettingGetResponseTailConsumerJSON `json:"-"` }
A reference to a script that will consume logs from the attached Worker.
func (*ServiceEnvironmentSettingGetResponseTailConsumer) UnmarshalJSON ¶
func (r *ServiceEnvironmentSettingGetResponseTailConsumer) UnmarshalJSON(data []byte) (err error)
type ServiceEnvironmentSettingService ¶
type ServiceEnvironmentSettingService struct {
Options []option.RequestOption
}
ServiceEnvironmentSettingService 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 NewServiceEnvironmentSettingService method instead.
func NewServiceEnvironmentSettingService ¶
func NewServiceEnvironmentSettingService(opts ...option.RequestOption) (r *ServiceEnvironmentSettingService)
NewServiceEnvironmentSettingService 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 (*ServiceEnvironmentSettingService) Edit ¶
func (r *ServiceEnvironmentSettingService) Edit(ctx context.Context, serviceName string, environmentName string, params ServiceEnvironmentSettingEditParams, opts ...option.RequestOption) (res *ServiceEnvironmentSettingEditResponse, err error)
Patch script metadata, such as bindings
func (*ServiceEnvironmentSettingService) Get ¶
func (r *ServiceEnvironmentSettingService) Get(ctx context.Context, serviceName string, environmentName string, query ServiceEnvironmentSettingGetParams, opts ...option.RequestOption) (res *ServiceEnvironmentSettingGetResponse, err error)
Get script settings from a worker with an environment
type ServiceService ¶
type ServiceService struct { Options []option.RequestOption Environments *ServiceEnvironmentService }
ServiceService 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 NewServiceService method instead.
func NewServiceService ¶
func NewServiceService(opts ...option.RequestOption) (r *ServiceService)
NewServiceService 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 SubdomainGetParams ¶
type SubdomainGetResponse ¶
type SubdomainGetResponse struct { Name interface{} `json:"name"` JSON subdomainGetResponseJSON `json:"-"` }
func (*SubdomainGetResponse) UnmarshalJSON ¶
func (r *SubdomainGetResponse) UnmarshalJSON(data []byte) (err error)
type SubdomainGetResponseEnvelope ¶
type SubdomainGetResponseEnvelope struct { Errors []SubdomainGetResponseEnvelopeErrors `json:"errors,required"` Messages []SubdomainGetResponseEnvelopeMessages `json:"messages,required"` Result SubdomainGetResponse `json:"result,required"` // Whether the API call was successful Success SubdomainGetResponseEnvelopeSuccess `json:"success,required"` JSON subdomainGetResponseEnvelopeJSON `json:"-"` }
func (*SubdomainGetResponseEnvelope) UnmarshalJSON ¶
func (r *SubdomainGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SubdomainGetResponseEnvelopeErrors ¶
type SubdomainGetResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON subdomainGetResponseEnvelopeErrorsJSON `json:"-"` }
func (*SubdomainGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SubdomainGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SubdomainGetResponseEnvelopeMessages ¶
type SubdomainGetResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON subdomainGetResponseEnvelopeMessagesJSON `json:"-"` }
func (*SubdomainGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SubdomainGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SubdomainGetResponseEnvelopeSuccess ¶
type SubdomainGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
SubdomainGetResponseEnvelopeSuccessTrue SubdomainGetResponseEnvelopeSuccess = true
)
type SubdomainService ¶
type SubdomainService struct {
Options []option.RequestOption
}
SubdomainService 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 NewSubdomainService method instead.
func NewSubdomainService ¶
func NewSubdomainService(opts ...option.RequestOption) (r *SubdomainService)
NewSubdomainService 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 (*SubdomainService) Get ¶
func (r *SubdomainService) Get(ctx context.Context, query SubdomainGetParams, opts ...option.RequestOption) (res *SubdomainGetResponse, err error)
Returns a Workers subdomain for an account.
func (*SubdomainService) Update ¶
func (r *SubdomainService) Update(ctx context.Context, params SubdomainUpdateParams, opts ...option.RequestOption) (res *SubdomainUpdateResponse, err error)
Creates a Workers subdomain for an account.
type SubdomainUpdateParams ¶
type SubdomainUpdateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Body param.Field[interface{}] `json:"body,required"` }
func (SubdomainUpdateParams) MarshalJSON ¶
func (r SubdomainUpdateParams) MarshalJSON() (data []byte, err error)
type SubdomainUpdateResponse ¶
type SubdomainUpdateResponse struct { Name interface{} `json:"name"` JSON subdomainUpdateResponseJSON `json:"-"` }
func (*SubdomainUpdateResponse) UnmarshalJSON ¶
func (r *SubdomainUpdateResponse) UnmarshalJSON(data []byte) (err error)
type SubdomainUpdateResponseEnvelope ¶
type SubdomainUpdateResponseEnvelope struct { Errors []SubdomainUpdateResponseEnvelopeErrors `json:"errors,required"` Messages []SubdomainUpdateResponseEnvelopeMessages `json:"messages,required"` Result SubdomainUpdateResponse `json:"result,required"` // Whether the API call was successful Success SubdomainUpdateResponseEnvelopeSuccess `json:"success,required"` JSON subdomainUpdateResponseEnvelopeJSON `json:"-"` }
func (*SubdomainUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *SubdomainUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type SubdomainUpdateResponseEnvelopeErrors ¶
type SubdomainUpdateResponseEnvelopeErrors struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON subdomainUpdateResponseEnvelopeErrorsJSON `json:"-"` }
func (*SubdomainUpdateResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *SubdomainUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type SubdomainUpdateResponseEnvelopeMessages ¶
type SubdomainUpdateResponseEnvelopeMessages struct { Code int64 `json:"code,required"` Message string `json:"message,required"` JSON subdomainUpdateResponseEnvelopeMessagesJSON `json:"-"` }
func (*SubdomainUpdateResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *SubdomainUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type SubdomainUpdateResponseEnvelopeSuccess ¶
type SubdomainUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
SubdomainUpdateResponseEnvelopeSuccessTrue SubdomainUpdateResponseEnvelopeSuccess = true
)
type WorkerService ¶
type WorkerService struct { Options []option.RequestOption AI *AIService Scripts *ScriptService Filters *FilterService Routes *RouteService AccountSettings *AccountSettingService Deployments *DeploymentService Domains *DomainService Subdomains *SubdomainService Services *ServiceService }
WorkerService 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 NewWorkerService method instead.
func NewWorkerService ¶
func NewWorkerService(opts ...option.RequestOption) (r *WorkerService)
NewWorkerService 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 WorkersDomain ¶
type WorkersDomain struct { // Identifer of the Worker Domain. ID interface{} `json:"id"` // Worker environment associated with the zone and hostname. Environment string `json:"environment"` // Hostname of the Worker Domain. Hostname string `json:"hostname"` // Worker service associated with the zone and hostname. Service string `json:"service"` // Identifier of the zone. ZoneID interface{} `json:"zone_id"` // Name of the zone. ZoneName string `json:"zone_name"` JSON workersDomainJSON `json:"-"` }
func (*WorkersDomain) UnmarshalJSON ¶
func (r *WorkersDomain) UnmarshalJSON(data []byte) (err error)
type WorkersFilters ¶
type WorkersFilters struct { // Identifier ID string `json:"id,required"` Enabled bool `json:"enabled,required"` Pattern string `json:"pattern,required"` JSON workersFiltersJSON `json:"-"` }
func (*WorkersFilters) UnmarshalJSON ¶
func (r *WorkersFilters) UnmarshalJSON(data []byte) (err error)
type WorkersRoutes ¶
type WorkersRoutes struct { // Identifier ID string `json:"id,required"` Pattern string `json:"pattern,required"` // Name of the script, used in URLs and route configuration. Script string `json:"script,required"` JSON workersRoutesJSON `json:"-"` }
func (*WorkersRoutes) UnmarshalJSON ¶
func (r *WorkersRoutes) UnmarshalJSON(data []byte) (err error)
type WorkersSchemasBinding ¶
type WorkersSchemasBinding interface {
// contains filtered or unexported methods
}
Union satisfied by workers.WorkersSchemasBindingWorkersKVNamespaceBinding or workers.WorkersSchemasBindingWorkersWasmModuleBinding.
type WorkersSchemasBindingWorkersKVNamespaceBinding ¶
type WorkersSchemasBindingWorkersKVNamespaceBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // Namespace identifier tag. NamespaceID string `json:"namespace_id,required"` // The class of resource that the binding provides. Type WorkersSchemasBindingWorkersKVNamespaceBindingType `json:"type,required"` JSON workersSchemasBindingWorkersKVNamespaceBindingJSON `json:"-"` }
func (*WorkersSchemasBindingWorkersKVNamespaceBinding) UnmarshalJSON ¶
func (r *WorkersSchemasBindingWorkersKVNamespaceBinding) UnmarshalJSON(data []byte) (err error)
type WorkersSchemasBindingWorkersKVNamespaceBindingType ¶
type WorkersSchemasBindingWorkersKVNamespaceBindingType string
The class of resource that the binding provides.
const (
WorkersSchemasBindingWorkersKVNamespaceBindingTypeKVNamespace WorkersSchemasBindingWorkersKVNamespaceBindingType = "kv_namespace"
)
type WorkersSchemasBindingWorkersWasmModuleBinding ¶
type WorkersSchemasBindingWorkersWasmModuleBinding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` // The class of resource that the binding provides. Type WorkersSchemasBindingWorkersWasmModuleBindingType `json:"type,required"` JSON workersSchemasBindingWorkersWasmModuleBindingJSON `json:"-"` }
func (*WorkersSchemasBindingWorkersWasmModuleBinding) UnmarshalJSON ¶
func (r *WorkersSchemasBindingWorkersWasmModuleBinding) UnmarshalJSON(data []byte) (err error)
type WorkersSchemasBindingWorkersWasmModuleBindingType ¶
type WorkersSchemasBindingWorkersWasmModuleBindingType string
The class of resource that the binding provides.
const (
WorkersSchemasBindingWorkersWasmModuleBindingTypeWasmModule WorkersSchemasBindingWorkersWasmModuleBindingType = "wasm_module"
)
type WorkersScript ¶
type WorkersScript 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 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"` // Deprecated. Deployment metadata for internal usage. PipelineHash string `json:"pipeline_hash"` // Specifies the placement mode for the Worker (e.g. 'smart'). PlacementMode string `json:"placement_mode"` // List of Workers that will consume logs from the attached Worker. TailConsumers []WorkersScriptTailConsumer `json:"tail_consumers"` // Specifies the usage model for the Worker (e.g. 'bundled' or 'unbound'). UsageModel string `json:"usage_model"` JSON workersScriptJSON `json:"-"` }
func (*WorkersScript) UnmarshalJSON ¶
func (r *WorkersScript) UnmarshalJSON(data []byte) (err error)
type WorkersScriptTailConsumer ¶
type WorkersScriptTailConsumer struct { // Name of Worker that is to be the consumer. Service string `json:"service,required"` // Optional environment if the Worker utilizes one. Environment string `json:"environment"` // Optional dispatch namespace the script belongs to. Namespace string `json:"namespace"` JSON workersScriptTailConsumerJSON `json:"-"` }
A reference to a script that will consume logs from the attached Worker.
func (*WorkersScriptTailConsumer) UnmarshalJSON ¶
func (r *WorkersScriptTailConsumer) UnmarshalJSON(data []byte) (err error)
Source Files ¶
- accountsetting.go
- ai.go
- aliases.go
- deployment.go
- deploymentbyscript.go
- deploymentbyscriptdetail.go
- domain.go
- filter.go
- route.go
- script.go
- scriptbinding.go
- scriptcontent.go
- scriptcontentv2.go
- scriptschedule.go
- scriptsetting.go
- scripttail.go
- scriptusagemodel.go
- service.go
- serviceenvironment.go
- serviceenvironmentcontent.go
- serviceenvironmentsetting.go
- subdomain.go
- worker.go