diff --git a/.build-tools/pkg/dictionary/bindings.go b/.build-tools/pkg/dictionary/bindings.go deleted file mode 100644 index bb1eb5813b..0000000000 --- a/.build-tools/pkg/dictionary/bindings.go +++ /dev/null @@ -1,384 +0,0 @@ -/* Copyright 2024 The Dapr Authors -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package dictionary - -import "github.com/dapr/components-contrib/build-tools/pkg/metadataschema" - -// func GetAllBindings() []*metadataschema.ComponentMetadata { -// return []*metadataschema.ComponentMetadata{ - -// // &bindingsBlob, // TODO: need to refactor to add to automation -// &bindingsCosmosSQL, -// &bindingsCosmosGremlin, -// &bindingsEventGrid, -// // &bindingsEventHub, // TODO: need to refactor metadata setup to support -// &bindingsOpenAI, -// // &bindingsServiceBusQueues, // TODO: need to refactor metadata setup to support -// &bindingsStorageQueues, -// &bindingsSignalR, -// &bindingsCron, -// &bindingsGCPBucket, -// &bindingsHTTP, -// &bindingsKafka, -// &bindingsMySQL, -// &bindingsPostgres, -// &bindingsRabbit, -// &bindingsRedis, -// &bindingsZeebeCommand, -// &bindingsZeebeWorker, -// &bindingsAppConfig, -// &bindingsKinesis, -// &bindingsDynamo, -// } -// } - -var awsAuthProfile = metadataschema.BuiltinAuthenticationProfile{Name: "aws"} -var azureAuthProfile = metadataschema.BuiltinAuthenticationProfile{Name: "azuread"} - -var bindingsBlob = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameBlob, - Version: v1, - Status: stable, - Title: titleBlob, - Description: "", // TODO - Capabilities: []string{}, - BuiltInAuthenticationProfiles: []metadataschema.BuiltinAuthenticationProfile{azureAuthProfile}, - Binding: &metadataschema.Binding{ - Input: false, - Output: true, - Operations: []metadataschema.BindingOperation{ - { - Name: "create", - Description: "Create blob", - }, - { - Name: "get", - Description: "Get blob", - }, - { - Name: "delete", - Description: "Delete blob", - }, - { - Name: "list", - Description: "List blob", - }, - }, - }, -} - -var bindingsCosmosSQL = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameCosmosSql, - Version: v1, - Status: stable, - Title: titleCosmosSql, - Description: "", // TODO - Capabilities: []string{}, - BuiltInAuthenticationProfiles: []metadataschema.BuiltinAuthenticationProfile{azureAuthProfile}, - Binding: &metadataschema.Binding{ - Input: false, - Output: true, - Operations: []metadataschema.BindingOperation{ - { - Name: "create", - Description: "Create an item", - }, - }, - }, -} - -var bindingsCosmosGremlin = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameCosmosGremlin, - Version: v1, - Status: alpha, - Title: titleCosmosGremlim, - Description: "", // TODO - Capabilities: []string{}, - BuiltInAuthenticationProfiles: []metadataschema.BuiltinAuthenticationProfile{azureAuthProfile}, - Binding: &metadataschema.Binding{ - Input: false, - Output: true, - Operations: []metadataschema.BindingOperation{ - { - Name: "query", - Description: "Perform a query", - }, - }, - }, -} - -var bindingsEventGrid = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameEventGrid, - Version: v1, - Status: beta, - Title: titleEventGrid, - Description: "", // TODO - Capabilities: []string{}, - BuiltInAuthenticationProfiles: []metadataschema.BuiltinAuthenticationProfile{azureAuthProfile}, - Binding: &metadataschema.Binding{ - Input: true, - Output: true, - Operations: []metadataschema.BindingOperation{ - { - Name: "create", - Description: "Create an event subscription", - }, - }, - }, -} - -// TODO(@Sam): I need to move the metadata.go file or create cust struct with field on location of metadata go file. -// var bindingsEventHub = metadataschema.ComponentMetadata{ -// Type: binding, -// Name: nameEventHub, -// Version: v1, -// Status: stable, -// Title: titleEventHub, -// Description: "", // TODO -// Capabilities: []string{}, -// } - -var bindingsOpenAI = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameOpenAI, - Version: v1, - Status: alpha, - Title: titleOpenAI, - Description: "", // TODO - Capabilities: []string{}, - AuthenticationProfiles: []metadataschema.AuthenticationProfile{ - { - Title: "API Key", - Description: "Authenticate using an API key", - }, - }, - BuiltInAuthenticationProfiles: []metadataschema.BuiltinAuthenticationProfile{azureAuthProfile}, - Binding: &metadataschema.Binding{ - Input: false, - Output: true, - Operations: []metadataschema.BindingOperation{ - { - Name: "completion", - Description: "Text completion", - }, - { - Name: "chat-completion", - Description: "Chat completion", - }, - }, - }, -} - -// TODO: metadata is map[string]string so this needs to be refactored later to be incorporated -// var bindingsServiceBusQueues = metadataschema.ComponentMetadata{ -// Type: binding, -// Name: nameServiceBusQueues, -// Version: v1, -// Status: stable, -// Title: titleServiceBusQueues, -// Description: "", // TODO -// Capabilities: []string{}, -// } - -var bindingsStorageQueues = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameStorageQueues, - Version: v1, - Status: stable, - Title: titleStorageQueues, - Description: "", // TODO - Capabilities: []string{}, - AuthenticationProfiles: []metadataschema.AuthenticationProfile{ - { - Title: "Account Key", - Description: "Authenticate using a pre-shared account key", - }, - }, - BuiltInAuthenticationProfiles: []metadataschema.BuiltinAuthenticationProfile{azureAuthProfile}, - Binding: &metadataschema.Binding{ - Input: true, - Output: true, - Operations: []metadataschema.BindingOperation{ - { - Name: "create", - Description: "Publish a new message in the queue.", - }, - }, - }, -} - -// TODO(@Sam): here and below -var bindingsSignalR = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameSignalR, - Version: v1, - Status: alpha, - Title: titleSignalR, - Description: "", // TODO - Capabilities: []string{}, -} - -var bindingsCron = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameCron, - Version: v1, - Status: stable, - Title: titleCron, - Description: "", // TODO - Capabilities: []string{}, -} - -var bindingsGCPBucket = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameGCPBucket, - Version: v1, - Status: alpha, - Title: titleGCPBucket, - Description: "", // TODO - Capabilities: []string{}, -} - -var bindingsHTTP = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameHTTP, - Version: v1, - Status: stable, - Title: titleHTTP, - Description: "", // TODO - Capabilities: []string{}, -} - -var bindingsKafka = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameKafka, - Version: v1, - Status: stable, - Title: titleHTTP, - Description: "", // TODO - Capabilities: []string{}, -} - -var bindingsMySQL = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameMySQL, - Version: v1, - Status: alpha, - Title: titleMySQL, - Description: "", // TODO - Capabilities: []string{}, -} - -var bindingsPostgres = metadataschema.ComponentMetadata{ - Type: binding, - Name: namePostgresql, - Version: v1, - Status: stable, - Title: titlePostgresql, - Description: "", // TODO - Capabilities: []string{}, // explicit bc it's diff than other pg components -} - -var bindingsRabbit = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameRabbit, - Version: v1, - Status: stable, - Title: titleRabbit, - Description: "", // TODO - Capabilities: []string{}, // explicit bc it's diff than other pg components -} - -var bindingsRedis = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameRedis, - Version: v1, - Status: stable, - Title: titleRedis, - Description: "", // TODO - Capabilities: []string{}, // explicit bc it's diff than other pg components -} - -var bindingsZeebeCommand = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameZeebeCommand, - Version: v1, - Status: stable, - Title: titleZeebeCommand, - Description: "", // TODO - Capabilities: []string{}, // explicit bc it's diff than other pg components -} - -var bindingsZeebeWorker = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameZeebeWorker, - Version: v1, - Status: stable, - Title: titleZeebeWorker, - Description: "", // TODO - Capabilities: []string{}, // explicit bc it's diff than other pg components -} - -var bindingsAppConfig = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameAppConfig, - Version: v1, - Status: alpha, - Title: titleAppConfig, - Description: "", // TODO - Capabilities: []string{}, // explicit bc it's diff than other pg components -} - -var bindingsKinesis = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameKinesis, - Version: v1, - Status: alpha, - Title: titleKinesis, - Description: "", // TODO - BuiltInAuthenticationProfiles: []metadataschema.BuiltinAuthenticationProfile{awsAuthProfile}, - Binding: &metadataschema.Binding{ - Input: true, - Output: true, - Operations: []metadataschema.BindingOperation{ - { - Name: "create", - Description: "Create a stream", - }, - }, - }, -} - -var bindingsDynamo = metadataschema.ComponentMetadata{ - Type: binding, - Name: nameDynamo, - Version: v1, - Status: stable, - Title: titleDynamo, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl}, - BuiltInAuthenticationProfiles: []metadataschema.BuiltinAuthenticationProfile{awsAuthProfile}, - Binding: &metadataschema.Binding{ - Input: false, - Output: true, - Operations: []metadataschema.BindingOperation{ - { - Name: "create", - Description: "Create a table", - }, - }, - }, -} diff --git a/.build-tools/pkg/dictionary/configuration.go b/.build-tools/pkg/dictionary/configuration.go deleted file mode 100644 index ba303ac182..0000000000 --- a/.build-tools/pkg/dictionary/configuration.go +++ /dev/null @@ -1,42 +0,0 @@ -/* Copyright 2024 The Dapr Authors -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package dictionary - -import "github.com/dapr/components-contrib/build-tools/pkg/metadataschema" - -func GetAllConfiguration() []*metadataschema.ComponentMetadata { - return []*metadataschema.ComponentMetadata{ - &configurationPostgres, - &configurationRedis, - } -} - -var configurationPostgres = metadataschema.ComponentMetadata{ - Type: configuration, - Name: namePostgresql, - Version: v1, - Status: stable, - Title: titlePostgresql, - Description: "", // TODO - Capabilities: []string{}, -} - -var configurationRedis = metadataschema.ComponentMetadata{ - Type: configuration, - Name: nameRedis, - Version: v1, - Status: stable, - Title: titleRedis, - Description: "", // TODO - Capabilities: []string{}, -} diff --git a/.build-tools/pkg/dictionary/conversation.go b/.build-tools/pkg/dictionary/conversation.go deleted file mode 100644 index b994a6db85..0000000000 --- a/.build-tools/pkg/dictionary/conversation.go +++ /dev/null @@ -1,75 +0,0 @@ -/* Copyright 2024 The Dapr Authors -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package dictionary - -import "github.com/dapr/components-contrib/build-tools/pkg/metadataschema" - -func GetAllConversation() []*metadataschema.ComponentMetadata { - return []*metadataschema.ComponentMetadata{ - &conversationAnthropic, - &conversationBedrock, - &conversationHugging, - &conversationMistral, - &conversationOpenAI, - } -} - -var conversationAnthropic = metadataschema.ComponentMetadata{ - Type: conversation, - Name: nameAnthropic, - Version: v1, - Status: alpha, - Title: titleAnthropic, - Description: "", // TODO - Capabilities: []string{}, -} - -var conversationBedrock = metadataschema.ComponentMetadata{ - Type: conversation, - Name: nameBedrock, - Version: v1, - Status: alpha, - Title: titleBedrock, - Description: "", // TODO - Capabilities: []string{}, -} - -var conversationHugging = metadataschema.ComponentMetadata{ - Type: conversation, - Name: nameHugging, - Version: v1, - Status: alpha, - Title: titleHugging, - Description: "", // TODO - Capabilities: []string{}, -} - -var conversationMistral = metadataschema.ComponentMetadata{ - Type: conversation, - Name: nameHugging, - Version: v1, - Status: alpha, - Title: titleMistral, - Description: "", // TODO - Capabilities: []string{}, -} - -var conversationOpenAI = metadataschema.ComponentMetadata{ - Type: conversation, - Name: nameOpenAI, - Version: v1, - Status: alpha, - Title: titleOpenAI, - Description: "", // TODO - Capabilities: []string{}, -} diff --git a/.build-tools/pkg/dictionary/dictionary.go b/.build-tools/pkg/dictionary/dictionary.go deleted file mode 100644 index 98d9852368..0000000000 --- a/.build-tools/pkg/dictionary/dictionary.go +++ /dev/null @@ -1,183 +0,0 @@ -/* Copyright 2024 The Dapr Authors -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package dictionary - -const ( - binding = "bindings" - state = "state" - configuration = "configuration" - conversation = "conversation" - middleware = "middleware" - pubsub = "pubsub" - secretstores = "secretstores" -) - -const ( - // state - nameSqlserver = "sqlserver" - nameTableStorage = "azure.tablestorage" - nameCassandra = "cassandra" - nameCloudflareWorkers = "cloudflare.workerskv" - nameCockroach = "cockroachdb" - nameMemcached = "memcached" - nameMongo = "mongodb" - - // bindings - nameS3 = "aws.s3" - nameSns = "aws.sns" - nameCosmosSql = "azure.cosmosdb" - nameCosmosGremlin = "azure.cosmosdb.gremlinapi" - nameEventGrid = "azure.eventgrid" - nameEventHub = "azure.eventhubs" - nameOpenAI = "azure.openai" - nameStorageQueues = "azure.storagequeues" - nameSignalR = "azure.signalr" - nameCron = "cron" - nameGCPBucket = "gcp.bucket" - nameHTTP = "http" - nameMySQL = "mysql" - nameRabbit = "rabbitmq" - nameZeebeCommand = "zeebe.command" - nameZeebeWorker = "zeebe.jobworker" - nameAppConfig = "azure.appconfig" - nameKinesis = "aws.kinesis" - - // configuration - - // conversation - nameAnthropic = "anthropic" - nameBedrock = "aws.bedrock" - nameHugging = "huggingface" - nameMistral = "mistral" - - // middleware - nameRouter = "routeralias" - - // pubsub - nameSnsSqs = "aws.snssqs" - nameServiceBusTopics = "azure.servicebus.topics" - nameGCPPubsub = "gcp.pubsub" - nameMQTT = "mqtt3" - namePulsar = "pulsar" - nameAmqp = "solace.amqp" - - // secretstores - nameParameterStore = "aws.parameterstore" - nameSecretManager = "aws.secretsmanager" - nameAzureVault = "azure.keyvault" - nameGCPSecret = "gcp.secretmanager" - nameHashiVault = "hashicorp.vault" - nameK8s = "kubernetes" - nameLocal = "local.env" - - // multiple component types - nameRedis = "redis" - namePostgresql = "postgresql" - nameKafka = "kafka" - nameServiceBusQueues = "azure.servicebus.queues" - nameDynamo = "aws.dynamodb" - nameBlob = "azure.blobstorage" - nameInMem = "in-memory" -) - -const ( - v1 = "v1" - v2 = "v2" -) - -const ( - alpha = "alpha" - beta = "beta" - stable = "stable" -) - -const ( - // state - titleSqlserver = "SQL Server" - titleTableStorage = "Azure Table Storage" - titleCassandra = "Apache Cassandra" - titleCloudflareWorkers = "Cloudflare Workers KV" - titleCockroach = "CockroachDB" - titleMemcached = "Memcached" - titleMongo = "MongoDB" - - // bindings - titleS3 = "AWS S3" - titleSns = "AWS SNS" - titleCosmosSql = "Azure Cosmos DB (SQL API)" - titleCosmosGremlim = "Azure Cosmos DB (Gremlin API)" - titleEventGrid = "Azure Event Grid" - titleEventHub = "Azure Event Hubs" - titleOpenAI = "Azure OpenAI" - titleStorageQueues = "Azure Storage Queues" - titleSignalR = "Azure SignalR" - titleCron = "Cron" - titleGCPBucket = "GCP Storage Bucket" - titleHTTP = "HTTP" - titleMySQL = "MySQL & MariaDB" - titleRabbit = "RabbitMQ" - titleZeebeCommand = "Zeebe Command" - titleZeebeWorker = "Zeebe JobWorker" - titleAppConfig = "Azure App Configuration" - titleKinesis = "AWS Kinesis Data Streams" - - // configuration - - // conversation - titleAnthropic = "Anthropic" - titleBedrock = "AWS Bedrock" - titleHugging = "Huggingface" - titleMistral = "Mistral" - - // middleware - titleRouter = "Router Alias" - - // pubsub - titleSnsSqs = "AWS SNS/SQS" - titleServiceBusTopics = "Azure Service Bus Topics" - titleGCPPubsub = "GCP Pub/Sub" - titleMQTT = "MQTT3" - titlePulsar = "Apache Pulsar" - titleAmqp = "Solace-AMQP" - - // secretstores - titleParameterStore = "AWS SSM Parameter Store" - titleSecretManager = "AWS Secrets manager" - titleAzureVault = "Azure Key Vault" - titleGCPSecret = "GCP Secret Manager" - titleHashiVault = "Hashicorp Vault" - titleK8s = "Kubernetes" - titleLocal = "Local environment variables" - - // multiple component types - titlePostgresql = "PostgreSQL" - titleRedis = "Redis" - titleServiceBusQueues = "Azure Service Bus Queues" - titleKafka = "Apache Kafka" - titleDynamo = "AWS DynamoDB" - titleBlob = "Azure Blob Storage" - titleInMem = "In-memory" -) - -const ( - descriptionSqlserver = "Microsoft SQL Server and Azure SQL" -) - -const ( - capabilitiesEtag = "etag" - capabilitiesTtl = "ttl" - capabilitiesTransaction = "transaction" - capabilitiesActorState = "actorStateStore" - capabilitiesCrud = "crud" - capabilitiesQuery = "query" -) diff --git a/.build-tools/pkg/dictionary/middleware.go b/.build-tools/pkg/dictionary/middleware.go deleted file mode 100644 index 578727d61a..0000000000 --- a/.build-tools/pkg/dictionary/middleware.go +++ /dev/null @@ -1,31 +0,0 @@ -/* Copyright 2024 The Dapr Authors -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package dictionary - -import "github.com/dapr/components-contrib/build-tools/pkg/metadataschema" - -func GetAllMiddleware() []*metadataschema.ComponentMetadata { - return []*metadataschema.ComponentMetadata{ - &middlewareRouter, - } -} - -var middlewareRouter = metadataschema.ComponentMetadata{ - Type: middleware, - Name: nameRouter, - Version: v1, - Status: alpha, - Title: titleRouter, - Description: "", // TODO - Capabilities: []string{}, -} diff --git a/.build-tools/pkg/dictionary/pubsub.go b/.build-tools/pkg/dictionary/pubsub.go deleted file mode 100644 index 2938cfec46..0000000000 --- a/.build-tools/pkg/dictionary/pubsub.go +++ /dev/null @@ -1,152 +0,0 @@ -/* Copyright 2024 The Dapr Authors -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package dictionary - -import "github.com/dapr/components-contrib/build-tools/pkg/metadataschema" - -func GetAllPubsubs() []*metadataschema.ComponentMetadata { - return []*metadataschema.ComponentMetadata{ - &pubsubSnsSqs, - &pubsubEventHubs, - &pubsubServiceBusQueues, - &pubsubServiceBusTopics, - &pubsubGCP, - &pubsubInMem, - &pubsubKafka, - &pubsubMQTT, - &pubsubPulsar, - &pubsubRabbit, - &pubsubRedis, - &pubsubAmqp, - } -} - -var pubsubSnsSqs = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameSnsSqs, - Version: v1, - Status: stable, - Title: titleSnsSqs, - Description: "", // TODO - Capabilities: []string{capabilitiesTtl}, -} - -var pubsubEventHubs = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameEventHub, - Version: v1, - Status: stable, - Title: titleEventGrid, - Description: "", // TODO - Capabilities: []string{}, -} - -var pubsubServiceBusQueues = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameServiceBusQueues, - Version: v1, - Status: stable, - Title: titleServiceBusQueues, - Description: "", // TODO - Capabilities: []string{capabilitiesTtl}, -} - -var pubsubServiceBusTopics = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameServiceBusTopics, - Version: v1, - Status: stable, - Title: titleServiceBusTopics, - Description: "", // TODO - Capabilities: []string{capabilitiesTtl}, -} - -var pubsubGCP = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameGCPPubsub, - Version: v1, - Status: stable, - Title: titleGCPPubsub, - Description: "", // TODO - Capabilities: []string{}, -} - -var pubsubInMem = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameInMem, - Version: v1, - Status: stable, - Title: titleInMem, - Description: "", // TODO - Capabilities: []string{}, -} - -var pubsubKafka = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameKafka, - Version: v1, - Status: stable, - Title: titleKafka, - Description: "", // TODO - Capabilities: []string{}, -} - -var pubsubMQTT = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameMQTT, - Version: v1, - Status: stable, - Title: titleMQTT, - Description: "", // TODO - Capabilities: []string{}, -} - -var pubsubPulsar = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: namePulsar, - Version: v1, - Status: stable, - Title: titlePulsar, - Description: "", // TODO - Capabilities: []string{}, -} - -var pubsubRabbit = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameRabbit, - Version: v1, - Status: stable, - Title: titleRabbit, - Description: "", // TODO - Capabilities: []string{capabilitiesTtl}, -} - -var pubsubRedis = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameRedis, - Version: v1, - Status: stable, - Title: titleRedis, - Description: "", // TODO - Capabilities: []string{capabilitiesTtl}, -} - -var pubsubAmqp = metadataschema.ComponentMetadata{ - Type: pubsub, - Name: nameAmqp, - Version: v1, - Status: beta, - Title: titleAmqp, - Description: "", // TODO - Capabilities: []string{capabilitiesTtl}, -} diff --git a/.build-tools/pkg/dictionary/secretstores.go b/.build-tools/pkg/dictionary/secretstores.go deleted file mode 100644 index 2708351e06..0000000000 --- a/.build-tools/pkg/dictionary/secretstores.go +++ /dev/null @@ -1,97 +0,0 @@ -/* Copyright 2024 The Dapr Authors -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package dictionary - -import "github.com/dapr/components-contrib/build-tools/pkg/metadataschema" - -func GetAllSecretStores() []*metadataschema.ComponentMetadata { - return []*metadataschema.ComponentMetadata{ - &secretParameterStore, - &secretManager, - &secretAzureVault, - &secretGCP, - &secretHashiVault, - &secretK8s, - &secretLocal, - } -} - -var secretParameterStore = metadataschema.ComponentMetadata{ - Type: secretstores, - Name: nameParameterStore, - Version: v1, - Status: alpha, - Title: titleParameterStore, - Description: "", // TODO - Capabilities: []string{}, -} - -var secretManager = metadataschema.ComponentMetadata{ - Type: secretstores, - Name: nameSecretManager, - Version: v1, - Status: beta, - Title: titleSecretManager, - Description: "", // TODO - Capabilities: []string{}, -} - -var secretAzureVault = metadataschema.ComponentMetadata{ - Type: secretstores, - Name: nameAzureVault, - Version: v1, - Status: stable, - Title: titleAzureVault, - Description: "", // TODO - Capabilities: []string{}, -} - -var secretGCP = metadataschema.ComponentMetadata{ - Type: secretstores, - Name: nameGCPSecret, - Version: v1, - Status: stable, - Title: titleGCPSecret, - Description: "", // TODO - Capabilities: []string{}, -} - -var secretHashiVault = metadataschema.ComponentMetadata{ - Type: secretstores, - Name: nameHashiVault, - Version: v1, - Status: stable, - Title: titleHashiVault, - Description: "", // TODO - Capabilities: []string{}, -} - -var secretK8s = metadataschema.ComponentMetadata{ - Type: secretstores, - Name: nameK8s, - Version: v1, - Status: stable, - Title: titleK8s, - Description: "", // TODO - Capabilities: []string{}, -} - -var secretLocal = metadataschema.ComponentMetadata{ - Type: secretstores, - Name: nameLocal, - Version: v1, - Status: stable, - Title: titleLocal, - Description: "", // TODO - Capabilities: []string{}, -} diff --git a/.build-tools/pkg/dictionary/state.go b/.build-tools/pkg/dictionary/state.go deleted file mode 100644 index 35ad4b040b..0000000000 --- a/.build-tools/pkg/dictionary/state.go +++ /dev/null @@ -1,195 +0,0 @@ -/* Copyright 2024 The Dapr Authors -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package dictionary - -import "github.com/dapr/components-contrib/build-tools/pkg/metadataschema" - -func GetAllStateStores() []*metadataschema.ComponentMetadata { - return []*metadataschema.ComponentMetadata{ - &stateDynamo, - &stateBlobV1, - &stateBlobV2, - &stateCosmos, - &stateTableStorage, - &stateCassandra, - &stateCloudflareWorkers, - &stateCockroach, - &stateInMem, - &stateMemCached, - &stateMongo, - &stateMySQL, - &statePostgresV1, - &statePostgresV2, - &stateRedis, - &stateSqlServer, - } -} - -var stateDynamo = metadataschema.ComponentMetadata{ - Type: state, - Name: nameDynamo, - Version: v1, - Status: stable, - Title: titleDynamo, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl}, -} - -var stateBlobV1 = metadataschema.ComponentMetadata{ - Type: state, - Name: nameBlob, - Version: v1, - Status: stable, - Title: titleBlob, - Description: "", // TODO - Capabilities: []string{capabilitiesCrud, capabilitiesEtag}, -} - -var stateBlobV2 = metadataschema.ComponentMetadata{ - Type: state, - Name: nameBlob, - Version: v2, - Status: stable, - Title: titleBlob, - Description: "", // TODO - Capabilities: []string{capabilitiesCrud, capabilitiesEtag}, -} - -var stateCosmos = metadataschema.ComponentMetadata{ - Type: state, - Name: nameCosmosSql, - Version: v1, - Status: stable, - Title: titleCosmosSql, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl, capabilitiesQuery}, -} - -var stateTableStorage = metadataschema.ComponentMetadata{ - Type: state, - Name: nameTableStorage, - Version: v1, - Status: stable, - Title: titleTableStorage, - Description: "", // TODO - Capabilities: []string{capabilitiesCrud, capabilitiesEtag}, -} - -var stateCassandra = metadataschema.ComponentMetadata{ - Type: state, - Name: nameCassandra, - Version: v1, - Status: stable, - Title: titleCassandra, - Description: "", // TODO - Capabilities: []string{capabilitiesCrud, capabilitiesEtag}, -} - -var stateCloudflareWorkers = metadataschema.ComponentMetadata{ - Type: state, - Name: nameCloudflareWorkers, - Version: v1, - Status: beta, - Title: titleCloudflareWorkers, - Description: "", // TODO - Capabilities: []string{capabilitiesCrud, capabilitiesEtag}, -} - -var stateCockroach = metadataschema.ComponentMetadata{ - Type: state, - Name: nameCockroach, - Version: v1, - Status: stable, - Title: titleCockroach, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl}, -} - -var stateInMem = metadataschema.ComponentMetadata{ - Type: state, - Name: nameInMem, - Version: v1, - Status: stable, - Title: titleInMem, - Description: "", // TODO - Capabilities: []string{}, -} - -var stateMemCached = metadataschema.ComponentMetadata{ - Type: state, - Name: nameMemcached, - Version: v1, - Status: stable, - Title: titleMemcached, - Description: "", // TODO - Capabilities: []string{capabilitiesCrud, capabilitiesTtl}, -} - -var stateMongo = metadataschema.ComponentMetadata{ - Type: state, - Name: nameMongo, - Version: v1, - Status: stable, - Title: titleMongo, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl, capabilitiesQuery}, -} - -var stateMySQL = metadataschema.ComponentMetadata{ - Type: state, - Name: nameMySQL, - Version: v1, - Status: stable, - Title: titleMySQL, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl}, -} - -var statePostgresV1 = metadataschema.ComponentMetadata{ - Type: state, - Name: namePostgresql, - Version: v1, - Status: stable, - Title: titlePostgresql, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl, capabilitiesQuery}, -} - -var statePostgresV2 = metadataschema.ComponentMetadata{ - Type: state, - Name: namePostgresql, - Version: v2, - Status: stable, - Title: titlePostgresql, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl}, -} - -var stateRedis = metadataschema.ComponentMetadata{ - Type: state, - Name: nameRedis, - Version: v1, - Status: stable, - Title: titleRedis, - Description: "", // TODO - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesQuery}, -} -var stateSqlServer = metadataschema.ComponentMetadata{ - Type: state, - Name: nameSqlserver, - Version: v1, - Status: stable, - Title: titleSqlserver, - Description: descriptionSqlserver, - Capabilities: []string{capabilitiesActorState, capabilitiesCrud, capabilitiesTransaction, capabilitiesEtag, capabilitiesTtl}, -}