model

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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 AmazonS3Object struct {
	Region string `json:"region"`
	Bucket string `json:"bucket"`
	Key    string `json:"key"`
}

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 AzureBlobStorageObject struct {
	StorageAccount string `json:"storage_account"`
	Container      string `json:"container"`
	BlobName       string `json:"blob_name"`
	Size           int64  `json:"size"`
	ContentType    string `json:"content_type"`
	ETag           string `json:"etag"`
}

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

type GoogleCloudStorageObject struct {
	Bucket string `json:"bucket"`
	Name   string `json:"name"`
}

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL