Documentation
¶
Index ¶
- type AmazonS3Event
- type AmazonS3Object
- type AmazonSNSEvent
- type AzureBlobName
- type AzureBlobStorageEvent
- type AzureBlobStorageObject
- type AzureContainerName
- type AzureStorageAccountName
- type CloudEventSchema
- type GoogleCloudStorageEvent
- type GoogleCloudStorageObject
- type GooglePubSubEvent
- type RouteInput
- type RouteOutput
- type StorageType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmazonS3Event ¶
type AmazonS3Event struct {
Event AmazonSNSEvent `json:"event"`
Object AmazonS3Object `json:"object"`
}
type AmazonS3Object ¶
type AmazonSNSEvent ¶
type AmazonSNSEvent struct {
}
type AzureBlobName ¶
type AzureBlobName string
type AzureBlobStorageEvent ¶
type AzureBlobStorageEvent struct {
Event CloudEventSchema `json:"event"`
Object AzureBlobStorageObject `json:"object"`
}
AzureBlobStorageEvent is a struct for Azure Blob Storage event
type AzureBlobStorageObject ¶
type AzureContainerName ¶
type AzureContainerName string
type AzureStorageAccountName ¶
type AzureStorageAccountName string
type CloudEventSchema ¶
type CloudEventSchema struct {
Data struct {
API string `json:"api"`
BlobType string `json:"blobType"`
ClientRequestID string `json:"clientRequestId"`
ContentLength int64 `json:"contentLength"`
ContentType string `json:"contentType"`
ETag string `json:"eTag"`
RequestID string `json:"requestId"`
Sequencer string `json:"sequencer"`
StorageDiagnostics struct {
BatchID string `json:"batchId"`
} `json:"storageDiagnostics"`
URL string `json:"url"`
} `json:"data"`
ID string `json:"id"`
Source string `json:"source"`
SpecVersion string `json:"specversion"`
Subject string `json:"subject"`
Time string `json:"time"`
Type string `json:"type"`
}
CloudEventSchema is a struct for Azure Event Grid CloudEvent schema
type GoogleCloudStorageEvent ¶
type GoogleCloudStorageEvent struct {
Event GooglePubSubEvent `json:"event"`
Object GoogleCloudStorageObject `json:"object"`
}
type GoogleCloudStorageObject ¶
GoogleCloudStorageObject is a struct for Google Cloud Storage object
type GooglePubSubEvent ¶
type GooglePubSubEvent struct {
}
type RouteInput ¶
type RouteInput struct {
AzureBlobStorage *AzureBlobStorageEvent `json:"abs"`
GoogleCloudStorage *GoogleCloudStorageEvent `json:"gcs"`
AmazonS3 *AmazonS3Event `json:"s3"`
}
type RouteOutput ¶
type RouteOutput struct {
AzureBlobStorage []AzureBlobStorageObject `json:"abs"`
GoogleCloudStorage []GoogleCloudStorageObject `json:"gcs"`
AmazonS3Storage []AmazonS3Object `json:"s3"`
}
type StorageType ¶
type StorageType string
const ( AzureBlobStorage StorageType = "abs" GoogleCloudStorage StorageType = "gcs" S3Storage StorageType = "s3" )
Click to show internal directories.
Click to hide internal directories.