Documentation ¶
Index ¶
- Constants
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelTunType
- type DownloadGetParams
- type DownloadService
- type Error
- type ErrorData
- type Ownership
- type OwnershipDeleteParams
- type OwnershipGetParams
- type OwnershipGetResponseEnvelope
- type OwnershipGetResponseEnvelopeResultInfo
- type OwnershipGetResponseEnvelopeSuccess
- type OwnershipNewParams
- type OwnershipNewResponseEnvelope
- type OwnershipNewResponseEnvelopeSuccess
- type OwnershipService
- func (r *OwnershipService) Delete(ctx context.Context, ownershipID string, body OwnershipDeleteParams, ...) (err error)
- func (r *OwnershipService) Get(ctx context.Context, query OwnershipGetParams, opts ...option.RequestOption) (res *[]Ownership, err error)
- func (r *OwnershipService) New(ctx context.Context, params OwnershipNewParams, opts ...option.RequestOption) (res *Ownership, err error)
- func (r *OwnershipService) Validate(ctx context.Context, params OwnershipValidateParams, ...) (res *Ownership, err error)
- type OwnershipStatus
- type OwnershipValidateParams
- type OwnershipValidateResponseEnvelope
- type OwnershipValidateResponseEnvelopeSuccess
- type PCAP
- type PCAPFilter
- type PCAPFilterParam
- type PCAPGetParams
- type PCAPGetResponse
- type PCAPGetResponseEnvelope
- type PCAPGetResponseEnvelopeSuccess
- type PCAPGetResponseMagicVisibilityPCAPsResponseFull
- type PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus
- type PCAPGetResponseMagicVisibilityPCAPsResponseFullSystem
- type PCAPGetResponseMagicVisibilityPCAPsResponseFullType
- type PCAPGetResponseStatus
- type PCAPGetResponseSystem
- type PCAPGetResponseType
- type PCAPGetResponseUnion
- type PCAPListParams
- type PCAPListResponse
- type PCAPListResponseMagicVisibilityPCAPsResponseFull
- type PCAPListResponseMagicVisibilityPCAPsResponseFullStatus
- type PCAPListResponseMagicVisibilityPCAPsResponseFullSystem
- type PCAPListResponseMagicVisibilityPCAPsResponseFullType
- type PCAPListResponseStatus
- type PCAPListResponseSystem
- type PCAPListResponseType
- type PCAPListResponseUnion
- type PCAPNewParams
- type PCAPNewParamsBody
- type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFull
- type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullSystem
- type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullType
- type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimple
- type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystem
- type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleType
- type PCAPNewParamsBodySystem
- type PCAPNewParamsBodyType
- type PCAPNewParamsBodyUnion
- type PCAPNewResponse
- type PCAPNewResponseEnvelope
- type PCAPNewResponseEnvelopeSuccess
- type PCAPNewResponseMagicVisibilityPCAPsResponseFull
- type PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus
- type PCAPNewResponseMagicVisibilityPCAPsResponseFullSystem
- type PCAPNewResponseMagicVisibilityPCAPsResponseFullType
- type PCAPNewResponseStatus
- type PCAPNewResponseSystem
- type PCAPNewResponseType
- type PCAPNewResponseUnion
- type PCAPService
- func (r *PCAPService) Get(ctx context.Context, pcapID string, query PCAPGetParams, ...) (res *PCAPGetResponse, err error)
- func (r *PCAPService) List(ctx context.Context, query PCAPListParams, opts ...option.RequestOption) (res *pagination.SinglePage[PCAPListResponse], err error)
- func (r *PCAPService) ListAutoPaging(ctx context.Context, query PCAPListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[PCAPListResponse]
- func (r *PCAPService) New(ctx context.Context, params PCAPNewParams, opts ...option.RequestOption) (res *PCAPNewResponse, err error)
- type PCAPStatus
- type PCAPSystem
- type PCAPType
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type ResponseInfo
- type Role
- type User
- type UserParam
- type UserRole
- type UserRoleParam
- type UserRolesPermissions
- type UserRolesPermissionsParam
- type UserUser
- type UserUserParam
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 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.
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 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 DownloadGetParams ¶
type DownloadService ¶
type DownloadService struct {
Options []option.RequestOption
}
DownloadService 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 NewDownloadService method instead.
func NewDownloadService ¶
func NewDownloadService(opts ...option.RequestOption) (r *DownloadService)
NewDownloadService 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 (*DownloadService) Get ¶
func (r *DownloadService) Get(ctx context.Context, pcapID string, query DownloadGetParams, opts ...option.RequestOption) (res *http.Response, err error)
Download PCAP information into a file. Response is a binary PCAP file.
type Ownership ¶
type Ownership struct { // The bucket ID associated with the packet captures API. ID string `json:"id,required"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf string `json:"destination_conf,required"` // The ownership challenge filename stored in the bucket. Filename string `json:"filename,required"` // The status of the ownership challenge. Can be pending, success or failed. Status OwnershipStatus `json:"status,required"` // The RFC 3339 timestamp when the bucket was added to packet captures API. Submitted string `json:"submitted,required"` // The RFC 3339 timestamp when the bucket was validated. Validated string `json:"validated"` JSON ownershipJSON `json:"-"` }
func (*Ownership) UnmarshalJSON ¶
type OwnershipDeleteParams ¶
type OwnershipGetParams ¶
type OwnershipGetResponseEnvelope ¶
type OwnershipGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result []Ownership `json:"result,required,nullable"` // Whether the API call was successful Success OwnershipGetResponseEnvelopeSuccess `json:"success,required"` ResultInfo OwnershipGetResponseEnvelopeResultInfo `json:"result_info"` JSON ownershipGetResponseEnvelopeJSON `json:"-"` }
func (*OwnershipGetResponseEnvelope) UnmarshalJSON ¶
func (r *OwnershipGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OwnershipGetResponseEnvelopeResultInfo ¶
type OwnershipGetResponseEnvelopeResultInfo struct { // Total number of results for the requested service Count float64 `json:"count"` // Current page within paginated list of results Page float64 `json:"page"` // Number of results per page of results PerPage float64 `json:"per_page"` // Total results available without any search parameters TotalCount float64 `json:"total_count"` JSON ownershipGetResponseEnvelopeResultInfoJSON `json:"-"` }
func (*OwnershipGetResponseEnvelopeResultInfo) UnmarshalJSON ¶
func (r *OwnershipGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (err error)
type OwnershipGetResponseEnvelopeSuccess ¶
type OwnershipGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OwnershipGetResponseEnvelopeSuccessTrue OwnershipGetResponseEnvelopeSuccess = true
)
func (OwnershipGetResponseEnvelopeSuccess) IsKnown ¶
func (r OwnershipGetResponseEnvelopeSuccess) IsKnown() bool
type OwnershipNewParams ¶
type OwnershipNewParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf param.Field[string] `json:"destination_conf,required"` }
func (OwnershipNewParams) MarshalJSON ¶
func (r OwnershipNewParams) MarshalJSON() (data []byte, err error)
type OwnershipNewResponseEnvelope ¶
type OwnershipNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Ownership `json:"result,required"` // Whether the API call was successful Success OwnershipNewResponseEnvelopeSuccess `json:"success,required"` JSON ownershipNewResponseEnvelopeJSON `json:"-"` }
func (*OwnershipNewResponseEnvelope) UnmarshalJSON ¶
func (r *OwnershipNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OwnershipNewResponseEnvelopeSuccess ¶
type OwnershipNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OwnershipNewResponseEnvelopeSuccessTrue OwnershipNewResponseEnvelopeSuccess = true
)
func (OwnershipNewResponseEnvelopeSuccess) IsKnown ¶
func (r OwnershipNewResponseEnvelopeSuccess) IsKnown() bool
type OwnershipService ¶
type OwnershipService struct {
Options []option.RequestOption
}
OwnershipService 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 NewOwnershipService method instead.
func NewOwnershipService ¶
func NewOwnershipService(opts ...option.RequestOption) (r *OwnershipService)
NewOwnershipService 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 (*OwnershipService) Delete ¶
func (r *OwnershipService) Delete(ctx context.Context, ownershipID string, body OwnershipDeleteParams, opts ...option.RequestOption) (err error)
Deletes buckets added to the packet captures API.
func (*OwnershipService) Get ¶
func (r *OwnershipService) Get(ctx context.Context, query OwnershipGetParams, opts ...option.RequestOption) (res *[]Ownership, err error)
List all buckets configured for use with PCAPs API.
func (*OwnershipService) New ¶
func (r *OwnershipService) New(ctx context.Context, params OwnershipNewParams, opts ...option.RequestOption) (res *Ownership, err error)
Adds an AWS or GCP bucket to use with full packet captures.
func (*OwnershipService) Validate ¶
func (r *OwnershipService) Validate(ctx context.Context, params OwnershipValidateParams, opts ...option.RequestOption) (res *Ownership, err error)
Validates buckets added to the packet captures API.
type OwnershipStatus ¶
type OwnershipStatus string
The status of the ownership challenge. Can be pending, success or failed.
const ( OwnershipStatusPending OwnershipStatus = "pending" OwnershipStatusSuccess OwnershipStatus = "success" OwnershipStatusFailed OwnershipStatus = "failed" )
func (OwnershipStatus) IsKnown ¶
func (r OwnershipStatus) IsKnown() bool
type OwnershipValidateParams ¶
type OwnershipValidateParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf param.Field[string] `json:"destination_conf,required"` // The ownership challenge filename stored in the bucket. OwnershipChallenge param.Field[string] `json:"ownership_challenge,required"` }
func (OwnershipValidateParams) MarshalJSON ¶
func (r OwnershipValidateParams) MarshalJSON() (data []byte, err error)
type OwnershipValidateResponseEnvelope ¶
type OwnershipValidateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result Ownership `json:"result,required"` // Whether the API call was successful Success OwnershipValidateResponseEnvelopeSuccess `json:"success,required"` JSON ownershipValidateResponseEnvelopeJSON `json:"-"` }
func (*OwnershipValidateResponseEnvelope) UnmarshalJSON ¶
func (r *OwnershipValidateResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type OwnershipValidateResponseEnvelopeSuccess ¶
type OwnershipValidateResponseEnvelopeSuccess bool
Whether the API call was successful
const (
OwnershipValidateResponseEnvelopeSuccessTrue OwnershipValidateResponseEnvelopeSuccess = true
)
func (OwnershipValidateResponseEnvelopeSuccess) IsKnown ¶
func (r OwnershipValidateResponseEnvelopeSuccess) IsKnown() bool
type PCAP ¶
type PCAP struct { // The ID for the packet capture. ID string `json:"id"` // The packet capture filter. When this field is empty, all packets are captured. FilterV1 PCAPFilter `json:"filter_v1"` // The status of the packet capture request. Status PCAPStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. System PCAPSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type PCAPType `json:"type"` JSON pcapJSON `json:"-"` }
func (*PCAP) UnmarshalJSON ¶
type PCAPFilter ¶
type PCAPFilter struct { // The destination IP address of the packet. DestinationAddress string `json:"destination_address"` // The destination port of the packet. DestinationPort float64 `json:"destination_port"` // The protocol number of the packet. Protocol float64 `json:"protocol"` // The source IP address of the packet. SourceAddress string `json:"source_address"` // The source port of the packet. SourcePort float64 `json:"source_port"` JSON pcapFilterJSON `json:"-"` }
The packet capture filter. When this field is empty, all packets are captured.
func (*PCAPFilter) UnmarshalJSON ¶
func (r *PCAPFilter) UnmarshalJSON(data []byte) (err error)
type PCAPFilterParam ¶
type PCAPFilterParam struct { // The destination IP address of the packet. DestinationAddress param.Field[string] `json:"destination_address"` // The destination port of the packet. DestinationPort param.Field[float64] `json:"destination_port"` // The protocol number of the packet. Protocol param.Field[float64] `json:"protocol"` // The source IP address of the packet. SourceAddress param.Field[string] `json:"source_address"` // The source port of the packet. SourcePort param.Field[float64] `json:"source_port"` }
The packet capture filter. When this field is empty, all packets are captured.
func (PCAPFilterParam) MarshalJSON ¶
func (r PCAPFilterParam) MarshalJSON() (data []byte, err error)
type PCAPGetParams ¶
type PCAPGetResponse ¶
type PCAPGetResponse struct { // The packet capture filter. When this field is empty, all packets are captured. FilterV1 PCAPFilter `json:"filter_v1"` // The ID for the packet capture. ID string `json:"id"` // The status of the packet capture request. Status PCAPGetResponseStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. System PCAPGetResponseSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type PCAPGetResponseType `json:"type"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit float64 `json:"byte_limit"` // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. ColoName string `json:"colo_name"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf string `json:"destination_conf"` // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` JSON pcapGetResponseJSON `json:"-"` // contains filtered or unexported fields }
func (PCAPGetResponse) AsUnion ¶
func (r PCAPGetResponse) AsUnion() PCAPGetResponseUnion
func (*PCAPGetResponse) UnmarshalJSON ¶
func (r *PCAPGetResponse) UnmarshalJSON(data []byte) (err error)
type PCAPGetResponseEnvelope ¶
type PCAPGetResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result PCAPGetResponse `json:"result,required"` // Whether the API call was successful Success PCAPGetResponseEnvelopeSuccess `json:"success,required"` JSON pcapGetResponseEnvelopeJSON `json:"-"` }
func (*PCAPGetResponseEnvelope) UnmarshalJSON ¶
func (r *PCAPGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type PCAPGetResponseEnvelopeSuccess ¶
type PCAPGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
PCAPGetResponseEnvelopeSuccessTrue PCAPGetResponseEnvelopeSuccess = true
)
func (PCAPGetResponseEnvelopeSuccess) IsKnown ¶
func (r PCAPGetResponseEnvelopeSuccess) IsKnown() bool
type PCAPGetResponseMagicVisibilityPCAPsResponseFull ¶
type PCAPGetResponseMagicVisibilityPCAPsResponseFull struct { // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit float64 `json:"byte_limit"` // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. ColoName string `json:"colo_name"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf string `json:"destination_conf"` // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` // The packet capture filter. When this field is empty, all packets are captured. FilterV1 PCAPFilter `json:"filter_v1"` // The status of the packet capture request. Status PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. System PCAPGetResponseMagicVisibilityPCAPsResponseFullSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type PCAPGetResponseMagicVisibilityPCAPsResponseFullType `json:"type"` JSON pcapGetResponseMagicVisibilityPCAPsResponseFullJSON `json:"-"` }
func (*PCAPGetResponseMagicVisibilityPCAPsResponseFull) UnmarshalJSON ¶
func (r *PCAPGetResponseMagicVisibilityPCAPsResponseFull) UnmarshalJSON(data []byte) (err error)
type PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus ¶
type PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus string
The status of the packet capture request.
const ( PCAPGetResponseMagicVisibilityPCAPsResponseFullStatusUnknown PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus = "unknown" PCAPGetResponseMagicVisibilityPCAPsResponseFullStatusSuccess PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus = "success" PCAPGetResponseMagicVisibilityPCAPsResponseFullStatusPending PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus = "pending" PCAPGetResponseMagicVisibilityPCAPsResponseFullStatusRunning PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus = "running" PCAPGetResponseMagicVisibilityPCAPsResponseFullStatusConversionPending PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus = "conversion_pending" PCAPGetResponseMagicVisibilityPCAPsResponseFullStatusConversionRunning PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus = "conversion_running" PCAPGetResponseMagicVisibilityPCAPsResponseFullStatusComplete PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus = "complete" PCAPGetResponseMagicVisibilityPCAPsResponseFullStatusFailed PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus = "failed" )
func (PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus) IsKnown ¶
func (r PCAPGetResponseMagicVisibilityPCAPsResponseFullStatus) IsKnown() bool
type PCAPGetResponseMagicVisibilityPCAPsResponseFullSystem ¶
type PCAPGetResponseMagicVisibilityPCAPsResponseFullSystem string
The system used to collect packet captures.
const (
PCAPGetResponseMagicVisibilityPCAPsResponseFullSystemMagicTransit PCAPGetResponseMagicVisibilityPCAPsResponseFullSystem = "magic-transit"
)
func (PCAPGetResponseMagicVisibilityPCAPsResponseFullSystem) IsKnown ¶
func (r PCAPGetResponseMagicVisibilityPCAPsResponseFullSystem) IsKnown() bool
type PCAPGetResponseMagicVisibilityPCAPsResponseFullType ¶
type PCAPGetResponseMagicVisibilityPCAPsResponseFullType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPGetResponseMagicVisibilityPCAPsResponseFullTypeSimple PCAPGetResponseMagicVisibilityPCAPsResponseFullType = "simple" PCAPGetResponseMagicVisibilityPCAPsResponseFullTypeFull PCAPGetResponseMagicVisibilityPCAPsResponseFullType = "full" )
func (PCAPGetResponseMagicVisibilityPCAPsResponseFullType) IsKnown ¶
func (r PCAPGetResponseMagicVisibilityPCAPsResponseFullType) IsKnown() bool
type PCAPGetResponseStatus ¶
type PCAPGetResponseStatus string
The status of the packet capture request.
const ( PCAPGetResponseStatusUnknown PCAPGetResponseStatus = "unknown" PCAPGetResponseStatusSuccess PCAPGetResponseStatus = "success" PCAPGetResponseStatusPending PCAPGetResponseStatus = "pending" PCAPGetResponseStatusRunning PCAPGetResponseStatus = "running" PCAPGetResponseStatusConversionPending PCAPGetResponseStatus = "conversion_pending" PCAPGetResponseStatusConversionRunning PCAPGetResponseStatus = "conversion_running" PCAPGetResponseStatusComplete PCAPGetResponseStatus = "complete" PCAPGetResponseStatusFailed PCAPGetResponseStatus = "failed" )
func (PCAPGetResponseStatus) IsKnown ¶
func (r PCAPGetResponseStatus) IsKnown() bool
type PCAPGetResponseSystem ¶
type PCAPGetResponseSystem string
The system used to collect packet captures.
const (
PCAPGetResponseSystemMagicTransit PCAPGetResponseSystem = "magic-transit"
)
func (PCAPGetResponseSystem) IsKnown ¶
func (r PCAPGetResponseSystem) IsKnown() bool
type PCAPGetResponseType ¶
type PCAPGetResponseType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPGetResponseTypeSimple PCAPGetResponseType = "simple" PCAPGetResponseTypeFull PCAPGetResponseType = "full" )
func (PCAPGetResponseType) IsKnown ¶
func (r PCAPGetResponseType) IsKnown() bool
type PCAPGetResponseUnion ¶
type PCAPGetResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by pcaps.PCAP or pcaps.PCAPGetResponseMagicVisibilityPCAPsResponseFull.
type PCAPListParams ¶
type PCAPListResponse ¶
type PCAPListResponse struct { // The packet capture filter. When this field is empty, all packets are captured. FilterV1 PCAPFilter `json:"filter_v1"` // The ID for the packet capture. ID string `json:"id"` // The status of the packet capture request. Status PCAPListResponseStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. System PCAPListResponseSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type PCAPListResponseType `json:"type"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit float64 `json:"byte_limit"` // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. ColoName string `json:"colo_name"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf string `json:"destination_conf"` // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` JSON pcapListResponseJSON `json:"-"` // contains filtered or unexported fields }
func (PCAPListResponse) AsUnion ¶
func (r PCAPListResponse) AsUnion() PCAPListResponseUnion
func (*PCAPListResponse) UnmarshalJSON ¶
func (r *PCAPListResponse) UnmarshalJSON(data []byte) (err error)
type PCAPListResponseMagicVisibilityPCAPsResponseFull ¶
type PCAPListResponseMagicVisibilityPCAPsResponseFull struct { // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit float64 `json:"byte_limit"` // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. ColoName string `json:"colo_name"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf string `json:"destination_conf"` // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` // The packet capture filter. When this field is empty, all packets are captured. FilterV1 PCAPFilter `json:"filter_v1"` // The status of the packet capture request. Status PCAPListResponseMagicVisibilityPCAPsResponseFullStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. System PCAPListResponseMagicVisibilityPCAPsResponseFullSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type PCAPListResponseMagicVisibilityPCAPsResponseFullType `json:"type"` JSON pcapListResponseMagicVisibilityPCAPsResponseFullJSON `json:"-"` }
func (*PCAPListResponseMagicVisibilityPCAPsResponseFull) UnmarshalJSON ¶
func (r *PCAPListResponseMagicVisibilityPCAPsResponseFull) UnmarshalJSON(data []byte) (err error)
type PCAPListResponseMagicVisibilityPCAPsResponseFullStatus ¶
type PCAPListResponseMagicVisibilityPCAPsResponseFullStatus string
The status of the packet capture request.
const ( PCAPListResponseMagicVisibilityPCAPsResponseFullStatusUnknown PCAPListResponseMagicVisibilityPCAPsResponseFullStatus = "unknown" PCAPListResponseMagicVisibilityPCAPsResponseFullStatusSuccess PCAPListResponseMagicVisibilityPCAPsResponseFullStatus = "success" PCAPListResponseMagicVisibilityPCAPsResponseFullStatusPending PCAPListResponseMagicVisibilityPCAPsResponseFullStatus = "pending" PCAPListResponseMagicVisibilityPCAPsResponseFullStatusRunning PCAPListResponseMagicVisibilityPCAPsResponseFullStatus = "running" PCAPListResponseMagicVisibilityPCAPsResponseFullStatusConversionPending PCAPListResponseMagicVisibilityPCAPsResponseFullStatus = "conversion_pending" PCAPListResponseMagicVisibilityPCAPsResponseFullStatusConversionRunning PCAPListResponseMagicVisibilityPCAPsResponseFullStatus = "conversion_running" PCAPListResponseMagicVisibilityPCAPsResponseFullStatusComplete PCAPListResponseMagicVisibilityPCAPsResponseFullStatus = "complete" PCAPListResponseMagicVisibilityPCAPsResponseFullStatusFailed PCAPListResponseMagicVisibilityPCAPsResponseFullStatus = "failed" )
func (PCAPListResponseMagicVisibilityPCAPsResponseFullStatus) IsKnown ¶
func (r PCAPListResponseMagicVisibilityPCAPsResponseFullStatus) IsKnown() bool
type PCAPListResponseMagicVisibilityPCAPsResponseFullSystem ¶
type PCAPListResponseMagicVisibilityPCAPsResponseFullSystem string
The system used to collect packet captures.
const (
PCAPListResponseMagicVisibilityPCAPsResponseFullSystemMagicTransit PCAPListResponseMagicVisibilityPCAPsResponseFullSystem = "magic-transit"
)
func (PCAPListResponseMagicVisibilityPCAPsResponseFullSystem) IsKnown ¶
func (r PCAPListResponseMagicVisibilityPCAPsResponseFullSystem) IsKnown() bool
type PCAPListResponseMagicVisibilityPCAPsResponseFullType ¶
type PCAPListResponseMagicVisibilityPCAPsResponseFullType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPListResponseMagicVisibilityPCAPsResponseFullTypeSimple PCAPListResponseMagicVisibilityPCAPsResponseFullType = "simple" PCAPListResponseMagicVisibilityPCAPsResponseFullTypeFull PCAPListResponseMagicVisibilityPCAPsResponseFullType = "full" )
func (PCAPListResponseMagicVisibilityPCAPsResponseFullType) IsKnown ¶
func (r PCAPListResponseMagicVisibilityPCAPsResponseFullType) IsKnown() bool
type PCAPListResponseStatus ¶
type PCAPListResponseStatus string
The status of the packet capture request.
const ( PCAPListResponseStatusUnknown PCAPListResponseStatus = "unknown" PCAPListResponseStatusSuccess PCAPListResponseStatus = "success" PCAPListResponseStatusPending PCAPListResponseStatus = "pending" PCAPListResponseStatusRunning PCAPListResponseStatus = "running" PCAPListResponseStatusConversionPending PCAPListResponseStatus = "conversion_pending" PCAPListResponseStatusConversionRunning PCAPListResponseStatus = "conversion_running" PCAPListResponseStatusComplete PCAPListResponseStatus = "complete" PCAPListResponseStatusFailed PCAPListResponseStatus = "failed" )
func (PCAPListResponseStatus) IsKnown ¶
func (r PCAPListResponseStatus) IsKnown() bool
type PCAPListResponseSystem ¶
type PCAPListResponseSystem string
The system used to collect packet captures.
const (
PCAPListResponseSystemMagicTransit PCAPListResponseSystem = "magic-transit"
)
func (PCAPListResponseSystem) IsKnown ¶
func (r PCAPListResponseSystem) IsKnown() bool
type PCAPListResponseType ¶
type PCAPListResponseType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPListResponseTypeSimple PCAPListResponseType = "simple" PCAPListResponseTypeFull PCAPListResponseType = "full" )
func (PCAPListResponseType) IsKnown ¶
func (r PCAPListResponseType) IsKnown() bool
type PCAPListResponseUnion ¶
type PCAPListResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by pcaps.PCAP or pcaps.PCAPListResponseMagicVisibilityPCAPsResponseFull.
type PCAPNewParams ¶
type PCAPNewParams struct { // Identifier AccountID param.Field[string] `path:"account_id,required"` Body PCAPNewParamsBodyUnion `json:"body,required"` }
func (PCAPNewParams) MarshalJSON ¶
func (r PCAPNewParams) MarshalJSON() (data []byte, err error)
type PCAPNewParamsBody ¶
type PCAPNewParamsBody struct { // The packet capture filter. When this field is empty, all packets are captured. FilterV1 param.Field[PCAPFilterParam] `json:"filter_v1"` // The limit of packets contained in a packet capture. PacketLimit param.Field[float64] `json:"packet_limit"` // The system used to collect packet captures. System param.Field[PCAPNewParamsBodySystem] `json:"system,required"` // The packet capture duration in seconds. TimeLimit param.Field[float64] `json:"time_limit,required"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type param.Field[PCAPNewParamsBodyType] `json:"type,required"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit param.Field[float64] `json:"byte_limit"` // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. ColoName param.Field[string] `json:"colo_name"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf param.Field[string] `json:"destination_conf"` }
func (PCAPNewParamsBody) MarshalJSON ¶
func (r PCAPNewParamsBody) MarshalJSON() (data []byte, err error)
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFull ¶
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFull struct { // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. ColoName param.Field[string] `json:"colo_name,required"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf param.Field[string] `json:"destination_conf,required"` // The system used to collect packet captures. System param.Field[PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullSystem] `json:"system,required"` // The packet capture duration in seconds. TimeLimit param.Field[float64] `json:"time_limit,required"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type param.Field[PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullType] `json:"type,required"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit param.Field[float64] `json:"byte_limit"` // The packet capture filter. When this field is empty, all packets are captured. FilterV1 param.Field[PCAPFilterParam] `json:"filter_v1"` // The limit of packets contained in a packet capture. PacketLimit param.Field[float64] `json:"packet_limit"` }
func (PCAPNewParamsBodyMagicVisibilityPCAPsRequestFull) MarshalJSON ¶
func (r PCAPNewParamsBodyMagicVisibilityPCAPsRequestFull) MarshalJSON() (data []byte, err error)
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullSystem ¶
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullSystem string
The system used to collect packet captures.
const (
PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullSystemMagicTransit PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullSystem = "magic-transit"
)
func (PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullSystem) IsKnown ¶
func (r PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullSystem) IsKnown() bool
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullType ¶
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullTypeSimple PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullType = "simple" PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullTypeFull PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullType = "full" )
func (PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullType) IsKnown ¶
func (r PCAPNewParamsBodyMagicVisibilityPCAPsRequestFullType) IsKnown() bool
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimple ¶
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimple struct { // The limit of packets contained in a packet capture. PacketLimit param.Field[float64] `json:"packet_limit,required"` // The system used to collect packet captures. System param.Field[PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystem] `json:"system,required"` // The packet capture duration in seconds. TimeLimit param.Field[float64] `json:"time_limit,required"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type param.Field[PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleType] `json:"type,required"` // The packet capture filter. When this field is empty, all packets are captured. FilterV1 param.Field[PCAPFilterParam] `json:"filter_v1"` }
func (PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimple) MarshalJSON ¶
func (r PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimple) MarshalJSON() (data []byte, err error)
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystem ¶
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystem string
The system used to collect packet captures.
const (
PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystemMagicTransit PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystem = "magic-transit"
)
func (PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystem) IsKnown ¶
func (r PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystem) IsKnown() bool
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleType ¶
type PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleTypeSimple PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleType = "simple" PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleTypeFull PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleType = "full" )
func (PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleType) IsKnown ¶
func (r PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleType) IsKnown() bool
type PCAPNewParamsBodySystem ¶
type PCAPNewParamsBodySystem string
The system used to collect packet captures.
const (
PCAPNewParamsBodySystemMagicTransit PCAPNewParamsBodySystem = "magic-transit"
)
func (PCAPNewParamsBodySystem) IsKnown ¶
func (r PCAPNewParamsBodySystem) IsKnown() bool
type PCAPNewParamsBodyType ¶
type PCAPNewParamsBodyType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPNewParamsBodyTypeSimple PCAPNewParamsBodyType = "simple" PCAPNewParamsBodyTypeFull PCAPNewParamsBodyType = "full" )
func (PCAPNewParamsBodyType) IsKnown ¶
func (r PCAPNewParamsBodyType) IsKnown() bool
type PCAPNewParamsBodyUnion ¶
type PCAPNewParamsBodyUnion interface {
// contains filtered or unexported methods
}
Satisfied by pcaps.PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimple, pcaps.PCAPNewParamsBodyMagicVisibilityPCAPsRequestFull, PCAPNewParamsBody.
type PCAPNewResponse ¶
type PCAPNewResponse struct { // The packet capture filter. When this field is empty, all packets are captured. FilterV1 PCAPFilter `json:"filter_v1"` // The ID for the packet capture. ID string `json:"id"` // The status of the packet capture request. Status PCAPNewResponseStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. System PCAPNewResponseSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type PCAPNewResponseType `json:"type"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit float64 `json:"byte_limit"` // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. ColoName string `json:"colo_name"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf string `json:"destination_conf"` // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` JSON pcapNewResponseJSON `json:"-"` // contains filtered or unexported fields }
func (PCAPNewResponse) AsUnion ¶
func (r PCAPNewResponse) AsUnion() PCAPNewResponseUnion
func (*PCAPNewResponse) UnmarshalJSON ¶
func (r *PCAPNewResponse) UnmarshalJSON(data []byte) (err error)
type PCAPNewResponseEnvelope ¶
type PCAPNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` Result PCAPNewResponse `json:"result,required"` // Whether the API call was successful Success PCAPNewResponseEnvelopeSuccess `json:"success,required"` JSON pcapNewResponseEnvelopeJSON `json:"-"` }
func (*PCAPNewResponseEnvelope) UnmarshalJSON ¶
func (r *PCAPNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type PCAPNewResponseEnvelopeSuccess ¶
type PCAPNewResponseEnvelopeSuccess bool
Whether the API call was successful
const (
PCAPNewResponseEnvelopeSuccessTrue PCAPNewResponseEnvelopeSuccess = true
)
func (PCAPNewResponseEnvelopeSuccess) IsKnown ¶
func (r PCAPNewResponseEnvelopeSuccess) IsKnown() bool
type PCAPNewResponseMagicVisibilityPCAPsResponseFull ¶
type PCAPNewResponseMagicVisibilityPCAPsResponseFull struct { // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet // captures. ByteLimit float64 `json:"byte_limit"` // The name of the data center used for the packet capture. This can be a specific // colo (ord02) or a multi-colo name (ORD). This field only applies to `full` // packet captures. ColoName string `json:"colo_name"` // The full URI for the bucket. This field only applies to `full` packet captures. DestinationConf string `json:"destination_conf"` // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` // The packet capture filter. When this field is empty, all packets are captured. FilterV1 PCAPFilter `json:"filter_v1"` // The status of the packet capture request. Status PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. Submitted string `json:"submitted"` // The system used to collect packet captures. System PCAPNewResponseMagicVisibilityPCAPsResponseFullSystem `json:"system"` // The packet capture duration in seconds. TimeLimit float64 `json:"time_limit"` // The type of packet capture. `Simple` captures sampled packets, and `full` // captures entire payloads and non-sampled packets. Type PCAPNewResponseMagicVisibilityPCAPsResponseFullType `json:"type"` JSON pcapNewResponseMagicVisibilityPCAPsResponseFullJSON `json:"-"` }
func (*PCAPNewResponseMagicVisibilityPCAPsResponseFull) UnmarshalJSON ¶
func (r *PCAPNewResponseMagicVisibilityPCAPsResponseFull) UnmarshalJSON(data []byte) (err error)
type PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus ¶
type PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus string
The status of the packet capture request.
const ( PCAPNewResponseMagicVisibilityPCAPsResponseFullStatusUnknown PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus = "unknown" PCAPNewResponseMagicVisibilityPCAPsResponseFullStatusSuccess PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus = "success" PCAPNewResponseMagicVisibilityPCAPsResponseFullStatusPending PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus = "pending" PCAPNewResponseMagicVisibilityPCAPsResponseFullStatusRunning PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus = "running" PCAPNewResponseMagicVisibilityPCAPsResponseFullStatusConversionPending PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus = "conversion_pending" PCAPNewResponseMagicVisibilityPCAPsResponseFullStatusConversionRunning PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus = "conversion_running" PCAPNewResponseMagicVisibilityPCAPsResponseFullStatusComplete PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus = "complete" PCAPNewResponseMagicVisibilityPCAPsResponseFullStatusFailed PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus = "failed" )
func (PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus) IsKnown ¶
func (r PCAPNewResponseMagicVisibilityPCAPsResponseFullStatus) IsKnown() bool
type PCAPNewResponseMagicVisibilityPCAPsResponseFullSystem ¶
type PCAPNewResponseMagicVisibilityPCAPsResponseFullSystem string
The system used to collect packet captures.
const (
PCAPNewResponseMagicVisibilityPCAPsResponseFullSystemMagicTransit PCAPNewResponseMagicVisibilityPCAPsResponseFullSystem = "magic-transit"
)
func (PCAPNewResponseMagicVisibilityPCAPsResponseFullSystem) IsKnown ¶
func (r PCAPNewResponseMagicVisibilityPCAPsResponseFullSystem) IsKnown() bool
type PCAPNewResponseMagicVisibilityPCAPsResponseFullType ¶
type PCAPNewResponseMagicVisibilityPCAPsResponseFullType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPNewResponseMagicVisibilityPCAPsResponseFullTypeSimple PCAPNewResponseMagicVisibilityPCAPsResponseFullType = "simple" PCAPNewResponseMagicVisibilityPCAPsResponseFullTypeFull PCAPNewResponseMagicVisibilityPCAPsResponseFullType = "full" )
func (PCAPNewResponseMagicVisibilityPCAPsResponseFullType) IsKnown ¶
func (r PCAPNewResponseMagicVisibilityPCAPsResponseFullType) IsKnown() bool
type PCAPNewResponseStatus ¶
type PCAPNewResponseStatus string
The status of the packet capture request.
const ( PCAPNewResponseStatusUnknown PCAPNewResponseStatus = "unknown" PCAPNewResponseStatusSuccess PCAPNewResponseStatus = "success" PCAPNewResponseStatusPending PCAPNewResponseStatus = "pending" PCAPNewResponseStatusRunning PCAPNewResponseStatus = "running" PCAPNewResponseStatusConversionPending PCAPNewResponseStatus = "conversion_pending" PCAPNewResponseStatusConversionRunning PCAPNewResponseStatus = "conversion_running" PCAPNewResponseStatusComplete PCAPNewResponseStatus = "complete" PCAPNewResponseStatusFailed PCAPNewResponseStatus = "failed" )
func (PCAPNewResponseStatus) IsKnown ¶
func (r PCAPNewResponseStatus) IsKnown() bool
type PCAPNewResponseSystem ¶
type PCAPNewResponseSystem string
The system used to collect packet captures.
const (
PCAPNewResponseSystemMagicTransit PCAPNewResponseSystem = "magic-transit"
)
func (PCAPNewResponseSystem) IsKnown ¶
func (r PCAPNewResponseSystem) IsKnown() bool
type PCAPNewResponseType ¶
type PCAPNewResponseType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
const ( PCAPNewResponseTypeSimple PCAPNewResponseType = "simple" PCAPNewResponseTypeFull PCAPNewResponseType = "full" )
func (PCAPNewResponseType) IsKnown ¶
func (r PCAPNewResponseType) IsKnown() bool
type PCAPNewResponseUnion ¶
type PCAPNewResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by pcaps.PCAP or pcaps.PCAPNewResponseMagicVisibilityPCAPsResponseFull.
type PCAPService ¶
type PCAPService struct { Options []option.RequestOption Ownership *OwnershipService Download *DownloadService }
PCAPService 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 NewPCAPService method instead.
func NewPCAPService ¶
func NewPCAPService(opts ...option.RequestOption) (r *PCAPService)
NewPCAPService 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 (*PCAPService) Get ¶
func (r *PCAPService) Get(ctx context.Context, pcapID string, query PCAPGetParams, opts ...option.RequestOption) (res *PCAPGetResponse, err error)
Get information for a PCAP request by id.
func (*PCAPService) List ¶
func (r *PCAPService) List(ctx context.Context, query PCAPListParams, opts ...option.RequestOption) (res *pagination.SinglePage[PCAPListResponse], err error)
Lists all packet capture requests for an account.
func (*PCAPService) ListAutoPaging ¶
func (r *PCAPService) ListAutoPaging(ctx context.Context, query PCAPListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[PCAPListResponse]
Lists all packet capture requests for an account.
func (*PCAPService) New ¶
func (r *PCAPService) New(ctx context.Context, params PCAPNewParams, opts ...option.RequestOption) (res *PCAPNewResponse, err error)
Create new PCAP request for account.
type PCAPStatus ¶
type PCAPStatus string
The status of the packet capture request.
const ( PCAPStatusUnknown PCAPStatus = "unknown" PCAPStatusSuccess PCAPStatus = "success" PCAPStatusPending PCAPStatus = "pending" PCAPStatusRunning PCAPStatus = "running" PCAPStatusConversionPending PCAPStatus = "conversion_pending" PCAPStatusConversionRunning PCAPStatus = "conversion_running" PCAPStatusComplete PCAPStatus = "complete" PCAPStatusFailed PCAPStatus = "failed" )
func (PCAPStatus) IsKnown ¶
func (r PCAPStatus) IsKnown() bool
type PCAPSystem ¶
type PCAPSystem string
The system used to collect packet captures.
const (
PCAPSystemMagicTransit PCAPSystem = "magic-transit"
)
func (PCAPSystem) IsKnown ¶
func (r PCAPSystem) IsKnown() bool
type PCAPType ¶
type PCAPType string
The type of packet capture. `Simple` captures sampled packets, and `full` captures entire payloads and non-sampled packets.
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 UserRoleParam ¶
type UserRoleParam = shared.UserRoleParam
This is an alias to an internal type.
type UserRolesPermissions ¶
type UserRolesPermissions = shared.UserRolesPermissions
This is an alias to an internal type.
type UserRolesPermissionsParam ¶
type UserRolesPermissionsParam = shared.UserRolesPermissionsParam
This is an alias to an internal type.
type UserUserParam ¶
type UserUserParam = shared.UserUserParam
This is an alias to an internal type.