Versions in this module Expand all Collapse all v3 v3.1.0 Sep 24, 2024 v3.0.1 Sep 23, 2024 Changes in this version + const AuditLogActorTypeAdmin + const AuditLogActorTypeCloudflare + const AuditLogActorTypeUser + const CertificateCADigicert + const CertificateCAGoogle + const CertificateCALetsEncrypt + const CertificateCASSLCom + const CertificateRequestTypeKeylessCertificate + const CertificateRequestTypeOriginECC + const CertificateRequestTypeOriginRSA + const CloudflareTunnelStatusDegraded + const CloudflareTunnelStatusDown + const CloudflareTunnelStatusHealthy + const CloudflareTunnelStatusInactive + const CloudflareTunnelTunTypeCNI + const CloudflareTunnelTunTypeCfdTunnel + const CloudflareTunnelTunTypeGRE + const CloudflareTunnelTunTypeIPSec + const CloudflareTunnelTunTypeWARPConnector + const MemberStatusAccepted + const MemberStatusPending + const SortDirectionAsc + const SortDirectionDesc + const SubscriptionFrequencyMonthly + const SubscriptionFrequencyQuarterly + const SubscriptionFrequencyWeekly + const SubscriptionFrequencyYearly + const SubscriptionStateAwaitingPayment + const SubscriptionStateCancelled + const SubscriptionStateExpired + const SubscriptionStateFailed + const SubscriptionStatePaid + const SubscriptionStateProvisioned + const SubscriptionStateTrial + type ASN = shared.ASN + type ASNParam = shared.ASNParam + type AuditLog = shared.AuditLog + type AuditLogAction = shared.AuditLogAction + type AuditLogActor = shared.AuditLogActor + type AuditLogActorType = shared.AuditLogActorType + type AuditLogOwner = shared.AuditLogOwner + type AuditLogResource = shared.AuditLogResource + type CertificateCA = shared.CertificateCA + type CertificateRequestType = shared.CertificateRequestType + type CloudflareTunnel = shared.CloudflareTunnel + type CloudflareTunnelConnection = shared.CloudflareTunnelConnection + type CloudflareTunnelStatus = shared.CloudflareTunnelStatus + type CloudflareTunnelTunType = shared.CloudflareTunnelTunType + type D1 struct + CreatedAt time.Time + FileSize float64 + JSON d1JSON + Name string + NumTables float64 + UUID string + Version string + func (r *D1) UnmarshalJSON(data []byte) (err error) + type D1Service struct + Database *DatabaseService + Options []option.RequestOption + func NewD1Service(opts ...option.RequestOption) (r *D1Service) + type DatabaseDeleteParams struct + AccountID param.Field[string] + type DatabaseDeleteResponse = interface + type DatabaseDeleteResponseEnvelope struct + Errors []shared.ResponseInfo + JSON databaseDeleteResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result DatabaseDeleteResponse + Success DatabaseDeleteResponseEnvelopeSuccess + func (r *DatabaseDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type DatabaseDeleteResponseEnvelopeSuccess bool + const DatabaseDeleteResponseEnvelopeSuccessTrue + func (r DatabaseDeleteResponseEnvelopeSuccess) IsKnown() bool + type DatabaseExportParams struct + AccountID param.Field[string] + CurrentBookmark param.Field[string] + DumpOptions param.Field[DatabaseExportParamsDumpOptions] + OutputFormat param.Field[DatabaseExportParamsOutputFormat] + func (r DatabaseExportParams) MarshalJSON() (data []byte, err error) + type DatabaseExportParamsDumpOptions struct + NoData param.Field[bool] + NoSchema param.Field[bool] + Tables param.Field[[]string] + func (r DatabaseExportParamsDumpOptions) MarshalJSON() (data []byte, err error) + type DatabaseExportParamsOutputFormat string + const DatabaseExportParamsOutputFormatPolling + func (r DatabaseExportParamsOutputFormat) IsKnown() bool + type DatabaseExportResponse struct + AtBookmark string + Error string + JSON databaseExportResponseJSON + Messages []string + Result DatabaseExportResponseResult + Status DatabaseExportResponseStatus + Success bool + Type DatabaseExportResponseType + func (r *DatabaseExportResponse) UnmarshalJSON(data []byte) (err error) + type DatabaseExportResponseEnvelope struct + Errors []shared.ResponseInfo + JSON databaseExportResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result DatabaseExportResponse + Success DatabaseExportResponseEnvelopeSuccess + func (r *DatabaseExportResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type DatabaseExportResponseEnvelopeSuccess bool + const DatabaseExportResponseEnvelopeSuccessTrue + func (r DatabaseExportResponseEnvelopeSuccess) IsKnown() bool + type DatabaseExportResponseResult struct + Filename string + JSON databaseExportResponseResultJSON + SignedURL string + func (r *DatabaseExportResponseResult) UnmarshalJSON(data []byte) (err error) + type DatabaseExportResponseStatus string + const DatabaseExportResponseStatusComplete + const DatabaseExportResponseStatusError + func (r DatabaseExportResponseStatus) IsKnown() bool + type DatabaseExportResponseType string + const DatabaseExportResponseTypeExport + func (r DatabaseExportResponseType) IsKnown() bool + type DatabaseGetParams struct + AccountID param.Field[string] + type DatabaseGetResponseEnvelope struct + Errors []shared.ResponseInfo + JSON databaseGetResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result D1 + Success DatabaseGetResponseEnvelopeSuccess + func (r *DatabaseGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type DatabaseGetResponseEnvelopeSuccess bool + const DatabaseGetResponseEnvelopeSuccessTrue + func (r DatabaseGetResponseEnvelopeSuccess) IsKnown() bool + type DatabaseImportParams struct + AccountID param.Field[string] + Body DatabaseImportParamsBodyUnion + func (r DatabaseImportParams) MarshalJSON() (data []byte, err error) + type DatabaseImportParamsBody struct + Action param.Field[DatabaseImportParamsBodyAction] + CurrentBookmark param.Field[string] + Etag param.Field[string] + Filename param.Field[string] + func (r DatabaseImportParamsBody) MarshalJSON() (data []byte, err error) + type DatabaseImportParamsBodyAction string + const DatabaseImportParamsBodyActionIngest + const DatabaseImportParamsBodyActionInit + const DatabaseImportParamsBodyActionPoll + func (r DatabaseImportParamsBodyAction) IsKnown() bool + type DatabaseImportParamsBodyObject struct + Action param.Field[DatabaseImportParamsBodyObjectAction] + Etag param.Field[string] + func (r DatabaseImportParamsBodyObject) MarshalJSON() (data []byte, err error) + type DatabaseImportParamsBodyObjectAction string + const DatabaseImportParamsBodyObjectActionInit + func (r DatabaseImportParamsBodyObjectAction) IsKnown() bool + type DatabaseImportParamsBodyUnion interface + type DatabaseImportResponse struct + AtBookmark string + Error string + Filename string + JSON databaseImportResponseJSON + Messages []string + Result DatabaseImportResponseResult + Status DatabaseImportResponseStatus + Success bool + Type DatabaseImportResponseType + UploadURL string + func (r *DatabaseImportResponse) UnmarshalJSON(data []byte) (err error) + type DatabaseImportResponseEnvelope struct + Errors []shared.ResponseInfo + JSON databaseImportResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result DatabaseImportResponse + Success DatabaseImportResponseEnvelopeSuccess + func (r *DatabaseImportResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type DatabaseImportResponseEnvelopeSuccess bool + const DatabaseImportResponseEnvelopeSuccessTrue + func (r DatabaseImportResponseEnvelopeSuccess) IsKnown() bool + type DatabaseImportResponseResult struct + FinalBookmark string + JSON databaseImportResponseResultJSON + Meta DatabaseImportResponseResultMeta + NumQueries float64 + func (r *DatabaseImportResponseResult) UnmarshalJSON(data []byte) (err error) + type DatabaseImportResponseResultMeta struct + ChangedDB bool + Changes float64 + Duration float64 + JSON databaseImportResponseResultMetaJSON + LastRowID float64 + RowsRead float64 + RowsWritten float64 + SizeAfter float64 + func (r *DatabaseImportResponseResultMeta) UnmarshalJSON(data []byte) (err error) + type DatabaseImportResponseStatus string + const DatabaseImportResponseStatusComplete + const DatabaseImportResponseStatusError + func (r DatabaseImportResponseStatus) IsKnown() bool + type DatabaseImportResponseType string + const DatabaseImportResponseTypeImport + func (r DatabaseImportResponseType) IsKnown() bool + type DatabaseListParams struct + AccountID param.Field[string] + Name param.Field[string] + Page param.Field[float64] + PerPage param.Field[float64] + func (r DatabaseListParams) URLQuery() (v url.Values) + type DatabaseListResponse struct + CreatedAt time.Time + JSON databaseListResponseJSON + Name string + UUID string + Version string + func (r *DatabaseListResponse) UnmarshalJSON(data []byte) (err error) + type DatabaseNewParams struct + AccountID param.Field[string] + Name param.Field[string] + PrimaryLocationHint param.Field[DatabaseNewParamsPrimaryLocationHint] + func (r DatabaseNewParams) MarshalJSON() (data []byte, err error) + type DatabaseNewParamsPrimaryLocationHint string + const DatabaseNewParamsPrimaryLocationHintApac + const DatabaseNewParamsPrimaryLocationHintEeur + const DatabaseNewParamsPrimaryLocationHintEnam + const DatabaseNewParamsPrimaryLocationHintOc + const DatabaseNewParamsPrimaryLocationHintWeur + const DatabaseNewParamsPrimaryLocationHintWnam + func (r DatabaseNewParamsPrimaryLocationHint) IsKnown() bool + type DatabaseNewResponseEnvelope struct + Errors []shared.ResponseInfo + JSON databaseNewResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result D1 + Success DatabaseNewResponseEnvelopeSuccess + func (r *DatabaseNewResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type DatabaseNewResponseEnvelopeSuccess bool + const DatabaseNewResponseEnvelopeSuccessTrue + func (r DatabaseNewResponseEnvelopeSuccess) IsKnown() bool + type DatabaseQueryParams struct + AccountID param.Field[string] + Params param.Field[[]string] + Sql param.Field[string] + func (r DatabaseQueryParams) MarshalJSON() (data []byte, err error) + type DatabaseQueryResponseEnvelope struct + Errors []shared.ResponseInfo + JSON databaseQueryResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result []QueryResult + Success DatabaseQueryResponseEnvelopeSuccess + func (r *DatabaseQueryResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type DatabaseQueryResponseEnvelopeSuccess bool + const DatabaseQueryResponseEnvelopeSuccessTrue + func (r DatabaseQueryResponseEnvelopeSuccess) IsKnown() bool + type DatabaseRawParams struct + AccountID param.Field[string] + Params param.Field[[]string] + Sql param.Field[string] + func (r DatabaseRawParams) MarshalJSON() (data []byte, err error) + type DatabaseRawResponse struct + JSON databaseRawResponseJSON + Meta DatabaseRawResponseMeta + Results DatabaseRawResponseResults + Success bool + func (r *DatabaseRawResponse) UnmarshalJSON(data []byte) (err error) + type DatabaseRawResponseEnvelope struct + Errors []shared.ResponseInfo + JSON databaseRawResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result []DatabaseRawResponse + Success DatabaseRawResponseEnvelopeSuccess + func (r *DatabaseRawResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type DatabaseRawResponseEnvelopeSuccess bool + const DatabaseRawResponseEnvelopeSuccessTrue + func (r DatabaseRawResponseEnvelopeSuccess) IsKnown() bool + type DatabaseRawResponseMeta struct + ChangedDB bool + Changes float64 + Duration float64 + JSON databaseRawResponseMetaJSON + LastRowID float64 + RowsRead float64 + RowsWritten float64 + SizeAfter float64 + func (r *DatabaseRawResponseMeta) UnmarshalJSON(data []byte) (err error) + type DatabaseRawResponseResults struct + Columns []string + JSON databaseRawResponseResultsJSON + Rows [][]interface{} + func (r *DatabaseRawResponseResults) UnmarshalJSON(data []byte) (err error) + type DatabaseService struct + Options []option.RequestOption + func NewDatabaseService(opts ...option.RequestOption) (r *DatabaseService) + func (r *DatabaseService) Delete(ctx context.Context, databaseID string, body DatabaseDeleteParams, ...) (res *DatabaseDeleteResponse, err error) + func (r *DatabaseService) Export(ctx context.Context, databaseID string, params DatabaseExportParams, ...) (res *DatabaseExportResponse, err error) + func (r *DatabaseService) Get(ctx context.Context, databaseID string, query DatabaseGetParams, ...) (res *D1, err error) + func (r *DatabaseService) Import(ctx context.Context, databaseID string, params DatabaseImportParams, ...) (res *DatabaseImportResponse, err error) + func (r *DatabaseService) List(ctx context.Context, params DatabaseListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[DatabaseListResponse], err error) + func (r *DatabaseService) ListAutoPaging(ctx context.Context, params DatabaseListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[DatabaseListResponse] + func (r *DatabaseService) New(ctx context.Context, params DatabaseNewParams, opts ...option.RequestOption) (res *D1, err error) + func (r *DatabaseService) Query(ctx context.Context, databaseID string, params DatabaseQueryParams, ...) (res *[]QueryResult, err error) + func (r *DatabaseService) Raw(ctx context.Context, databaseID string, params DatabaseRawParams, ...) (res *[]DatabaseRawResponse, err error) + type Error = apierror.Error + type ErrorData = shared.ErrorData + type MemberParam = shared.MemberParam + type MemberRoleParam = shared.MemberRoleParam + type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam + type MemberStatus = shared.MemberStatus + type MemberUserParam = shared.MemberUserParam + type Permission = shared.Permission + type PermissionGrant = shared.PermissionGrant + type PermissionGrantParam = shared.PermissionGrantParam + type QueryResult struct + JSON queryResultJSON + Meta QueryResultMeta + Results []interface{} + Success bool + func (r *QueryResult) UnmarshalJSON(data []byte) (err error) + type QueryResultMeta struct + ChangedDB bool + Changes float64 + Duration float64 + JSON queryResultMetaJSON + LastRowID float64 + RowsRead float64 + RowsWritten float64 + SizeAfter float64 + func (r *QueryResultMeta) UnmarshalJSON(data []byte) (err error) + type RatePlan = shared.RatePlan + type RatePlanParam = shared.RatePlanParam + type ResponseInfo = shared.ResponseInfo + type Role = shared.Role + type SortDirection = shared.SortDirection + type Subscription = shared.Subscription + type SubscriptionFrequency = shared.SubscriptionFrequency + type SubscriptionParam = shared.SubscriptionParam + type SubscriptionState = shared.SubscriptionState Other modules containing this package github.com/cloudflare/cloudflare-go/v2 github.com/cloudflare/cloudflare-go/v4