Documentation
¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConfigSrc
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type ConfigDeleteParams
- type ConfigDeleteResponse
- type ConfigDeleteResponseEnvelope
- type ConfigDeleteResponseEnvelopeSuccess
- type ConfigEditParams
- type ConfigEditParamsCaching
- type ConfigEditParamsCachingHyperdriveHyperdriveCachingCommon
- type ConfigEditParamsCachingHyperdriveHyperdriveCachingEnabled
- type ConfigEditParamsCachingUnion
- type ConfigEditParamsMTLS
- type ConfigEditParamsOrigin
- type ConfigEditParamsOriginHyperdriveHyperdriveDatabase
- type ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme
- type ConfigEditParamsOriginHyperdriveInternetOrigin
- type ConfigEditParamsOriginHyperdriveOverAccessOrigin
- type ConfigEditParamsOriginScheme
- type ConfigEditParamsOriginUnion
- type ConfigEditResponseEnvelope
- type ConfigEditResponseEnvelopeSuccess
- type ConfigGetParams
- type ConfigGetResponseEnvelope
- type ConfigGetResponseEnvelopeSuccess
- type ConfigListParams
- type ConfigNewParams
- type ConfigNewResponseEnvelope
- type ConfigNewResponseEnvelopeSuccess
- type ConfigService
- func (r *ConfigService) Delete(ctx context.Context, hyperdriveID string, body ConfigDeleteParams, ...) (res *ConfigDeleteResponse, err error)
- func (r *ConfigService) Edit(ctx context.Context, hyperdriveID string, params ConfigEditParams, ...) (res *Hyperdrive, err error)
- func (r *ConfigService) Get(ctx context.Context, hyperdriveID string, query ConfigGetParams, ...) (res *Hyperdrive, err error)
- func (r *ConfigService) List(ctx context.Context, query ConfigListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Hyperdrive], err error)
- func (r *ConfigService) ListAutoPaging(ctx context.Context, query ConfigListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Hyperdrive]
- func (r *ConfigService) New(ctx context.Context, params ConfigNewParams, opts ...option.RequestOption) (res *Hyperdrive, err error)
- func (r *ConfigService) Update(ctx context.Context, hyperdriveID string, params ConfigUpdateParams, ...) (res *Hyperdrive, err error)
- type ConfigUpdateParams
- type ConfigUpdateResponseEnvelope
- type ConfigUpdateResponseEnvelopeSuccess
- type Error
- type ErrorData
- type ErrorDataSource
- type Hyperdrive
- type HyperdriveCaching
- type HyperdriveCachingHyperdriveHyperdriveCachingCommon
- type HyperdriveCachingHyperdriveHyperdriveCachingCommonParam
- type HyperdriveCachingHyperdriveHyperdriveCachingEnabled
- type HyperdriveCachingHyperdriveHyperdriveCachingEnabledParam
- type HyperdriveCachingParam
- type HyperdriveCachingUnion
- type HyperdriveCachingUnionParam
- type HyperdriveMTLS
- type HyperdriveMTLSParam
- type HyperdriveOrigin
- type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnel
- type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelParam
- type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme
- type HyperdriveOriginParam
- type HyperdriveOriginPublicDatabase
- type HyperdriveOriginPublicDatabaseParam
- type HyperdriveOriginPublicDatabaseScheme
- type HyperdriveOriginScheme
- type HyperdriveOriginUnion
- type HyperdriveOriginUnionParam
- type HyperdriveParam
- type HyperdriveService
- type Member
- type MemberPoliciesAccess
- type MemberPoliciesPermissionGroup
- type MemberPoliciesPermissionGroupsMeta
- type MemberPoliciesResourceGroup
- type MemberPoliciesResourceGroupsMeta
- type MemberPoliciesResourceGroupsScope
- type MemberPoliciesResourceGroupsScopeObject
- type MemberPolicy
- type MemberStatus
- type MemberUser
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type RatePlan
- type RatePlanID
- type RatePlanParam
- type ResponseInfo
- type ResponseInfoSource
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type SortDirection
- type Subscription
- type SubscriptionFrequency
- type SubscriptionParam
- type SubscriptionState
- type Token
- type TokenCondition
- type TokenConditionCIDRList
- type TokenConditionCIDRListParam
- type TokenConditionParam
- type TokenConditionRequestIP
- type TokenConditionRequestIPParam
- type TokenParam
- type TokenPolicy
- type TokenPolicyEffect
- type TokenPolicyParam
- type TokenPolicyPermissionGroup
- type TokenPolicyPermissionGroupParam
- type TokenPolicyPermissionGroupsMeta
- type TokenPolicyPermissionGroupsMetaParam
- type TokenPolicyResourcesIAMResourcesTypeObjectNested
- type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam
- type TokenPolicyResourcesIAMResourcesTypeObjectString
- type TokenPolicyResourcesIAMResourcesTypeObjectStringParam
- type TokenPolicyResourcesUnion
- type TokenPolicyResourcesUnionParam
- type TokenStatus
- type TokenValue
Constants ¶
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CertificateCADigicert = shared.CertificateCADigicert
This is an alias to an internal value.
const CertificateCAGoogle = shared.CertificateCAGoogle
This is an alias to an internal value.
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt
This is an alias to an internal value.
const CertificateCASSLCom = shared.CertificateCASSLCom
This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare
This is an alias to an internal value.
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow
This is an alias to an internal value.
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny
This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending
This is an alias to an internal value.
const RatePlanIDBusiness = shared.RatePlanIDBusiness
This is an alias to an internal value.
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise
This is an alias to an internal value.
const RatePlanIDFree = shared.RatePlanIDFree
This is an alias to an internal value.
const RatePlanIDLite = shared.RatePlanIDLite
This is an alias to an internal value.
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness
This is an alias to an internal value.
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise
This is an alias to an internal value.
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree
This is an alias to an internal value.
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro
This is an alias to an internal value.
const RatePlanIDPro = shared.RatePlanIDPro
This is an alias to an internal value.
const RatePlanIDProPlus = shared.RatePlanIDProPlus
This is an alias to an internal value.
const SortDirectionAsc = shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc = shared.SortDirectionDesc
This is an alias to an internal value.
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly
This is an alias to an internal value.
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly
This is an alias to an internal value.
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly
This is an alias to an internal value.
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly
This is an alias to an internal value.
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment
This is an alias to an internal value.
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled
This is an alias to an internal value.
const SubscriptionStateExpired = shared.SubscriptionStateExpired
This is an alias to an internal value.
const SubscriptionStateFailed = shared.SubscriptionStateFailed
This is an alias to an internal value.
const SubscriptionStatePaid = shared.SubscriptionStatePaid
This is an alias to an internal value.
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned
This is an alias to an internal value.
const SubscriptionStateTrial = shared.SubscriptionStateTrial
This is an alias to an internal value.
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
This is an alias to an internal value.
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
This is an alias to an internal value.
const TokenStatusActive = shared.TokenStatusActive
This is an alias to an internal value.
const TokenStatusDisabled = shared.TokenStatusDisabled
This is an alias to an internal value.
const TokenStatusExpired = shared.TokenStatusExpired
This is an alias to an internal value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogAction ¶
type AuditLogAction = shared.AuditLogAction
This is an alias to an internal type.
type AuditLogActor ¶
type AuditLogActor = shared.AuditLogActor
This is an alias to an internal type.
type AuditLogActorType ¶
type AuditLogActorType = shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
type AuditLogOwner ¶
type AuditLogOwner = shared.AuditLogOwner
This is an alias to an internal type.
type AuditLogResource ¶
type AuditLogResource = shared.AuditLogResource
This is an alias to an internal type.
type CertificateCA ¶
type CertificateCA = shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
type CertificateRequestType ¶
type CertificateRequestType = shared.CertificateRequestType
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).
This is an alias to an internal type.
type CloudflareTunnel ¶
type CloudflareTunnel = shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
type CloudflareTunnelConfigSrc ¶
type CloudflareTunnelConfigSrc = shared.CloudflareTunnelConfigSrc
Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.
This is an alias to an internal type.
type CloudflareTunnelConnection ¶
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
This is an alias to an internal type.
type CloudflareTunnelStatus ¶
type CloudflareTunnelStatus = shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
This is an alias to an internal type.
type CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type ConfigDeleteParams ¶
type ConfigDeleteResponse ¶
type ConfigDeleteResponse = interface{}
type ConfigDeleteResponseEnvelope ¶
type ConfigDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ConfigDeleteResponse `json:"result,required,nullable"`
// Return the status of the API call success.
Success ConfigDeleteResponseEnvelopeSuccess `json:"success,required"`
JSON configDeleteResponseEnvelopeJSON `json:"-"`
}
func (*ConfigDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *ConfigDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ConfigDeleteResponseEnvelopeSuccess ¶
type ConfigDeleteResponseEnvelopeSuccess bool
Return the status of the API call success.
const (
ConfigDeleteResponseEnvelopeSuccessTrue ConfigDeleteResponseEnvelopeSuccess = true
)
func (ConfigDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r ConfigDeleteResponseEnvelopeSuccess) IsKnown() bool
type ConfigEditParams ¶
type ConfigEditParams struct {
// Define configurations using a unique string identifier.
AccountID param.Field[string] `path:"account_id,required"`
Caching param.Field[ConfigEditParamsCachingUnion] `json:"caching"`
MTLS param.Field[ConfigEditParamsMTLS] `json:"mtls"`
// The name of the Hyperdrive configuration. Used to identify the configuration in
// the Cloudflare dashboard and API.
Name param.Field[string] `json:"name"`
Origin param.Field[ConfigEditParamsOriginUnion] `json:"origin"`
// The (soft) maximum number of connections the Hyperdrive is allowed to make to
// the origin database.
OriginConnectionLimit param.Field[int64] `json:"origin_connection_limit"`
}
func (ConfigEditParams) MarshalJSON ¶
func (r ConfigEditParams) MarshalJSON() (data []byte, err error)
type ConfigEditParamsCaching ¶
type ConfigEditParamsCaching struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled param.Field[bool] `json:"disabled"`
// Specify the maximum duration (in seconds) items should persist in the cache.
// Defaults to 60 seconds if not specified.
MaxAge param.Field[int64] `json:"max_age"`
// Specify the number of seconds the cache may serve a stale response. Defaults to
// 15 seconds if not specified.
StaleWhileRevalidate param.Field[int64] `json:"stale_while_revalidate"`
}
func (ConfigEditParamsCaching) MarshalJSON ¶
func (r ConfigEditParamsCaching) MarshalJSON() (data []byte, err error)
type ConfigEditParamsCachingHyperdriveHyperdriveCachingCommon ¶
type ConfigEditParamsCachingHyperdriveHyperdriveCachingCommon struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled param.Field[bool] `json:"disabled"`
}
func (ConfigEditParamsCachingHyperdriveHyperdriveCachingCommon) MarshalJSON ¶
func (r ConfigEditParamsCachingHyperdriveHyperdriveCachingCommon) MarshalJSON() (data []byte, err error)
type ConfigEditParamsCachingHyperdriveHyperdriveCachingEnabled ¶
type ConfigEditParamsCachingHyperdriveHyperdriveCachingEnabled struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled param.Field[bool] `json:"disabled"`
// Specify the maximum duration (in seconds) items should persist in the cache.
// Defaults to 60 seconds if not specified.
MaxAge param.Field[int64] `json:"max_age"`
// Specify the number of seconds the cache may serve a stale response. Defaults to
// 15 seconds if not specified.
StaleWhileRevalidate param.Field[int64] `json:"stale_while_revalidate"`
}
func (ConfigEditParamsCachingHyperdriveHyperdriveCachingEnabled) MarshalJSON ¶
func (r ConfigEditParamsCachingHyperdriveHyperdriveCachingEnabled) MarshalJSON() (data []byte, err error)
type ConfigEditParamsCachingUnion ¶
type ConfigEditParamsCachingUnion interface {
// contains filtered or unexported methods
}
Satisfied by hyperdrive.ConfigEditParamsCachingHyperdriveHyperdriveCachingCommon, hyperdrive.ConfigEditParamsCachingHyperdriveHyperdriveCachingEnabled, ConfigEditParamsCaching.
type ConfigEditParamsMTLS ¶
type ConfigEditParamsMTLS struct {
// Define CA certificate ID obtained after uploading CA cert.
CACertificateID param.Field[string] `json:"ca_certificate_id"`
// Define mTLS certificate ID obtained after uploading client cert.
MTLSCertificateID param.Field[string] `json:"mtls_certificate_id"`
// Set SSL mode to 'require', 'verify-ca', or 'verify-full' to verify the CA.
Sslmode param.Field[string] `json:"sslmode"`
}
func (ConfigEditParamsMTLS) MarshalJSON ¶
func (r ConfigEditParamsMTLS) MarshalJSON() (data []byte, err error)
type ConfigEditParamsOrigin ¶
type ConfigEditParamsOrigin struct {
// Defines the Client ID of the Access token to use when connecting to the origin
// database.
AccessClientID param.Field[string] `json:"access_client_id"`
// Defines the Client Secret of the Access Token to use when connecting to the
// origin database. The API never returns this write-only value.
AccessClientSecret param.Field[string] `json:"access_client_secret"`
// Set the name of your origin database.
Database param.Field[string] `json:"database"`
// Defines the host (hostname or IP) of your origin database.
Host param.Field[string] `json:"host"`
// Set the password needed to access your origin database. The API never returns
// this write-only value.
Password param.Field[string] `json:"password"`
// Defines the port of your origin database. Defaults to 5432 for PostgreSQL or
// 3306 for MySQL if not specified.
Port param.Field[int64] `json:"port"`
// Specifies the URL scheme used to connect to your origin database.
Scheme param.Field[ConfigEditParamsOriginScheme] `json:"scheme"`
// Set the user of your origin database.
User param.Field[string] `json:"user"`
}
func (ConfigEditParamsOrigin) MarshalJSON ¶
func (r ConfigEditParamsOrigin) MarshalJSON() (data []byte, err error)
type ConfigEditParamsOriginHyperdriveHyperdriveDatabase ¶
type ConfigEditParamsOriginHyperdriveHyperdriveDatabase struct {
// Set the name of your origin database.
Database param.Field[string] `json:"database"`
// Set the password needed to access your origin database. The API never returns
// this write-only value.
Password param.Field[string] `json:"password"`
// Specifies the URL scheme used to connect to your origin database.
Scheme param.Field[ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme] `json:"scheme"`
// Set the user of your origin database.
User param.Field[string] `json:"user"`
}
func (ConfigEditParamsOriginHyperdriveHyperdriveDatabase) MarshalJSON ¶
func (r ConfigEditParamsOriginHyperdriveHyperdriveDatabase) MarshalJSON() (data []byte, err error)
type ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme ¶
type ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme string
Specifies the URL scheme used to connect to your origin database.
const ( ConfigEditParamsOriginHyperdriveHyperdriveDatabaseSchemePostgres ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme = "postgres" ConfigEditParamsOriginHyperdriveHyperdriveDatabaseSchemePostgresql ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme = "postgresql" ConfigEditParamsOriginHyperdriveHyperdriveDatabaseSchemeMysql ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme = "mysql" )
func (ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme) IsKnown ¶
func (r ConfigEditParamsOriginHyperdriveHyperdriveDatabaseScheme) IsKnown() bool
type ConfigEditParamsOriginHyperdriveInternetOrigin ¶
type ConfigEditParamsOriginHyperdriveInternetOrigin struct {
// Defines the host (hostname or IP) of your origin database.
Host param.Field[string] `json:"host,required"`
// Defines the port of your origin database. Defaults to 5432 for PostgreSQL or
// 3306 for MySQL if not specified.
Port param.Field[int64] `json:"port,required"`
}
func (ConfigEditParamsOriginHyperdriveInternetOrigin) MarshalJSON ¶
func (r ConfigEditParamsOriginHyperdriveInternetOrigin) MarshalJSON() (data []byte, err error)
type ConfigEditParamsOriginHyperdriveOverAccessOrigin ¶
type ConfigEditParamsOriginHyperdriveOverAccessOrigin struct {
// Defines the Client ID of the Access token to use when connecting to the origin
// database.
AccessClientID param.Field[string] `json:"access_client_id,required"`
// Defines the Client Secret of the Access Token to use when connecting to the
// origin database. The API never returns this write-only value.
AccessClientSecret param.Field[string] `json:"access_client_secret,required"`
// Defines the host (hostname or IP) of your origin database.
Host param.Field[string] `json:"host,required"`
}
func (ConfigEditParamsOriginHyperdriveOverAccessOrigin) MarshalJSON ¶
func (r ConfigEditParamsOriginHyperdriveOverAccessOrigin) MarshalJSON() (data []byte, err error)
type ConfigEditParamsOriginScheme ¶
type ConfigEditParamsOriginScheme string
Specifies the URL scheme used to connect to your origin database.
const ( ConfigEditParamsOriginSchemePostgres ConfigEditParamsOriginScheme = "postgres" ConfigEditParamsOriginSchemePostgresql ConfigEditParamsOriginScheme = "postgresql" ConfigEditParamsOriginSchemeMysql ConfigEditParamsOriginScheme = "mysql" )
func (ConfigEditParamsOriginScheme) IsKnown ¶
func (r ConfigEditParamsOriginScheme) IsKnown() bool
type ConfigEditParamsOriginUnion ¶
type ConfigEditParamsOriginUnion interface {
// contains filtered or unexported methods
}
Satisfied by hyperdrive.ConfigEditParamsOriginHyperdriveHyperdriveDatabase, hyperdrive.ConfigEditParamsOriginHyperdriveInternetOrigin, hyperdrive.ConfigEditParamsOriginHyperdriveOverAccessOrigin, ConfigEditParamsOrigin.
type ConfigEditResponseEnvelope ¶
type ConfigEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Hyperdrive `json:"result,required"`
// Return the status of the API call success.
Success ConfigEditResponseEnvelopeSuccess `json:"success,required"`
JSON configEditResponseEnvelopeJSON `json:"-"`
}
func (*ConfigEditResponseEnvelope) UnmarshalJSON ¶
func (r *ConfigEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ConfigEditResponseEnvelopeSuccess ¶
type ConfigEditResponseEnvelopeSuccess bool
Return the status of the API call success.
const (
ConfigEditResponseEnvelopeSuccessTrue ConfigEditResponseEnvelopeSuccess = true
)
func (ConfigEditResponseEnvelopeSuccess) IsKnown ¶
func (r ConfigEditResponseEnvelopeSuccess) IsKnown() bool
type ConfigGetParams ¶
type ConfigGetResponseEnvelope ¶
type ConfigGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Hyperdrive `json:"result,required"`
// Return the status of the API call success.
Success ConfigGetResponseEnvelopeSuccess `json:"success,required"`
JSON configGetResponseEnvelopeJSON `json:"-"`
}
func (*ConfigGetResponseEnvelope) UnmarshalJSON ¶
func (r *ConfigGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ConfigGetResponseEnvelopeSuccess ¶
type ConfigGetResponseEnvelopeSuccess bool
Return the status of the API call success.
const (
ConfigGetResponseEnvelopeSuccessTrue ConfigGetResponseEnvelopeSuccess = true
)
func (ConfigGetResponseEnvelopeSuccess) IsKnown ¶
func (r ConfigGetResponseEnvelopeSuccess) IsKnown() bool
type ConfigListParams ¶
type ConfigNewParams ¶
type ConfigNewParams struct {
// Define configurations using a unique string identifier.
AccountID param.Field[string] `path:"account_id,required"`
Hyperdrive HyperdriveParam `json:"hyperdrive,required"`
}
func (ConfigNewParams) MarshalJSON ¶
func (r ConfigNewParams) MarshalJSON() (data []byte, err error)
type ConfigNewResponseEnvelope ¶
type ConfigNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Hyperdrive `json:"result,required"`
// Return the status of the API call success.
Success ConfigNewResponseEnvelopeSuccess `json:"success,required"`
JSON configNewResponseEnvelopeJSON `json:"-"`
}
func (*ConfigNewResponseEnvelope) UnmarshalJSON ¶
func (r *ConfigNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ConfigNewResponseEnvelopeSuccess ¶
type ConfigNewResponseEnvelopeSuccess bool
Return the status of the API call success.
const (
ConfigNewResponseEnvelopeSuccessTrue ConfigNewResponseEnvelopeSuccess = true
)
func (ConfigNewResponseEnvelopeSuccess) IsKnown ¶
func (r ConfigNewResponseEnvelopeSuccess) IsKnown() bool
type ConfigService ¶
type ConfigService struct {
Options []option.RequestOption
}
ConfigService 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 NewConfigService method instead.
func NewConfigService ¶
func NewConfigService(opts ...option.RequestOption) (r *ConfigService)
NewConfigService 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 (*ConfigService) Delete ¶
func (r *ConfigService) Delete(ctx context.Context, hyperdriveID string, body ConfigDeleteParams, opts ...option.RequestOption) (res *ConfigDeleteResponse, err error)
Deletes the specified Hyperdrive.
func (*ConfigService) Edit ¶
func (r *ConfigService) Edit(ctx context.Context, hyperdriveID string, params ConfigEditParams, opts ...option.RequestOption) (res *Hyperdrive, err error)
Patches and returns the specified Hyperdrive configuration. Custom caching settings are not kept if caching is disabled.
func (*ConfigService) Get ¶
func (r *ConfigService) Get(ctx context.Context, hyperdriveID string, query ConfigGetParams, opts ...option.RequestOption) (res *Hyperdrive, err error)
Returns the specified Hyperdrive configuration.
func (*ConfigService) List ¶
func (r *ConfigService) List(ctx context.Context, query ConfigListParams, opts ...option.RequestOption) (res *pagination.SinglePage[Hyperdrive], err error)
Returns a list of Hyperdrives.
func (*ConfigService) ListAutoPaging ¶
func (r *ConfigService) ListAutoPaging(ctx context.Context, query ConfigListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Hyperdrive]
Returns a list of Hyperdrives.
func (*ConfigService) New ¶
func (r *ConfigService) New(ctx context.Context, params ConfigNewParams, opts ...option.RequestOption) (res *Hyperdrive, err error)
Creates and returns a new Hyperdrive configuration.
func (*ConfigService) Update ¶
func (r *ConfigService) Update(ctx context.Context, hyperdriveID string, params ConfigUpdateParams, opts ...option.RequestOption) (res *Hyperdrive, err error)
Updates and returns the specified Hyperdrive configuration.
type ConfigUpdateParams ¶
type ConfigUpdateParams struct {
// Define configurations using a unique string identifier.
AccountID param.Field[string] `path:"account_id,required"`
Hyperdrive HyperdriveParam `json:"hyperdrive,required"`
}
func (ConfigUpdateParams) MarshalJSON ¶
func (r ConfigUpdateParams) MarshalJSON() (data []byte, err error)
type ConfigUpdateResponseEnvelope ¶
type ConfigUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Hyperdrive `json:"result,required"`
// Return the status of the API call success.
Success ConfigUpdateResponseEnvelopeSuccess `json:"success,required"`
JSON configUpdateResponseEnvelopeJSON `json:"-"`
}
func (*ConfigUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *ConfigUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ConfigUpdateResponseEnvelopeSuccess ¶
type ConfigUpdateResponseEnvelopeSuccess bool
Return the status of the API call success.
const (
ConfigUpdateResponseEnvelopeSuccessTrue ConfigUpdateResponseEnvelopeSuccess = true
)
func (ConfigUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r ConfigUpdateResponseEnvelopeSuccess) IsKnown() bool
type ErrorDataSource ¶
type ErrorDataSource = shared.ErrorDataSource
This is an alias to an internal type.
type Hyperdrive ¶
type Hyperdrive struct {
// Define configurations using a unique string identifier.
ID string `json:"id,required"`
// The name of the Hyperdrive configuration. Used to identify the configuration in
// the Cloudflare dashboard and API.
Name string `json:"name,required"`
Origin HyperdriveOrigin `json:"origin,required"`
Caching HyperdriveCaching `json:"caching"`
// Defines the creation time of the Hyperdrive configuration.
CreatedOn time.Time `json:"created_on" format:"date-time"`
// Defines the last modified time of the Hyperdrive configuration.
ModifiedOn time.Time `json:"modified_on" format:"date-time"`
MTLS HyperdriveMTLS `json:"mtls"`
// The (soft) maximum number of connections the Hyperdrive is allowed to make to
// the origin database.
OriginConnectionLimit int64 `json:"origin_connection_limit"`
JSON hyperdriveJSON `json:"-"`
}
func (*Hyperdrive) UnmarshalJSON ¶
func (r *Hyperdrive) UnmarshalJSON(data []byte) (err error)
type HyperdriveCaching ¶
type HyperdriveCaching struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled bool `json:"disabled"`
// Specify the maximum duration (in seconds) items should persist in the cache.
// Defaults to 60 seconds if not specified.
MaxAge int64 `json:"max_age"`
// Specify the number of seconds the cache may serve a stale response. Defaults to
// 15 seconds if not specified.
StaleWhileRevalidate int64 `json:"stale_while_revalidate"`
JSON hyperdriveCachingJSON `json:"-"`
// contains filtered or unexported fields
}
func (HyperdriveCaching) AsUnion ¶
func (r HyperdriveCaching) AsUnion() HyperdriveCachingUnion
AsUnion returns a HyperdriveCachingUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are HyperdriveCachingHyperdriveHyperdriveCachingCommon, HyperdriveCachingHyperdriveHyperdriveCachingEnabled.
func (*HyperdriveCaching) UnmarshalJSON ¶
func (r *HyperdriveCaching) UnmarshalJSON(data []byte) (err error)
type HyperdriveCachingHyperdriveHyperdriveCachingCommon ¶
type HyperdriveCachingHyperdriveHyperdriveCachingCommon struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled bool `json:"disabled"`
JSON hyperdriveCachingHyperdriveHyperdriveCachingCommonJSON `json:"-"`
}
func (*HyperdriveCachingHyperdriveHyperdriveCachingCommon) UnmarshalJSON ¶
func (r *HyperdriveCachingHyperdriveHyperdriveCachingCommon) UnmarshalJSON(data []byte) (err error)
type HyperdriveCachingHyperdriveHyperdriveCachingCommonParam ¶
type HyperdriveCachingHyperdriveHyperdriveCachingCommonParam struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled param.Field[bool] `json:"disabled"`
}
func (HyperdriveCachingHyperdriveHyperdriveCachingCommonParam) MarshalJSON ¶
func (r HyperdriveCachingHyperdriveHyperdriveCachingCommonParam) MarshalJSON() (data []byte, err error)
type HyperdriveCachingHyperdriveHyperdriveCachingEnabled ¶
type HyperdriveCachingHyperdriveHyperdriveCachingEnabled struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled bool `json:"disabled"`
// Specify the maximum duration (in seconds) items should persist in the cache.
// Defaults to 60 seconds if not specified.
MaxAge int64 `json:"max_age"`
// Specify the number of seconds the cache may serve a stale response. Defaults to
// 15 seconds if not specified.
StaleWhileRevalidate int64 `json:"stale_while_revalidate"`
JSON hyperdriveCachingHyperdriveHyperdriveCachingEnabledJSON `json:"-"`
}
func (*HyperdriveCachingHyperdriveHyperdriveCachingEnabled) UnmarshalJSON ¶
func (r *HyperdriveCachingHyperdriveHyperdriveCachingEnabled) UnmarshalJSON(data []byte) (err error)
type HyperdriveCachingHyperdriveHyperdriveCachingEnabledParam ¶
type HyperdriveCachingHyperdriveHyperdriveCachingEnabledParam struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled param.Field[bool] `json:"disabled"`
// Specify the maximum duration (in seconds) items should persist in the cache.
// Defaults to 60 seconds if not specified.
MaxAge param.Field[int64] `json:"max_age"`
// Specify the number of seconds the cache may serve a stale response. Defaults to
// 15 seconds if not specified.
StaleWhileRevalidate param.Field[int64] `json:"stale_while_revalidate"`
}
func (HyperdriveCachingHyperdriveHyperdriveCachingEnabledParam) MarshalJSON ¶
func (r HyperdriveCachingHyperdriveHyperdriveCachingEnabledParam) MarshalJSON() (data []byte, err error)
type HyperdriveCachingParam ¶
type HyperdriveCachingParam struct {
// Set to true to disable caching of SQL responses. Default is false.
Disabled param.Field[bool] `json:"disabled"`
// Specify the maximum duration (in seconds) items should persist in the cache.
// Defaults to 60 seconds if not specified.
MaxAge param.Field[int64] `json:"max_age"`
// Specify the number of seconds the cache may serve a stale response. Defaults to
// 15 seconds if not specified.
StaleWhileRevalidate param.Field[int64] `json:"stale_while_revalidate"`
}
func (HyperdriveCachingParam) MarshalJSON ¶
func (r HyperdriveCachingParam) MarshalJSON() (data []byte, err error)
type HyperdriveCachingUnion ¶
type HyperdriveCachingUnion interface {
// contains filtered or unexported methods
}
Union satisfied by HyperdriveCachingHyperdriveHyperdriveCachingCommon or HyperdriveCachingHyperdriveHyperdriveCachingEnabled.
type HyperdriveCachingUnionParam ¶
type HyperdriveCachingUnionParam interface {
// contains filtered or unexported methods
}
Satisfied by hyperdrive.HyperdriveCachingHyperdriveHyperdriveCachingCommonParam, hyperdrive.HyperdriveCachingHyperdriveHyperdriveCachingEnabledParam, HyperdriveCachingParam.
type HyperdriveMTLS ¶
type HyperdriveMTLS struct {
// Define CA certificate ID obtained after uploading CA cert.
CACertificateID string `json:"ca_certificate_id"`
// Define mTLS certificate ID obtained after uploading client cert.
MTLSCertificateID string `json:"mtls_certificate_id"`
// Set SSL mode to 'require', 'verify-ca', or 'verify-full' to verify the CA.
Sslmode string `json:"sslmode"`
JSON hyperdriveMTLSJSON `json:"-"`
}
func (*HyperdriveMTLS) UnmarshalJSON ¶
func (r *HyperdriveMTLS) UnmarshalJSON(data []byte) (err error)
type HyperdriveMTLSParam ¶
type HyperdriveMTLSParam struct {
// Define CA certificate ID obtained after uploading CA cert.
CACertificateID param.Field[string] `json:"ca_certificate_id"`
// Define mTLS certificate ID obtained after uploading client cert.
MTLSCertificateID param.Field[string] `json:"mtls_certificate_id"`
// Set SSL mode to 'require', 'verify-ca', or 'verify-full' to verify the CA.
Sslmode param.Field[string] `json:"sslmode"`
}
func (HyperdriveMTLSParam) MarshalJSON ¶
func (r HyperdriveMTLSParam) MarshalJSON() (data []byte, err error)
type HyperdriveOrigin ¶
type HyperdriveOrigin struct {
// Set the name of your origin database.
Database string `json:"database,required"`
// Defines the host (hostname or IP) of your origin database.
Host string `json:"host,required"`
// Specifies the URL scheme used to connect to your origin database.
Scheme HyperdriveOriginScheme `json:"scheme,required"`
// Set the user of your origin database.
User string `json:"user,required"`
// Defines the Client ID of the Access token to use when connecting to the origin
// database.
AccessClientID string `json:"access_client_id"`
// Defines the port of your origin database. Defaults to 5432 for PostgreSQL or
// 3306 for MySQL if not specified.
Port int64 `json:"port"`
JSON hyperdriveOriginJSON `json:"-"`
// contains filtered or unexported fields
}
func (HyperdriveOrigin) AsUnion ¶
func (r HyperdriveOrigin) AsUnion() HyperdriveOriginUnion
AsUnion returns a HyperdriveOriginUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are HyperdriveOriginPublicDatabase, HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnel.
func (*HyperdriveOrigin) UnmarshalJSON ¶
func (r *HyperdriveOrigin) UnmarshalJSON(data []byte) (err error)
type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnel ¶
type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnel struct {
// Defines the Client ID of the Access token to use when connecting to the origin
// database.
AccessClientID string `json:"access_client_id,required"`
// Set the name of your origin database.
Database string `json:"database,required"`
// Defines the host (hostname or IP) of your origin database.
Host string `json:"host,required"`
// Specifies the URL scheme used to connect to your origin database.
Scheme HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme `json:"scheme,required"`
// Set the user of your origin database.
User string `json:"user,required"`
JSON hyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelJSON `json:"-"`
}
func (*HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnel) UnmarshalJSON ¶
func (r *HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnel) UnmarshalJSON(data []byte) (err error)
type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelParam ¶
type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelParam struct {
// Defines the Client ID of the Access token to use when connecting to the origin
// database.
AccessClientID param.Field[string] `json:"access_client_id,required"`
// Defines the Client Secret of the Access Token to use when connecting to the
// origin database. The API never returns this write-only value.
AccessClientSecret param.Field[string] `json:"access_client_secret,required"`
// Set the name of your origin database.
Database param.Field[string] `json:"database,required"`
// Defines the host (hostname or IP) of your origin database.
Host param.Field[string] `json:"host,required"`
// Set the password needed to access your origin database. The API never returns
// this write-only value.
Password param.Field[string] `json:"password,required"`
// Specifies the URL scheme used to connect to your origin database.
Scheme param.Field[HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme] `json:"scheme,required"`
// Set the user of your origin database.
User param.Field[string] `json:"user,required"`
}
func (HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelParam) MarshalJSON ¶
func (r HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelParam) MarshalJSON() (data []byte, err error)
type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme ¶
type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme string
Specifies the URL scheme used to connect to your origin database.
const ( HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelSchemePostgres HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme = "postgres" HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelSchemePostgresql HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme = "postgresql" HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelSchemeMysql HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme = "mysql" )
func (HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme) IsKnown ¶
func (r HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelScheme) IsKnown() bool
type HyperdriveOriginParam ¶
type HyperdriveOriginParam struct {
// Set the name of your origin database.
Database param.Field[string] `json:"database,required"`
// Defines the host (hostname or IP) of your origin database.
Host param.Field[string] `json:"host,required"`
// Set the password needed to access your origin database. The API never returns
// this write-only value.
Password param.Field[string] `json:"password,required"`
// Specifies the URL scheme used to connect to your origin database.
Scheme param.Field[HyperdriveOriginScheme] `json:"scheme,required"`
// Set the user of your origin database.
User param.Field[string] `json:"user,required"`
// Defines the Client ID of the Access token to use when connecting to the origin
// database.
AccessClientID param.Field[string] `json:"access_client_id"`
// Defines the Client Secret of the Access Token to use when connecting to the
// origin database. The API never returns this write-only value.
AccessClientSecret param.Field[string] `json:"access_client_secret"`
// Defines the port of your origin database. Defaults to 5432 for PostgreSQL or
// 3306 for MySQL if not specified.
Port param.Field[int64] `json:"port"`
}
func (HyperdriveOriginParam) MarshalJSON ¶
func (r HyperdriveOriginParam) MarshalJSON() (data []byte, err error)
type HyperdriveOriginPublicDatabase ¶
type HyperdriveOriginPublicDatabase struct {
// Set the name of your origin database.
Database string `json:"database,required"`
// Defines the host (hostname or IP) of your origin database.
Host string `json:"host,required"`
// Defines the port of your origin database. Defaults to 5432 for PostgreSQL or
// 3306 for MySQL if not specified.
Port int64 `json:"port,required"`
// Specifies the URL scheme used to connect to your origin database.
Scheme HyperdriveOriginPublicDatabaseScheme `json:"scheme,required"`
// Set the user of your origin database.
User string `json:"user,required"`
JSON hyperdriveOriginPublicDatabaseJSON `json:"-"`
}
func (*HyperdriveOriginPublicDatabase) UnmarshalJSON ¶
func (r *HyperdriveOriginPublicDatabase) UnmarshalJSON(data []byte) (err error)
type HyperdriveOriginPublicDatabaseParam ¶
type HyperdriveOriginPublicDatabaseParam struct {
// Set the name of your origin database.
Database param.Field[string] `json:"database,required"`
// Defines the host (hostname or IP) of your origin database.
Host param.Field[string] `json:"host,required"`
// Set the password needed to access your origin database. The API never returns
// this write-only value.
Password param.Field[string] `json:"password,required"`
// Defines the port of your origin database. Defaults to 5432 for PostgreSQL or
// 3306 for MySQL if not specified.
Port param.Field[int64] `json:"port,required"`
// Specifies the URL scheme used to connect to your origin database.
Scheme param.Field[HyperdriveOriginPublicDatabaseScheme] `json:"scheme,required"`
// Set the user of your origin database.
User param.Field[string] `json:"user,required"`
}
func (HyperdriveOriginPublicDatabaseParam) MarshalJSON ¶
func (r HyperdriveOriginPublicDatabaseParam) MarshalJSON() (data []byte, err error)
type HyperdriveOriginPublicDatabaseScheme ¶
type HyperdriveOriginPublicDatabaseScheme string
Specifies the URL scheme used to connect to your origin database.
const ( HyperdriveOriginPublicDatabaseSchemePostgres HyperdriveOriginPublicDatabaseScheme = "postgres" HyperdriveOriginPublicDatabaseSchemePostgresql HyperdriveOriginPublicDatabaseScheme = "postgresql" HyperdriveOriginPublicDatabaseSchemeMysql HyperdriveOriginPublicDatabaseScheme = "mysql" )
func (HyperdriveOriginPublicDatabaseScheme) IsKnown ¶
func (r HyperdriveOriginPublicDatabaseScheme) IsKnown() bool
type HyperdriveOriginScheme ¶
type HyperdriveOriginScheme string
Specifies the URL scheme used to connect to your origin database.
const ( HyperdriveOriginSchemePostgres HyperdriveOriginScheme = "postgres" HyperdriveOriginSchemePostgresql HyperdriveOriginScheme = "postgresql" HyperdriveOriginSchemeMysql HyperdriveOriginScheme = "mysql" )
func (HyperdriveOriginScheme) IsKnown ¶
func (r HyperdriveOriginScheme) IsKnown() bool
type HyperdriveOriginUnion ¶
type HyperdriveOriginUnion interface {
// contains filtered or unexported methods
}
Union satisfied by HyperdriveOriginPublicDatabase or HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnel.
type HyperdriveOriginUnionParam ¶
type HyperdriveOriginUnionParam interface {
// contains filtered or unexported methods
}
Satisfied by hyperdrive.HyperdriveOriginPublicDatabaseParam, hyperdrive.HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelParam, HyperdriveOriginParam.
type HyperdriveParam ¶
type HyperdriveParam struct {
// The name of the Hyperdrive configuration. Used to identify the configuration in
// the Cloudflare dashboard and API.
Name param.Field[string] `json:"name,required"`
Origin param.Field[HyperdriveOriginUnionParam] `json:"origin,required"`
Caching param.Field[HyperdriveCachingUnionParam] `json:"caching"`
MTLS param.Field[HyperdriveMTLSParam] `json:"mtls"`
// The (soft) maximum number of connections the Hyperdrive is allowed to make to
// the origin database.
OriginConnectionLimit param.Field[int64] `json:"origin_connection_limit"`
}
func (HyperdriveParam) MarshalJSON ¶
func (r HyperdriveParam) MarshalJSON() (data []byte, err error)
type HyperdriveService ¶
type HyperdriveService struct {
Options []option.RequestOption
Configs *ConfigService
}
HyperdriveService 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 NewHyperdriveService method instead.
func NewHyperdriveService ¶
func NewHyperdriveService(opts ...option.RequestOption) (r *HyperdriveService)
NewHyperdriveService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type MemberPoliciesAccess ¶
type MemberPoliciesAccess = shared.MemberPoliciesAccess
Allow or deny operations against the resources.
This is an alias to an internal type.
type MemberPoliciesPermissionGroup ¶
type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type MemberPoliciesPermissionGroupsMeta ¶
type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type MemberPoliciesResourceGroup ¶
type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup
A group of scoped resources.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsMeta ¶
type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta
Attributes associated to the resource group.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsScope ¶
type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope
A scope is a combination of scope objects which provides additional context.
This is an alias to an internal type.
type MemberPoliciesResourceGroupsScopeObject ¶
type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject
A scope object represents any resource that can have actions applied against invite.
This is an alias to an internal type.
type MemberStatus ¶
type MemberStatus = shared.MemberStatus
A member's status in the account.
This is an alias to an internal type.
type MemberUser ¶
type MemberUser = shared.MemberUser
Details of the user associated to the membership.
This is an alias to an internal type.
type PermissionGrant ¶
type PermissionGrant = shared.PermissionGrant
This is an alias to an internal type.
type PermissionGrantParam ¶
type PermissionGrantParam = shared.PermissionGrantParam
This is an alias to an internal type.
type RatePlanID ¶
type RatePlanID = shared.RatePlanID
The ID of the rate plan.
This is an alias to an internal type.
type RatePlanParam ¶
type RatePlanParam = shared.RatePlanParam
The rate plan applied to the subscription.
This is an alias to an internal type.
type ResponseInfoSource ¶
type ResponseInfoSource = shared.ResponseInfoSource
This is an alias to an internal type.
type RolePermissions ¶
type RolePermissions = shared.RolePermissions
This is an alias to an internal type.
type RolePermissionsParam ¶
type RolePermissionsParam = shared.RolePermissionsParam
This is an alias to an internal type.
type SortDirection ¶
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
type SubscriptionFrequency ¶
type SubscriptionFrequency = shared.SubscriptionFrequency
How often the subscription is renewed automatically.
This is an alias to an internal type.
type SubscriptionParam ¶
type SubscriptionParam = shared.SubscriptionParam
This is an alias to an internal type.
type SubscriptionState ¶
type SubscriptionState = shared.SubscriptionState
The state that the subscription is in.
This is an alias to an internal type.
type TokenCondition ¶
type TokenCondition = shared.TokenCondition
This is an alias to an internal type.
type TokenConditionCIDRList ¶
type TokenConditionCIDRList = shared.TokenConditionCIDRList
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionCIDRListParam ¶
type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
IPv4/IPv6 CIDR.
This is an alias to an internal type.
type TokenConditionParam ¶
type TokenConditionParam = shared.TokenConditionParam
This is an alias to an internal type.
type TokenConditionRequestIP ¶
type TokenConditionRequestIP = shared.TokenConditionRequestIP
Client IP restrictions.
This is an alias to an internal type.
type TokenConditionRequestIPParam ¶
type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
Client IP restrictions.
This is an alias to an internal type.
type TokenPolicyEffect ¶
type TokenPolicyEffect = shared.TokenPolicyEffect
Allow or deny operations against the resources.
This is an alias to an internal type.
type TokenPolicyParam ¶
type TokenPolicyParam = shared.TokenPolicyParam
This is an alias to an internal type.
type TokenPolicyPermissionGroup ¶
type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupParam ¶
type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
A named group of permissions that map to a group of operations against resources.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta ¶
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam ¶
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
Attributes associated to the permission group.
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectNested ¶
type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested
Map of nested resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam ¶
type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam
Map of nested resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectString ¶
type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString
Map of simple string resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesIAMResourcesTypeObjectStringParam ¶
type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam
Map of simple string resource permissions
This is an alias to an internal type.
type TokenPolicyResourcesUnion ¶
type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion
A list of resource names that the policy applies to.
This is an alias to an internal type.
type TokenPolicyResourcesUnionParam ¶
type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam
A list of resource names that the policy applies to.
This is an alias to an internal type.
type TokenStatus ¶
type TokenStatus = shared.TokenStatus
Status of the token.
This is an alias to an internal type.
type TokenValue ¶
type TokenValue = shared.TokenValue
The token value.
This is an alias to an internal type.