Documentation ¶
Index ¶
- Constants
- type ASN
- type ASNParam
- type AnalyticsAggregateCurrentGetParams
- type AnalyticsAggregateCurrentGetResponse
- type AnalyticsAggregateCurrentGetResponseEnvelope
- type AnalyticsAggregateCurrentGetResponseEnvelopeSuccess
- type AnalyticsAggregateCurrentService
- type AnalyticsAggregateService
- type AnalyticsEventBytimeGetParams
- type AnalyticsEventBytimeGetParamsMetric
- type AnalyticsEventBytimeGetParamsTimeDelta
- type AnalyticsEventBytimeGetResponseEnvelope
- type AnalyticsEventBytimeGetResponseEnvelopeSuccess
- type AnalyticsEventBytimeGetResponseUnion
- type AnalyticsEventBytimeService
- type AnalyticsEventService
- type AnalyticsEventSummaryGetParams
- type AnalyticsEventSummaryGetParamsMetric
- type AnalyticsEventSummaryGetResponseEnvelope
- type AnalyticsEventSummaryGetResponseEnvelopeSuccess
- type AnalyticsEventSummaryGetResponseUnion
- type AnalyticsEventSummaryService
- type AnalyticsService
- type AppDeleteResponse
- type AppDeleteResponseEnvelope
- type AppDeleteResponseEnvelopeSuccess
- type AppGetResponseEnvelope
- type AppGetResponseEnvelopeSuccess
- type AppGetResponseUnion
- type AppListParams
- type AppListParamsDirection
- type AppListParamsOrder
- type AppListResponse
- type AppNewParams
- type AppNewParamsProxyProtocol
- type AppNewParamsTLS
- type AppNewParamsTrafficType
- type AppNewResponse
- type AppNewResponseEnvelope
- type AppNewResponseEnvelopeSuccess
- type AppNewResponseProxyProtocol
- type AppNewResponseTLS
- type AppNewResponseTrafficType
- type AppService
- func (r *AppService) Delete(ctx context.Context, zone string, appID string, opts ...option.RequestOption) (res *AppDeleteResponse, err error)
- func (r *AppService) Get(ctx context.Context, zone string, appID string, opts ...option.RequestOption) (res *AppGetResponseUnion, err error)
- func (r *AppService) List(ctx context.Context, zone string, query AppListParams, ...) (res *pagination.V4PagePaginationArray[AppListResponse], err error)
- func (r *AppService) ListAutoPaging(ctx context.Context, zone string, query AppListParams, ...) *pagination.V4PagePaginationArrayAutoPager[AppListResponse]
- func (r *AppService) New(ctx context.Context, zone string, body AppNewParams, ...) (res *AppNewResponse, err error)
- func (r *AppService) Update(ctx context.Context, zone string, appID string, body AppUpdateParams, ...) (res *AppUpdateResponse, err error)
- type AppUpdateParams
- type AppUpdateParamsProxyProtocol
- type AppUpdateParamsTLS
- type AppUpdateParamsTrafficType
- type AppUpdateResponse
- type AppUpdateResponseEnvelope
- type AppUpdateResponseEnvelopeSuccess
- type AppUpdateResponseProxyProtocol
- type AppUpdateResponseTLS
- type AppUpdateResponseTrafficType
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelTunType
- type DNS
- type DNSParam
- type DNSType
- type Dimension
- type EdgeIPs
- type EdgeIPsConnectivity
- type EdgeIPsObject
- type EdgeIPsObjectConnectivity
- type EdgeIPsObjectParam
- type EdgeIPsObjectType
- type EdgeIPsParam
- type EdgeIPsType
- type EdgeIPsUnion
- type EdgeIPsUnionParam
- type Error
- type ErrorData
- type Member
- type MemberParam
- type MemberRole
- type MemberRoleParam
- type MemberRolesPermissions
- type MemberRolesPermissionsParam
- type MemberUser
- type MemberUserParam
- type OriginDNS
- type OriginDNSParam
- type OriginDNSType
- type OriginPortUnion
- type OriginPortUnionParam
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type ResponseInfo
- type Role
- type SortDirection
- type SpectrumService
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 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 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 AnalyticsAggregateCurrentGetParams ¶
type AnalyticsAggregateCurrentGetParams struct { // Comma-delimited list of Spectrum Application Id(s). If provided, the response // will be limited to Spectrum Application Id(s) that match. AppIDParam param.Field[string] `query:"app_id_param"` // Comma-delimited list of Spectrum Application Id(s). If provided, the response // will be limited to Spectrum Application Id(s) that match. AppID param.Field[string] `query:"appID"` // Co-location identifier. ColoName param.Field[string] `query:"colo_name"` }
func (AnalyticsAggregateCurrentGetParams) URLQuery ¶
func (r AnalyticsAggregateCurrentGetParams) URLQuery() (v url.Values)
URLQuery serializes AnalyticsAggregateCurrentGetParams's query parameters as `url.Values`.
type AnalyticsAggregateCurrentGetResponse ¶
type AnalyticsAggregateCurrentGetResponse = interface{}
type AnalyticsAggregateCurrentGetResponseEnvelope ¶
type AnalyticsAggregateCurrentGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []AnalyticsAggregateCurrentGetResponse `json:"result,required"` // Whether the API call was successful Success AnalyticsAggregateCurrentGetResponseEnvelopeSuccess `json:"success,required"` JSON analyticsAggregateCurrentGetResponseEnvelopeJSON `json:"-"` }
func (*AnalyticsAggregateCurrentGetResponseEnvelope) UnmarshalJSON ¶
func (r *AnalyticsAggregateCurrentGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AnalyticsAggregateCurrentGetResponseEnvelopeSuccess ¶
type AnalyticsAggregateCurrentGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AnalyticsAggregateCurrentGetResponseEnvelopeSuccessTrue AnalyticsAggregateCurrentGetResponseEnvelopeSuccess = true
)
func (AnalyticsAggregateCurrentGetResponseEnvelopeSuccess) IsKnown ¶
func (r AnalyticsAggregateCurrentGetResponseEnvelopeSuccess) IsKnown() bool
type AnalyticsAggregateCurrentService ¶
type AnalyticsAggregateCurrentService struct {
Options []option.RequestOption
}
AnalyticsAggregateCurrentService 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 NewAnalyticsAggregateCurrentService method instead.
func NewAnalyticsAggregateCurrentService ¶
func NewAnalyticsAggregateCurrentService(opts ...option.RequestOption) (r *AnalyticsAggregateCurrentService)
NewAnalyticsAggregateCurrentService 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 (*AnalyticsAggregateCurrentService) Get ¶
func (r *AnalyticsAggregateCurrentService) Get(ctx context.Context, zone string, query AnalyticsAggregateCurrentGetParams, opts ...option.RequestOption) (res *[]AnalyticsAggregateCurrentGetResponse, err error)
Retrieves analytics aggregated from the last minute of usage on Spectrum applications underneath a given zone.
type AnalyticsAggregateService ¶
type AnalyticsAggregateService struct { Options []option.RequestOption Currents *AnalyticsAggregateCurrentService }
AnalyticsAggregateService 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 NewAnalyticsAggregateService method instead.
func NewAnalyticsAggregateService ¶
func NewAnalyticsAggregateService(opts ...option.RequestOption) (r *AnalyticsAggregateService)
NewAnalyticsAggregateService 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 AnalyticsEventBytimeGetParams ¶
type AnalyticsEventBytimeGetParams struct { // Can be used to break down the data by given attributes. Options are: // // | Dimension | Name | Example | // | --------- | ----------------------------- | ---------------------------------------------------------- | // | event | Connection Event | connect, progress, disconnect, originError, clientFiltered | // | appID | Application ID | 40d67c87c6cd4b889a4fd57805225e85 | // | coloName | Colo Name | SFO | // | ipVersion | IP version used by the client | 4, 6. | Dimensions param.Field[[]Dimension] `query:"dimensions"` // Used to filter rows by one or more dimensions. Filters can be combined using OR // and AND boolean logic. AND takes precedence over OR in all the expressions. The // OR operator is defined using a comma (,) or OR keyword surrounded by whitespace. // The AND operator is defined using a semicolon (;) or AND keyword surrounded by // whitespace. Note that the semicolon is a reserved character in URLs (rfc1738) // and needs to be percent-encoded as %3B. Comparison options are: // // | Operator | Name | URL Encoded | // | -------- | ------------------------ | ----------- | // | == | Equals | %3D%3D | // | != | Does not equals | !%3D | // | > | Greater Than | %3E | // | < | Less Than | %3C | // | >= | Greater than or equal to | %3E%3D | // | <= | Less than or equal to | %3C%3D . | Filters param.Field[string] `query:"filters"` // One or more metrics to compute. Options are: // // | Metric | Name | Example | Unit | // | -------------- | ----------------------------------- | ------- | --------------------- | // | count | Count of total events | 1000 | Count | // | bytesIngress | Sum of ingress bytes | 1000 | Sum | // | bytesEgress | Sum of egress bytes | 1000 | Sum | // | durationAvg | Average connection duration | 1.0 | Time in milliseconds | // | durationMedian | Median connection duration | 1.0 | Time in milliseconds | // | duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds | // | duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. | Metrics param.Field[[]AnalyticsEventBytimeGetParamsMetric] `query:"metrics"` // Start of time interval to query, defaults to `until` - 6 hours. Timestamp must // be in RFC3339 format and uses UTC unless otherwise specified. Since param.Field[time.Time] `query:"since" format:"date-time"` // The sort order for the result set; sort fields must be included in `metrics` or // `dimensions`. Sort param.Field[[]interface{}] `query:"sort"` // Used to select time series resolution. TimeDelta param.Field[AnalyticsEventBytimeGetParamsTimeDelta] `query:"time_delta"` // End of time interval to query, defaults to current time. Timestamp must be in // RFC3339 format and uses UTC unless otherwise specified. Until param.Field[time.Time] `query:"until" format:"date-time"` }
func (AnalyticsEventBytimeGetParams) URLQuery ¶
func (r AnalyticsEventBytimeGetParams) URLQuery() (v url.Values)
URLQuery serializes AnalyticsEventBytimeGetParams's query parameters as `url.Values`.
type AnalyticsEventBytimeGetParamsMetric ¶
type AnalyticsEventBytimeGetParamsMetric string
const ( AnalyticsEventBytimeGetParamsMetricCount AnalyticsEventBytimeGetParamsMetric = "count" AnalyticsEventBytimeGetParamsMetricBytesIngress AnalyticsEventBytimeGetParamsMetric = "bytesIngress" AnalyticsEventBytimeGetParamsMetricBytesEgress AnalyticsEventBytimeGetParamsMetric = "bytesEgress" AnalyticsEventBytimeGetParamsMetricDurationAvg AnalyticsEventBytimeGetParamsMetric = "durationAvg" AnalyticsEventBytimeGetParamsMetricDurationMedian AnalyticsEventBytimeGetParamsMetric = "durationMedian" AnalyticsEventBytimeGetParamsMetricDuration90th AnalyticsEventBytimeGetParamsMetric = "duration90th" AnalyticsEventBytimeGetParamsMetricDuration99th AnalyticsEventBytimeGetParamsMetric = "duration99th" )
func (AnalyticsEventBytimeGetParamsMetric) IsKnown ¶
func (r AnalyticsEventBytimeGetParamsMetric) IsKnown() bool
type AnalyticsEventBytimeGetParamsTimeDelta ¶
type AnalyticsEventBytimeGetParamsTimeDelta string
Used to select time series resolution.
const ( AnalyticsEventBytimeGetParamsTimeDeltaYear AnalyticsEventBytimeGetParamsTimeDelta = "year" AnalyticsEventBytimeGetParamsTimeDeltaQuarter AnalyticsEventBytimeGetParamsTimeDelta = "quarter" AnalyticsEventBytimeGetParamsTimeDeltaMonth AnalyticsEventBytimeGetParamsTimeDelta = "month" AnalyticsEventBytimeGetParamsTimeDeltaWeek AnalyticsEventBytimeGetParamsTimeDelta = "week" AnalyticsEventBytimeGetParamsTimeDeltaDay AnalyticsEventBytimeGetParamsTimeDelta = "day" AnalyticsEventBytimeGetParamsTimeDeltaHour AnalyticsEventBytimeGetParamsTimeDelta = "hour" AnalyticsEventBytimeGetParamsTimeDeltaDekaminute AnalyticsEventBytimeGetParamsTimeDelta = "dekaminute" AnalyticsEventBytimeGetParamsTimeDeltaMinute AnalyticsEventBytimeGetParamsTimeDelta = "minute" )
func (AnalyticsEventBytimeGetParamsTimeDelta) IsKnown ¶
func (r AnalyticsEventBytimeGetParamsTimeDelta) IsKnown() bool
type AnalyticsEventBytimeGetResponseEnvelope ¶
type AnalyticsEventBytimeGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AnalyticsEventBytimeGetResponseUnion `json:"result,required,nullable"` // Whether the API call was successful Success AnalyticsEventBytimeGetResponseEnvelopeSuccess `json:"success,required"` JSON analyticsEventBytimeGetResponseEnvelopeJSON `json:"-"` }
func (*AnalyticsEventBytimeGetResponseEnvelope) UnmarshalJSON ¶
func (r *AnalyticsEventBytimeGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AnalyticsEventBytimeGetResponseEnvelopeSuccess ¶
type AnalyticsEventBytimeGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AnalyticsEventBytimeGetResponseEnvelopeSuccessTrue AnalyticsEventBytimeGetResponseEnvelopeSuccess = true
)
func (AnalyticsEventBytimeGetResponseEnvelopeSuccess) IsKnown ¶
func (r AnalyticsEventBytimeGetResponseEnvelopeSuccess) IsKnown() bool
type AnalyticsEventBytimeGetResponseUnion ¶
type AnalyticsEventBytimeGetResponseUnion interface {
ImplementsSpectrumAnalyticsEventBytimeGetResponseUnion()
}
Union satisfied by spectrum.AnalyticsEventBytimeGetResponseUnknown or shared.UnionString.
type AnalyticsEventBytimeService ¶
type AnalyticsEventBytimeService struct {
Options []option.RequestOption
}
AnalyticsEventBytimeService 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 NewAnalyticsEventBytimeService method instead.
func NewAnalyticsEventBytimeService ¶
func NewAnalyticsEventBytimeService(opts ...option.RequestOption) (r *AnalyticsEventBytimeService)
NewAnalyticsEventBytimeService 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 (*AnalyticsEventBytimeService) Get ¶
func (r *AnalyticsEventBytimeService) Get(ctx context.Context, zone string, query AnalyticsEventBytimeGetParams, opts ...option.RequestOption) (res *AnalyticsEventBytimeGetResponseUnion, err error)
Retrieves a list of aggregate metrics grouped by time interval.
type AnalyticsEventService ¶
type AnalyticsEventService struct { Options []option.RequestOption Bytimes *AnalyticsEventBytimeService Summaries *AnalyticsEventSummaryService }
AnalyticsEventService 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 NewAnalyticsEventService method instead.
func NewAnalyticsEventService ¶
func NewAnalyticsEventService(opts ...option.RequestOption) (r *AnalyticsEventService)
NewAnalyticsEventService 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 AnalyticsEventSummaryGetParams ¶
type AnalyticsEventSummaryGetParams struct { // Can be used to break down the data by given attributes. Options are: // // | Dimension | Name | Example | // | --------- | ----------------------------- | ---------------------------------------------------------- | // | event | Connection Event | connect, progress, disconnect, originError, clientFiltered | // | appID | Application ID | 40d67c87c6cd4b889a4fd57805225e85 | // | coloName | Colo Name | SFO | // | ipVersion | IP version used by the client | 4, 6. | Dimensions param.Field[[]Dimension] `query:"dimensions"` // Used to filter rows by one or more dimensions. Filters can be combined using OR // and AND boolean logic. AND takes precedence over OR in all the expressions. The // OR operator is defined using a comma (,) or OR keyword surrounded by whitespace. // The AND operator is defined using a semicolon (;) or AND keyword surrounded by // whitespace. Note that the semicolon is a reserved character in URLs (rfc1738) // and needs to be percent-encoded as %3B. Comparison options are: // // | Operator | Name | URL Encoded | // | -------- | ------------------------ | ----------- | // | == | Equals | %3D%3D | // | != | Does not equals | !%3D | // | > | Greater Than | %3E | // | < | Less Than | %3C | // | >= | Greater than or equal to | %3E%3D | // | <= | Less than or equal to | %3C%3D . | Filters param.Field[string] `query:"filters"` // One or more metrics to compute. Options are: // // | Metric | Name | Example | Unit | // | -------------- | ----------------------------------- | ------- | --------------------- | // | count | Count of total events | 1000 | Count | // | bytesIngress | Sum of ingress bytes | 1000 | Sum | // | bytesEgress | Sum of egress bytes | 1000 | Sum | // | durationAvg | Average connection duration | 1.0 | Time in milliseconds | // | durationMedian | Median connection duration | 1.0 | Time in milliseconds | // | duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds | // | duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. | Metrics param.Field[[]AnalyticsEventSummaryGetParamsMetric] `query:"metrics"` // Start of time interval to query, defaults to `until` - 6 hours. Timestamp must // be in RFC3339 format and uses UTC unless otherwise specified. Since param.Field[time.Time] `query:"since" format:"date-time"` // The sort order for the result set; sort fields must be included in `metrics` or // `dimensions`. Sort param.Field[[]interface{}] `query:"sort"` // End of time interval to query, defaults to current time. Timestamp must be in // RFC3339 format and uses UTC unless otherwise specified. Until param.Field[time.Time] `query:"until" format:"date-time"` }
func (AnalyticsEventSummaryGetParams) URLQuery ¶
func (r AnalyticsEventSummaryGetParams) URLQuery() (v url.Values)
URLQuery serializes AnalyticsEventSummaryGetParams's query parameters as `url.Values`.
type AnalyticsEventSummaryGetParamsMetric ¶
type AnalyticsEventSummaryGetParamsMetric string
const ( AnalyticsEventSummaryGetParamsMetricCount AnalyticsEventSummaryGetParamsMetric = "count" AnalyticsEventSummaryGetParamsMetricBytesIngress AnalyticsEventSummaryGetParamsMetric = "bytesIngress" AnalyticsEventSummaryGetParamsMetricBytesEgress AnalyticsEventSummaryGetParamsMetric = "bytesEgress" AnalyticsEventSummaryGetParamsMetricDurationAvg AnalyticsEventSummaryGetParamsMetric = "durationAvg" AnalyticsEventSummaryGetParamsMetricDurationMedian AnalyticsEventSummaryGetParamsMetric = "durationMedian" AnalyticsEventSummaryGetParamsMetricDuration90th AnalyticsEventSummaryGetParamsMetric = "duration90th" AnalyticsEventSummaryGetParamsMetricDuration99th AnalyticsEventSummaryGetParamsMetric = "duration99th" )
func (AnalyticsEventSummaryGetParamsMetric) IsKnown ¶
func (r AnalyticsEventSummaryGetParamsMetric) IsKnown() bool
type AnalyticsEventSummaryGetResponseEnvelope ¶
type AnalyticsEventSummaryGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AnalyticsEventSummaryGetResponseUnion `json:"result,required,nullable"` // Whether the API call was successful Success AnalyticsEventSummaryGetResponseEnvelopeSuccess `json:"success,required"` JSON analyticsEventSummaryGetResponseEnvelopeJSON `json:"-"` }
func (*AnalyticsEventSummaryGetResponseEnvelope) UnmarshalJSON ¶
func (r *AnalyticsEventSummaryGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AnalyticsEventSummaryGetResponseEnvelopeSuccess ¶
type AnalyticsEventSummaryGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AnalyticsEventSummaryGetResponseEnvelopeSuccessTrue AnalyticsEventSummaryGetResponseEnvelopeSuccess = true
)
func (AnalyticsEventSummaryGetResponseEnvelopeSuccess) IsKnown ¶
func (r AnalyticsEventSummaryGetResponseEnvelopeSuccess) IsKnown() bool
type AnalyticsEventSummaryGetResponseUnion ¶
type AnalyticsEventSummaryGetResponseUnion interface {
ImplementsSpectrumAnalyticsEventSummaryGetResponseUnion()
}
Union satisfied by spectrum.AnalyticsEventSummaryGetResponseUnknown or shared.UnionString.
type AnalyticsEventSummaryService ¶
type AnalyticsEventSummaryService struct {
Options []option.RequestOption
}
AnalyticsEventSummaryService 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 NewAnalyticsEventSummaryService method instead.
func NewAnalyticsEventSummaryService ¶
func NewAnalyticsEventSummaryService(opts ...option.RequestOption) (r *AnalyticsEventSummaryService)
NewAnalyticsEventSummaryService 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 (*AnalyticsEventSummaryService) Get ¶
func (r *AnalyticsEventSummaryService) Get(ctx context.Context, zone string, query AnalyticsEventSummaryGetParams, opts ...option.RequestOption) (res *AnalyticsEventSummaryGetResponseUnion, err error)
Retrieves a list of summarised aggregate metrics over a given time period.
type AnalyticsService ¶
type AnalyticsService struct { Options []option.RequestOption Aggregates *AnalyticsAggregateService Events *AnalyticsEventService }
AnalyticsService 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 NewAnalyticsService method instead.
func NewAnalyticsService ¶
func NewAnalyticsService(opts ...option.RequestOption) (r *AnalyticsService)
NewAnalyticsService 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 AppDeleteResponse ¶
type AppDeleteResponse struct { // Application identifier. ID string `json:"id"` JSON appDeleteResponseJSON `json:"-"` }
func (*AppDeleteResponse) UnmarshalJSON ¶
func (r *AppDeleteResponse) UnmarshalJSON(data []byte) (err error)
type AppDeleteResponseEnvelope ¶
type AppDeleteResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AppDeleteResponse `json:"result,required,nullable"` // Whether the API call was successful Success AppDeleteResponseEnvelopeSuccess `json:"success,required"` JSON appDeleteResponseEnvelopeJSON `json:"-"` }
func (*AppDeleteResponseEnvelope) UnmarshalJSON ¶
func (r *AppDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AppDeleteResponseEnvelopeSuccess ¶
type AppDeleteResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AppDeleteResponseEnvelopeSuccessTrue AppDeleteResponseEnvelopeSuccess = true
)
func (AppDeleteResponseEnvelopeSuccess) IsKnown ¶
func (r AppDeleteResponseEnvelopeSuccess) IsKnown() bool
type AppGetResponseEnvelope ¶
type AppGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AppGetResponseUnion `json:"result,required"` // Whether the API call was successful Success AppGetResponseEnvelopeSuccess `json:"success,required"` JSON appGetResponseEnvelopeJSON `json:"-"` }
func (*AppGetResponseEnvelope) UnmarshalJSON ¶
func (r *AppGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AppGetResponseEnvelopeSuccess ¶
type AppGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AppGetResponseEnvelopeSuccessTrue AppGetResponseEnvelopeSuccess = true
)
func (AppGetResponseEnvelopeSuccess) IsKnown ¶
func (r AppGetResponseEnvelopeSuccess) IsKnown() bool
type AppGetResponseUnion ¶
type AppGetResponseUnion interface {
ImplementsSpectrumAppGetResponseUnion()
}
Union satisfied by spectrum.AppGetResponseUnknown or shared.UnionString.
type AppListParams ¶
type AppListParams struct { // Sets the direction by which results are ordered. Direction param.Field[AppListParamsDirection] `query:"direction"` // Application field by which results are ordered. Order param.Field[AppListParamsOrder] `query:"order"` // Page number of paginated results. This parameter is required in order to use // other pagination parameters. If included in the query, `result_info` will be // present in the response. Page param.Field[float64] `query:"page"` // Sets the maximum number of results per page. PerPage param.Field[float64] `query:"per_page"` }
func (AppListParams) URLQuery ¶
func (r AppListParams) URLQuery() (v url.Values)
URLQuery serializes AppListParams's query parameters as `url.Values`.
type AppListParamsDirection ¶
type AppListParamsDirection string
Sets the direction by which results are ordered.
const ( AppListParamsDirectionAsc AppListParamsDirection = "asc" AppListParamsDirectionDesc AppListParamsDirection = "desc" )
func (AppListParamsDirection) IsKnown ¶
func (r AppListParamsDirection) IsKnown() bool
type AppListParamsOrder ¶
type AppListParamsOrder string
Application field by which results are ordered.
const ( AppListParamsOrderProtocol AppListParamsOrder = "protocol" AppListParamsOrderAppID AppListParamsOrder = "app_id" AppListParamsOrderCreatedOn AppListParamsOrder = "created_on" AppListParamsOrderModifiedOn AppListParamsOrder = "modified_on" AppListParamsOrderDNS AppListParamsOrder = "dns" )
func (AppListParamsOrder) IsKnown ¶
func (r AppListParamsOrder) IsKnown() bool
type AppListResponse ¶
type AppListResponse = interface{}
type AppNewParams ¶
type AppNewParams struct { // The name and type of DNS record for the Spectrum application. DNS param.Field[DNSParam] `json:"dns,required"` // The name and type of DNS record for the Spectrum application. OriginDNS param.Field[OriginDNSParam] `json:"origin_dns,required"` // The destination port at the origin. Only specified in conjunction with // origin_dns. May use an integer to specify a single origin port, for example // `1000`, or a string to specify a range of origin ports, for example // `"1000-2000"`. Notes: If specifying a port range, the number of ports in the // range must match the number of ports specified in the "protocol" field. OriginPort param.Field[OriginPortUnionParam] `json:"origin_port,required"` // The port configuration at Cloudflare’s edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol param.Field[string] `json:"protocol,required"` // Enables Argo Smart Routing for this application. Notes: Only available for TCP // applications with traffic_type set to "direct". ArgoSmartRouting param.Field[bool] `json:"argo_smart_routing"` // The anycast edge IP configuration for the hostname of this application. EdgeIPs param.Field[EdgeIPsUnionParam] `json:"edge_ips"` // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. IPFirewall param.Field[bool] `json:"ip_firewall"` // Enables Proxy Protocol to the origin. Refer to // [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) // for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple // Proxy Protocol. ProxyProtocol param.Field[AppNewParamsProxyProtocol] `json:"proxy_protocol"` // The type of TLS termination associated with the application. TLS param.Field[AppNewParamsTLS] `json:"tls"` // Determines how data travels from the edge to your origin. When set to "direct", // Spectrum will send traffic directly to your origin, and the application's type // is derived from the `protocol`. When set to "http" or "https", Spectrum will // apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and // the application type matches this property exactly. TrafficType param.Field[AppNewParamsTrafficType] `json:"traffic_type"` }
func (AppNewParams) MarshalJSON ¶
func (r AppNewParams) MarshalJSON() (data []byte, err error)
type AppNewParamsProxyProtocol ¶
type AppNewParamsProxyProtocol string
Enables Proxy Protocol to the origin. Refer to [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.
const ( AppNewParamsProxyProtocolOff AppNewParamsProxyProtocol = "off" AppNewParamsProxyProtocolV1 AppNewParamsProxyProtocol = "v1" AppNewParamsProxyProtocolV2 AppNewParamsProxyProtocol = "v2" AppNewParamsProxyProtocolSimple AppNewParamsProxyProtocol = "simple" )
func (AppNewParamsProxyProtocol) IsKnown ¶
func (r AppNewParamsProxyProtocol) IsKnown() bool
type AppNewParamsTLS ¶
type AppNewParamsTLS string
The type of TLS termination associated with the application.
const ( AppNewParamsTLSOff AppNewParamsTLS = "off" AppNewParamsTLSFlexible AppNewParamsTLS = "flexible" AppNewParamsTLSFull AppNewParamsTLS = "full" AppNewParamsTLSStrict AppNewParamsTLS = "strict" )
func (AppNewParamsTLS) IsKnown ¶
func (r AppNewParamsTLS) IsKnown() bool
type AppNewParamsTrafficType ¶
type AppNewParamsTrafficType string
Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application's type is derived from the `protocol`. When set to "http" or "https", Spectrum will apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly.
const ( AppNewParamsTrafficTypeDirect AppNewParamsTrafficType = "direct" AppNewParamsTrafficTypeHTTP AppNewParamsTrafficType = "http" AppNewParamsTrafficTypeHTTPS AppNewParamsTrafficType = "https" )
func (AppNewParamsTrafficType) IsKnown ¶
func (r AppNewParamsTrafficType) IsKnown() bool
type AppNewResponse ¶
type AppNewResponse struct { // Application identifier. ID string `json:"id"` // Enables Argo Smart Routing for this application. Notes: Only available for TCP // applications with traffic_type set to "direct". ArgoSmartRouting bool `json:"argo_smart_routing"` // When the Application was created. CreatedOn time.Time `json:"created_on" format:"date-time"` // The name and type of DNS record for the Spectrum application. DNS DNS `json:"dns"` // The anycast edge IP configuration for the hostname of this application. EdgeIPs EdgeIPs `json:"edge_ips"` // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. IPFirewall bool `json:"ip_firewall"` // When the Application was last modified. ModifiedOn time.Time `json:"modified_on" format:"date-time"` // The name and type of DNS record for the Spectrum application. OriginDNS OriginDNS `json:"origin_dns"` // The destination port at the origin. Only specified in conjunction with // origin_dns. May use an integer to specify a single origin port, for example // `1000`, or a string to specify a range of origin ports, for example // `"1000-2000"`. Notes: If specifying a port range, the number of ports in the // range must match the number of ports specified in the "protocol" field. OriginPort OriginPortUnion `json:"origin_port"` // The port configuration at Cloudflare’s edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol string `json:"protocol"` // Enables Proxy Protocol to the origin. Refer to // [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) // for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple // Proxy Protocol. ProxyProtocol AppNewResponseProxyProtocol `json:"proxy_protocol"` // The type of TLS termination associated with the application. TLS AppNewResponseTLS `json:"tls"` // Determines how data travels from the edge to your origin. When set to "direct", // Spectrum will send traffic directly to your origin, and the application's type // is derived from the `protocol`. When set to "http" or "https", Spectrum will // apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and // the application type matches this property exactly. TrafficType AppNewResponseTrafficType `json:"traffic_type"` JSON appNewResponseJSON `json:"-"` }
func (*AppNewResponse) UnmarshalJSON ¶
func (r *AppNewResponse) UnmarshalJSON(data []byte) (err error)
type AppNewResponseEnvelope ¶
type AppNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AppNewResponse `json:"result,required,nullable"` // Whether the API call was successful Success AppNewResponseEnvelopeSuccess `json:"success,required"` JSON appNewResponseEnvelopeJSON `json:"-"` }
func (*AppNewResponseEnvelope) UnmarshalJSON ¶
func (r *AppNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AppNewResponseEnvelopeSuccess ¶
type AppNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AppNewResponseEnvelopeSuccessTrue AppNewResponseEnvelopeSuccess = true
)
func (AppNewResponseEnvelopeSuccess) IsKnown ¶
func (r AppNewResponseEnvelopeSuccess) IsKnown() bool
type AppNewResponseProxyProtocol ¶
type AppNewResponseProxyProtocol string
Enables Proxy Protocol to the origin. Refer to [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.
const ( AppNewResponseProxyProtocolOff AppNewResponseProxyProtocol = "off" AppNewResponseProxyProtocolV1 AppNewResponseProxyProtocol = "v1" AppNewResponseProxyProtocolV2 AppNewResponseProxyProtocol = "v2" AppNewResponseProxyProtocolSimple AppNewResponseProxyProtocol = "simple" )
func (AppNewResponseProxyProtocol) IsKnown ¶
func (r AppNewResponseProxyProtocol) IsKnown() bool
type AppNewResponseTLS ¶
type AppNewResponseTLS string
The type of TLS termination associated with the application.
const ( AppNewResponseTLSOff AppNewResponseTLS = "off" AppNewResponseTLSFlexible AppNewResponseTLS = "flexible" AppNewResponseTLSFull AppNewResponseTLS = "full" AppNewResponseTLSStrict AppNewResponseTLS = "strict" )
func (AppNewResponseTLS) IsKnown ¶
func (r AppNewResponseTLS) IsKnown() bool
type AppNewResponseTrafficType ¶
type AppNewResponseTrafficType string
Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application's type is derived from the `protocol`. When set to "http" or "https", Spectrum will apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly.
const ( AppNewResponseTrafficTypeDirect AppNewResponseTrafficType = "direct" AppNewResponseTrafficTypeHTTP AppNewResponseTrafficType = "http" AppNewResponseTrafficTypeHTTPS AppNewResponseTrafficType = "https" )
func (AppNewResponseTrafficType) IsKnown ¶
func (r AppNewResponseTrafficType) IsKnown() bool
type AppService ¶
type AppService struct {
Options []option.RequestOption
}
AppService 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 NewAppService method instead.
func NewAppService ¶
func NewAppService(opts ...option.RequestOption) (r *AppService)
NewAppService 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 (*AppService) Delete ¶
func (r *AppService) Delete(ctx context.Context, zone string, appID string, opts ...option.RequestOption) (res *AppDeleteResponse, err error)
Deletes a previously existing application.
func (*AppService) Get ¶
func (r *AppService) Get(ctx context.Context, zone string, appID string, opts ...option.RequestOption) (res *AppGetResponseUnion, err error)
Gets the application configuration of a specific application inside a zone.
func (*AppService) List ¶
func (r *AppService) List(ctx context.Context, zone string, query AppListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[AppListResponse], err error)
Retrieves a list of currently existing Spectrum applications inside a zone.
func (*AppService) ListAutoPaging ¶
func (r *AppService) ListAutoPaging(ctx context.Context, zone string, query AppListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[AppListResponse]
Retrieves a list of currently existing Spectrum applications inside a zone.
func (*AppService) New ¶
func (r *AppService) New(ctx context.Context, zone string, body AppNewParams, opts ...option.RequestOption) (res *AppNewResponse, err error)
Creates a new Spectrum application from a configuration using a name for the origin.
func (*AppService) Update ¶
func (r *AppService) Update(ctx context.Context, zone string, appID string, body AppUpdateParams, opts ...option.RequestOption) (res *AppUpdateResponse, err error)
Updates a previously existing application's configuration that uses a name for the origin.
type AppUpdateParams ¶
type AppUpdateParams struct { // The name and type of DNS record for the Spectrum application. DNS param.Field[DNSParam] `json:"dns,required"` // The name and type of DNS record for the Spectrum application. OriginDNS param.Field[OriginDNSParam] `json:"origin_dns,required"` // The destination port at the origin. Only specified in conjunction with // origin_dns. May use an integer to specify a single origin port, for example // `1000`, or a string to specify a range of origin ports, for example // `"1000-2000"`. Notes: If specifying a port range, the number of ports in the // range must match the number of ports specified in the "protocol" field. OriginPort param.Field[OriginPortUnionParam] `json:"origin_port,required"` // The port configuration at Cloudflare’s edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol param.Field[string] `json:"protocol,required"` // Enables Argo Smart Routing for this application. Notes: Only available for TCP // applications with traffic_type set to "direct". ArgoSmartRouting param.Field[bool] `json:"argo_smart_routing"` // The anycast edge IP configuration for the hostname of this application. EdgeIPs param.Field[EdgeIPsUnionParam] `json:"edge_ips"` // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. IPFirewall param.Field[bool] `json:"ip_firewall"` // Enables Proxy Protocol to the origin. Refer to // [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) // for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple // Proxy Protocol. ProxyProtocol param.Field[AppUpdateParamsProxyProtocol] `json:"proxy_protocol"` // The type of TLS termination associated with the application. TLS param.Field[AppUpdateParamsTLS] `json:"tls"` // Determines how data travels from the edge to your origin. When set to "direct", // Spectrum will send traffic directly to your origin, and the application's type // is derived from the `protocol`. When set to "http" or "https", Spectrum will // apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and // the application type matches this property exactly. TrafficType param.Field[AppUpdateParamsTrafficType] `json:"traffic_type"` }
func (AppUpdateParams) MarshalJSON ¶
func (r AppUpdateParams) MarshalJSON() (data []byte, err error)
type AppUpdateParamsProxyProtocol ¶
type AppUpdateParamsProxyProtocol string
Enables Proxy Protocol to the origin. Refer to [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.
const ( AppUpdateParamsProxyProtocolOff AppUpdateParamsProxyProtocol = "off" AppUpdateParamsProxyProtocolV1 AppUpdateParamsProxyProtocol = "v1" AppUpdateParamsProxyProtocolV2 AppUpdateParamsProxyProtocol = "v2" AppUpdateParamsProxyProtocolSimple AppUpdateParamsProxyProtocol = "simple" )
func (AppUpdateParamsProxyProtocol) IsKnown ¶
func (r AppUpdateParamsProxyProtocol) IsKnown() bool
type AppUpdateParamsTLS ¶
type AppUpdateParamsTLS string
The type of TLS termination associated with the application.
const ( AppUpdateParamsTLSOff AppUpdateParamsTLS = "off" AppUpdateParamsTLSFlexible AppUpdateParamsTLS = "flexible" AppUpdateParamsTLSFull AppUpdateParamsTLS = "full" AppUpdateParamsTLSStrict AppUpdateParamsTLS = "strict" )
func (AppUpdateParamsTLS) IsKnown ¶
func (r AppUpdateParamsTLS) IsKnown() bool
type AppUpdateParamsTrafficType ¶
type AppUpdateParamsTrafficType string
Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application's type is derived from the `protocol`. When set to "http" or "https", Spectrum will apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly.
const ( AppUpdateParamsTrafficTypeDirect AppUpdateParamsTrafficType = "direct" AppUpdateParamsTrafficTypeHTTP AppUpdateParamsTrafficType = "http" AppUpdateParamsTrafficTypeHTTPS AppUpdateParamsTrafficType = "https" )
func (AppUpdateParamsTrafficType) IsKnown ¶
func (r AppUpdateParamsTrafficType) IsKnown() bool
type AppUpdateResponse ¶
type AppUpdateResponse struct { // Application identifier. ID string `json:"id"` // Enables Argo Smart Routing for this application. Notes: Only available for TCP // applications with traffic_type set to "direct". ArgoSmartRouting bool `json:"argo_smart_routing"` // When the Application was created. CreatedOn time.Time `json:"created_on" format:"date-time"` // The name and type of DNS record for the Spectrum application. DNS DNS `json:"dns"` // The anycast edge IP configuration for the hostname of this application. EdgeIPs EdgeIPs `json:"edge_ips"` // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. IPFirewall bool `json:"ip_firewall"` // When the Application was last modified. ModifiedOn time.Time `json:"modified_on" format:"date-time"` // The name and type of DNS record for the Spectrum application. OriginDNS OriginDNS `json:"origin_dns"` // The destination port at the origin. Only specified in conjunction with // origin_dns. May use an integer to specify a single origin port, for example // `1000`, or a string to specify a range of origin ports, for example // `"1000-2000"`. Notes: If specifying a port range, the number of ports in the // range must match the number of ports specified in the "protocol" field. OriginPort OriginPortUnion `json:"origin_port"` // The port configuration at Cloudflare’s edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol string `json:"protocol"` // Enables Proxy Protocol to the origin. Refer to // [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) // for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple // Proxy Protocol. ProxyProtocol AppUpdateResponseProxyProtocol `json:"proxy_protocol"` // The type of TLS termination associated with the application. TLS AppUpdateResponseTLS `json:"tls"` // Determines how data travels from the edge to your origin. When set to "direct", // Spectrum will send traffic directly to your origin, and the application's type // is derived from the `protocol`. When set to "http" or "https", Spectrum will // apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and // the application type matches this property exactly. TrafficType AppUpdateResponseTrafficType `json:"traffic_type"` JSON appUpdateResponseJSON `json:"-"` }
func (*AppUpdateResponse) UnmarshalJSON ¶
func (r *AppUpdateResponse) UnmarshalJSON(data []byte) (err error)
type AppUpdateResponseEnvelope ¶
type AppUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result AppUpdateResponse `json:"result,required,nullable"` // Whether the API call was successful Success AppUpdateResponseEnvelopeSuccess `json:"success,required"` JSON appUpdateResponseEnvelopeJSON `json:"-"` }
func (*AppUpdateResponseEnvelope) UnmarshalJSON ¶
func (r *AppUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type AppUpdateResponseEnvelopeSuccess ¶
type AppUpdateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
AppUpdateResponseEnvelopeSuccessTrue AppUpdateResponseEnvelopeSuccess = true
)
func (AppUpdateResponseEnvelopeSuccess) IsKnown ¶
func (r AppUpdateResponseEnvelopeSuccess) IsKnown() bool
type AppUpdateResponseProxyProtocol ¶
type AppUpdateResponseProxyProtocol string
Enables Proxy Protocol to the origin. Refer to [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.
const ( AppUpdateResponseProxyProtocolOff AppUpdateResponseProxyProtocol = "off" AppUpdateResponseProxyProtocolV1 AppUpdateResponseProxyProtocol = "v1" AppUpdateResponseProxyProtocolV2 AppUpdateResponseProxyProtocol = "v2" AppUpdateResponseProxyProtocolSimple AppUpdateResponseProxyProtocol = "simple" )
func (AppUpdateResponseProxyProtocol) IsKnown ¶
func (r AppUpdateResponseProxyProtocol) IsKnown() bool
type AppUpdateResponseTLS ¶
type AppUpdateResponseTLS string
The type of TLS termination associated with the application.
const ( AppUpdateResponseTLSOff AppUpdateResponseTLS = "off" AppUpdateResponseTLSFlexible AppUpdateResponseTLS = "flexible" AppUpdateResponseTLSFull AppUpdateResponseTLS = "full" AppUpdateResponseTLSStrict AppUpdateResponseTLS = "strict" )
func (AppUpdateResponseTLS) IsKnown ¶
func (r AppUpdateResponseTLS) IsKnown() bool
type AppUpdateResponseTrafficType ¶
type AppUpdateResponseTrafficType string
Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application's type is derived from the `protocol`. When set to "http" or "https", Spectrum will apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly.
const ( AppUpdateResponseTrafficTypeDirect AppUpdateResponseTrafficType = "direct" AppUpdateResponseTrafficTypeHTTP AppUpdateResponseTrafficType = "http" AppUpdateResponseTrafficTypeHTTPS AppUpdateResponseTrafficType = "https" )
func (AppUpdateResponseTrafficType) IsKnown ¶
func (r AppUpdateResponseTrafficType) IsKnown() bool
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 ¶ added in v2.2.0
type CertificateCA = shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
type CertificateRequestType ¶ added in v2.2.0
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 CloudflareTunnelTunType ¶
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
type DNS ¶
type DNS struct { // The name of the DNS record associated with the application. Name string `json:"name" format:"hostname"` // The type of DNS record associated with the application. Type DNSType `json:"type"` JSON dnsJSON `json:"-"` }
The name and type of DNS record for the Spectrum application.
func (*DNS) UnmarshalJSON ¶
type DNSParam ¶
type DNSParam struct { // The name of the DNS record associated with the application. Name param.Field[string] `json:"name" format:"hostname"` // The type of DNS record associated with the application. Type param.Field[DNSType] `json:"type"` }
The name and type of DNS record for the Spectrum application.
func (DNSParam) MarshalJSON ¶
type EdgeIPs ¶
type EdgeIPs struct { // The IP versions supported for inbound connections on Spectrum anycast IPs. Connectivity EdgeIPsConnectivity `json:"connectivity"` // The type of edge IP configuration specified. Dynamically allocated edge IPs use // Spectrum anycast IPs in accordance with the connectivity you specify. Only valid // with CNAME DNS names. Type EdgeIPsType `json:"type"` IPs interface{} `json:"ips,required"` JSON edgeIPsJSON `json:"-"` // contains filtered or unexported fields }
The anycast edge IP configuration for the hostname of this application.
func (EdgeIPs) AsUnion ¶
func (r EdgeIPs) AsUnion() EdgeIPsUnion
func (*EdgeIPs) UnmarshalJSON ¶
type EdgeIPsConnectivity ¶
type EdgeIPsConnectivity string
The IP versions supported for inbound connections on Spectrum anycast IPs.
const ( EdgeIPsConnectivityAll EdgeIPsConnectivity = "all" EdgeIPsConnectivityIPV4 EdgeIPsConnectivity = "ipv4" EdgeIPsConnectivityIPV6 EdgeIPsConnectivity = "ipv6" )
func (EdgeIPsConnectivity) IsKnown ¶
func (r EdgeIPsConnectivity) IsKnown() bool
type EdgeIPsObject ¶
type EdgeIPsObject struct { // The IP versions supported for inbound connections on Spectrum anycast IPs. Connectivity EdgeIPsObjectConnectivity `json:"connectivity"` // The type of edge IP configuration specified. Dynamically allocated edge IPs use // Spectrum anycast IPs in accordance with the connectivity you specify. Only valid // with CNAME DNS names. Type EdgeIPsObjectType `json:"type"` JSON edgeIPsObjectJSON `json:"-"` }
func (*EdgeIPsObject) UnmarshalJSON ¶
func (r *EdgeIPsObject) UnmarshalJSON(data []byte) (err error)
type EdgeIPsObjectConnectivity ¶
type EdgeIPsObjectConnectivity string
The IP versions supported for inbound connections on Spectrum anycast IPs.
const ( EdgeIPsObjectConnectivityAll EdgeIPsObjectConnectivity = "all" EdgeIPsObjectConnectivityIPV4 EdgeIPsObjectConnectivity = "ipv4" EdgeIPsObjectConnectivityIPV6 EdgeIPsObjectConnectivity = "ipv6" )
func (EdgeIPsObjectConnectivity) IsKnown ¶
func (r EdgeIPsObjectConnectivity) IsKnown() bool
type EdgeIPsObjectParam ¶
type EdgeIPsObjectParam struct { // The IP versions supported for inbound connections on Spectrum anycast IPs. Connectivity param.Field[EdgeIPsObjectConnectivity] `json:"connectivity"` // The type of edge IP configuration specified. Dynamically allocated edge IPs use // Spectrum anycast IPs in accordance with the connectivity you specify. Only valid // with CNAME DNS names. Type param.Field[EdgeIPsObjectType] `json:"type"` }
func (EdgeIPsObjectParam) MarshalJSON ¶
func (r EdgeIPsObjectParam) MarshalJSON() (data []byte, err error)
type EdgeIPsObjectType ¶
type EdgeIPsObjectType string
The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.
const (
EdgeIPsObjectTypeDynamic EdgeIPsObjectType = "dynamic"
)
func (EdgeIPsObjectType) IsKnown ¶
func (r EdgeIPsObjectType) IsKnown() bool
type EdgeIPsParam ¶
type EdgeIPsParam struct { // The IP versions supported for inbound connections on Spectrum anycast IPs. Connectivity param.Field[EdgeIPsConnectivity] `json:"connectivity"` // The type of edge IP configuration specified. Dynamically allocated edge IPs use // Spectrum anycast IPs in accordance with the connectivity you specify. Only valid // with CNAME DNS names. Type param.Field[EdgeIPsType] `json:"type"` IPs param.Field[interface{}] `json:"ips,required"` }
The anycast edge IP configuration for the hostname of this application.
func (EdgeIPsParam) MarshalJSON ¶
func (r EdgeIPsParam) MarshalJSON() (data []byte, err error)
type EdgeIPsType ¶
type EdgeIPsType string
The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.
const ( EdgeIPsTypeDynamic EdgeIPsType = "dynamic" EdgeIPsTypeStatic EdgeIPsType = "static" )
func (EdgeIPsType) IsKnown ¶
func (r EdgeIPsType) IsKnown() bool
type EdgeIPsUnion ¶
type EdgeIPsUnion interface {
// contains filtered or unexported methods
}
The anycast edge IP configuration for the hostname of this application.
Union satisfied by spectrum.EdgeIPsObject or spectrum.EdgeIPsObject.
type EdgeIPsUnionParam ¶
type EdgeIPsUnionParam interface {
// contains filtered or unexported methods
}
The anycast edge IP configuration for the hostname of this application.
Satisfied by spectrum.EdgeIPsObjectParam, spectrum.EdgeIPsObjectParam, EdgeIPsParam.
type MemberParam ¶ added in v2.1.0
type MemberParam = shared.MemberParam
This is an alias to an internal type.
type MemberRole ¶ added in v2.1.0
type MemberRole = shared.MemberRole
This is an alias to an internal type.
type MemberRoleParam ¶ added in v2.1.0
type MemberRoleParam = shared.MemberRoleParam
This is an alias to an internal type.
type MemberRolesPermissions ¶ added in v2.1.0
type MemberRolesPermissions = shared.MemberRolesPermissions
This is an alias to an internal type.
type MemberRolesPermissionsParam ¶ added in v2.1.0
type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam
This is an alias to an internal type.
type MemberUser ¶ added in v2.1.0
type MemberUser = shared.MemberUser
This is an alias to an internal type.
type MemberUserParam ¶ added in v2.1.0
type MemberUserParam = shared.MemberUserParam
This is an alias to an internal type.
type OriginDNS ¶
type OriginDNS struct { // The name of the DNS record associated with the origin. Name string `json:"name" format:"hostname"` // The TTL of our resolution of your DNS record in seconds. TTL int64 `json:"ttl"` // The type of DNS record associated with the origin. "" is used to specify a // combination of A/AAAA records. Type OriginDNSType `json:"type"` JSON originDNSJSON `json:"-"` }
The name and type of DNS record for the Spectrum application.
func (*OriginDNS) UnmarshalJSON ¶
type OriginDNSParam ¶
type OriginDNSParam struct { // The name of the DNS record associated with the origin. Name param.Field[string] `json:"name" format:"hostname"` // The TTL of our resolution of your DNS record in seconds. TTL param.Field[int64] `json:"ttl"` // The type of DNS record associated with the origin. "" is used to specify a // combination of A/AAAA records. Type param.Field[OriginDNSType] `json:"type"` }
The name and type of DNS record for the Spectrum application.
func (OriginDNSParam) MarshalJSON ¶
func (r OriginDNSParam) MarshalJSON() (data []byte, err error)
type OriginDNSType ¶
type OriginDNSType string
The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.
const ( OriginDNSTypeEmpty OriginDNSType = "" OriginDNSTypeA OriginDNSType = "A" OriginDNSTypeAAAA OriginDNSType = "AAAA" OriginDNSTypeSRV OriginDNSType = "SRV" )
func (OriginDNSType) IsKnown ¶
func (r OriginDNSType) IsKnown() bool
type OriginPortUnion ¶
type OriginPortUnion interface {
ImplementsSpectrumOriginPortUnion()
}
The destination port at the origin. Only specified in conjunction with origin_dns. May use an integer to specify a single origin port, for example `1000`, or a string to specify a range of origin ports, for example `"1000-2000"`. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the "protocol" field.
Union satisfied by shared.UnionInt or shared.UnionString.
type OriginPortUnionParam ¶
type OriginPortUnionParam interface {
ImplementsSpectrumOriginPortUnionParam()
}
The destination port at the origin. Only specified in conjunction with origin_dns. May use an integer to specify a single origin port, for example `1000`, or a string to specify a range of origin ports, for example `"1000-2000"`. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the "protocol" field.
Satisfied by shared.UnionInt, shared.UnionString.
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 SortDirection ¶ added in v2.2.0
type SortDirection = shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
type SpectrumService ¶
type SpectrumService struct { Options []option.RequestOption Analytics *AnalyticsService Apps *AppService }
SpectrumService 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 NewSpectrumService method instead.
func NewSpectrumService ¶
func NewSpectrumService(opts ...option.RequestOption) (r *SpectrumService)
NewSpectrumService 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.