Documentation ¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type Error
- type ErrorData
- type EventNotificationService
- type MemberParam
- type MemberRoleParam
- type MemberRolesPermissionsParam
- type MemberStatus
- type MemberUserParam
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type R2ConfigurationGetResponse
- type R2ConfigurationGetResponseEnvelope
- type R2ConfigurationGetResponseEnvelopeSuccess
- type R2ConfigurationGetResponseItem
- type R2ConfigurationGetResponseItemRule
- type R2ConfigurationGetResponseItemRulesAction
- type R2ConfigurationQueueDeleteResponseArray
- type R2ConfigurationQueueDeleteResponseEnvelope
- type R2ConfigurationQueueDeleteResponseEnvelopeSuccess
- type R2ConfigurationQueueDeleteResponseUnion
- type R2ConfigurationQueueService
- func (r *R2ConfigurationQueueService) Delete(ctx context.Context, accountID string, bucketName string, queueID string, ...) (res *R2ConfigurationQueueDeleteResponseUnion, err error)
- func (r *R2ConfigurationQueueService) Update(ctx context.Context, accountID string, bucketName string, queueID string, ...) (res *R2ConfigurationQueueUpdateResponse, err error)
- type R2ConfigurationQueueUpdateParams
- type R2ConfigurationQueueUpdateParamsRule
- type R2ConfigurationQueueUpdateParamsRulesAction
- type R2ConfigurationQueueUpdateResponse
- type R2ConfigurationQueueUpdateResponseEnvelope
- type R2ConfigurationQueueUpdateResponseEnvelopeSuccess
- type R2ConfigurationService
- type R2Service
- type ResponseInfo
- type Role
- type SortDirection
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 CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending
This is an alias to an internal value.
const SortDirectionAsc = shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc = shared.SortDirectionDesc
This is an alias to an internal value.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogAction ¶
type AuditLogAction = shared.AuditLogAction
This is an alias to an internal type.
type AuditLogActor ¶
type AuditLogActor = shared.AuditLogActor
This is an alias to an internal type.
type AuditLogActorType ¶
type AuditLogActorType = shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
type AuditLogOwner ¶
type AuditLogOwner = shared.AuditLogOwner
This is an alias to an internal type.
type AuditLogResource ¶
type AuditLogResource = shared.AuditLogResource
This is an alias to an internal type.
type CertificateCA ¶
type CertificateCA = shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
type CertificateRequestType ¶
type CertificateRequestType = shared.CertificateRequestType
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).
This is an alias to an internal type.
type CloudflareTunnel ¶
type CloudflareTunnel = shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
type CloudflareTunnelConnection ¶
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
This is an alias to an internal type.
type CloudflareTunnelStatus ¶
type CloudflareTunnelStatus = shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
This is an alias to an internal type.
type CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type EventNotificationService ¶
type EventNotificationService struct { Options []option.RequestOption R2 *R2Service }
EventNotificationService contains methods and other services that help with interacting with the testcloudflare 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 NewEventNotificationService method instead.
func NewEventNotificationService ¶
func NewEventNotificationService(opts ...option.RequestOption) (r *EventNotificationService)
NewEventNotificationService 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 MemberRoleParam ¶
type MemberRoleParam = shared.MemberRoleParam
This is an alias to an internal type.
type MemberRolesPermissionsParam ¶
type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam
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 MemberUserParam ¶
type MemberUserParam = shared.MemberUserParam
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 R2ConfigurationGetResponse ¶
type R2ConfigurationGetResponse map[string]map[string]R2ConfigurationGetResponseItem
type R2ConfigurationGetResponseEnvelope ¶
type R2ConfigurationGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result R2ConfigurationGetResponse `json:"result,required"` // Whether the API call was successful Success R2ConfigurationGetResponseEnvelopeSuccess `json:"success,required"` JSON r2ConfigurationGetResponseEnvelopeJSON `json:"-"` }
func (*R2ConfigurationGetResponseEnvelope) UnmarshalJSON ¶
func (r *R2ConfigurationGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type R2ConfigurationGetResponseEnvelopeSuccess ¶
type R2ConfigurationGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
R2ConfigurationGetResponseEnvelopeSuccessTrue R2ConfigurationGetResponseEnvelopeSuccess = true
)
func (R2ConfigurationGetResponseEnvelopeSuccess) IsKnown ¶
func (r R2ConfigurationGetResponseEnvelopeSuccess) IsKnown() bool
type R2ConfigurationGetResponseItem ¶
type R2ConfigurationGetResponseItem struct { // Queue ID that will receive notifications based on the configured rules Queue string `json:"queue,required"` // Array of rules to drive notifications Rules []R2ConfigurationGetResponseItemRule `json:"rules,required"` JSON r2ConfigurationGetResponseItemJSON `json:"-"` }
func (*R2ConfigurationGetResponseItem) UnmarshalJSON ¶
func (r *R2ConfigurationGetResponseItem) UnmarshalJSON(data []byte) (err error)
type R2ConfigurationGetResponseItemRule ¶
type R2ConfigurationGetResponseItemRule struct { // Array of R2 object actions that will trigger notifications Actions []R2ConfigurationGetResponseItemRulesAction `json:"actions,required"` // Notifications will be sent only for objects with this prefix Prefix string `json:"prefix"` // Notifications will be sent only for objects with this suffix Suffix string `json:"suffix"` JSON r2ConfigurationGetResponseItemRuleJSON `json:"-"` }
func (*R2ConfigurationGetResponseItemRule) UnmarshalJSON ¶
func (r *R2ConfigurationGetResponseItemRule) UnmarshalJSON(data []byte) (err error)
type R2ConfigurationGetResponseItemRulesAction ¶
type R2ConfigurationGetResponseItemRulesAction string
const ( R2ConfigurationGetResponseItemRulesActionPutObject R2ConfigurationGetResponseItemRulesAction = "PutObject" R2ConfigurationGetResponseItemRulesActionCopyObject R2ConfigurationGetResponseItemRulesAction = "CopyObject" R2ConfigurationGetResponseItemRulesActionDeleteObject R2ConfigurationGetResponseItemRulesAction = "DeleteObject" R2ConfigurationGetResponseItemRulesActionCompleteMultipartUpload R2ConfigurationGetResponseItemRulesAction = "CompleteMultipartUpload" R2ConfigurationGetResponseItemRulesActionAbortMultipartUpload R2ConfigurationGetResponseItemRulesAction = "AbortMultipartUpload" )
func (R2ConfigurationGetResponseItemRulesAction) IsKnown ¶
func (r R2ConfigurationGetResponseItemRulesAction) IsKnown() bool
type R2ConfigurationQueueDeleteResponseArray ¶
type R2ConfigurationQueueDeleteResponseArray []interface{}
func (R2ConfigurationQueueDeleteResponseArray) ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion ¶
func (r R2ConfigurationQueueDeleteResponseArray) ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion()
type R2ConfigurationQueueDeleteResponseEnvelope ¶
type R2ConfigurationQueueDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result R2ConfigurationQueueDeleteResponseUnion `json:"result,required"` // Whether the API call was successful Success R2ConfigurationQueueDeleteResponseEnvelopeSuccess `json:"success,required"` JSON r2ConfigurationQueueDeleteResponseEnvelopeJSON `json:"-"` }
func (*R2ConfigurationQueueDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *R2ConfigurationQueueDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type R2ConfigurationQueueDeleteResponseEnvelopeSuccess ¶
type R2ConfigurationQueueDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
R2ConfigurationQueueDeleteResponseEnvelopeSuccessTrue R2ConfigurationQueueDeleteResponseEnvelopeSuccess = true
)
func (R2ConfigurationQueueDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r R2ConfigurationQueueDeleteResponseEnvelopeSuccess) IsKnown() bool
type R2ConfigurationQueueDeleteResponseUnion ¶
type R2ConfigurationQueueDeleteResponseUnion interface {
ImplementsEventNotificationsR2ConfigurationQueueDeleteResponseUnion()
}
Union satisfied by event_notifications.R2ConfigurationQueueDeleteResponseUnknown, event_notifications.R2ConfigurationQueueDeleteResponseArray or shared.UnionString.
type R2ConfigurationQueueService ¶
type R2ConfigurationQueueService struct {
Options []option.RequestOption
}
R2ConfigurationQueueService contains methods and other services that help with interacting with the testcloudflare 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 NewR2ConfigurationQueueService method instead.
func NewR2ConfigurationQueueService ¶
func NewR2ConfigurationQueueService(opts ...option.RequestOption) (r *R2ConfigurationQueueService)
NewR2ConfigurationQueueService 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 (*R2ConfigurationQueueService) Delete ¶
func (r *R2ConfigurationQueueService) Delete(ctx context.Context, accountID string, bucketName string, queueID string, opts ...option.RequestOption) (res *R2ConfigurationQueueDeleteResponseUnion, err error)
Turn off all event notifications configured for delivery to a given queue. No further notifications will be produced for the queue once complete.
func (*R2ConfigurationQueueService) Update ¶
func (r *R2ConfigurationQueueService) Update(ctx context.Context, accountID string, bucketName string, queueID string, body R2ConfigurationQueueUpdateParams, opts ...option.RequestOption) (res *R2ConfigurationQueueUpdateResponse, err error)
Define the rules for a given queue which will determine event notification production.
type R2ConfigurationQueueUpdateParams ¶
type R2ConfigurationQueueUpdateParams struct { // Array of rules to drive notifications Rules param.Field[[]R2ConfigurationQueueUpdateParamsRule] `json:"rules"` }
func (R2ConfigurationQueueUpdateParams) MarshalJSON ¶
func (r R2ConfigurationQueueUpdateParams) MarshalJSON() (data []byte, err error)
type R2ConfigurationQueueUpdateParamsRule ¶
type R2ConfigurationQueueUpdateParamsRule struct { // Array of R2 object actions that will trigger notifications Actions param.Field[[]R2ConfigurationQueueUpdateParamsRulesAction] `json:"actions,required"` // Notifications will be sent only for objects with this prefix Prefix param.Field[string] `json:"prefix"` // Notifications will be sent only for objects with this suffix Suffix param.Field[string] `json:"suffix"` }
func (R2ConfigurationQueueUpdateParamsRule) MarshalJSON ¶
func (r R2ConfigurationQueueUpdateParamsRule) MarshalJSON() (data []byte, err error)
type R2ConfigurationQueueUpdateParamsRulesAction ¶
type R2ConfigurationQueueUpdateParamsRulesAction string
const ( R2ConfigurationQueueUpdateParamsRulesActionPutObject R2ConfigurationQueueUpdateParamsRulesAction = "PutObject" R2ConfigurationQueueUpdateParamsRulesActionCopyObject R2ConfigurationQueueUpdateParamsRulesAction = "CopyObject" R2ConfigurationQueueUpdateParamsRulesActionDeleteObject R2ConfigurationQueueUpdateParamsRulesAction = "DeleteObject" R2ConfigurationQueueUpdateParamsRulesActionCompleteMultipartUpload R2ConfigurationQueueUpdateParamsRulesAction = "CompleteMultipartUpload" R2ConfigurationQueueUpdateParamsRulesActionAbortMultipartUpload R2ConfigurationQueueUpdateParamsRulesAction = "AbortMultipartUpload" )
func (R2ConfigurationQueueUpdateParamsRulesAction) IsKnown ¶
func (r R2ConfigurationQueueUpdateParamsRulesAction) IsKnown() bool
type R2ConfigurationQueueUpdateResponse ¶
type R2ConfigurationQueueUpdateResponse struct { EventNotificationDetailID string `json:"event_notification_detail_id"` JSON r2ConfigurationQueueUpdateResponseJSON `json:"-"` }
func (*R2ConfigurationQueueUpdateResponse) UnmarshalJSON ¶
func (r *R2ConfigurationQueueUpdateResponse) UnmarshalJSON(data []byte) (err error)
type R2ConfigurationQueueUpdateResponseEnvelope ¶
type R2ConfigurationQueueUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result R2ConfigurationQueueUpdateResponse `json:"result,required"` // Whether the API call was successful Success R2ConfigurationQueueUpdateResponseEnvelopeSuccess `json:"success,required"` JSON r2ConfigurationQueueUpdateResponseEnvelopeJSON `json:"-"` }
func (*R2ConfigurationQueueUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *R2ConfigurationQueueUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type R2ConfigurationQueueUpdateResponseEnvelopeSuccess ¶
type R2ConfigurationQueueUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
R2ConfigurationQueueUpdateResponseEnvelopeSuccessTrue R2ConfigurationQueueUpdateResponseEnvelopeSuccess = true
)
func (R2ConfigurationQueueUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r R2ConfigurationQueueUpdateResponseEnvelopeSuccess) IsKnown() bool
type R2ConfigurationService ¶
type R2ConfigurationService struct { Options []option.RequestOption Queues *R2ConfigurationQueueService }
R2ConfigurationService contains methods and other services that help with interacting with the testcloudflare 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 NewR2ConfigurationService method instead.
func NewR2ConfigurationService ¶
func NewR2ConfigurationService(opts ...option.RequestOption) (r *R2ConfigurationService)
NewR2ConfigurationService 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 (*R2ConfigurationService) Get ¶
func (r *R2ConfigurationService) Get(ctx context.Context, accountID string, bucketName string, opts ...option.RequestOption) (res *R2ConfigurationGetResponse, err error)
Returns all notification rules for each queue for which bucket notifications are produced.
type R2Service ¶
type R2Service struct { Options []option.RequestOption Configuration *R2ConfigurationService }
R2Service contains methods and other services that help with interacting with the testcloudflare 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 NewR2Service method instead.
func NewR2Service ¶
func NewR2Service(opts ...option.RequestOption) (r *R2Service)
NewR2Service 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 SortDirection ¶
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.