From 4fa4e9eaccbbf274fe1e0f990b1258e3b8c013bc Mon Sep 17 00:00:00 2001 From: sk593 Date: Tue, 3 Sep 2024 13:23:24 -0700 Subject: [PATCH] update resource methods Signed-off-by: sk593 --- .../reference/resource-schema/cache/redis/index.md | 7 +++---- .../resource-schema/core-schema/extender/index.md | 2 +- .../reference/resource-schema/databases/mongodb/index.md | 8 +++----- .../reference/resource-schema/messaging/rabbitmq/index.md | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/docs/content/reference/resource-schema/cache/redis/index.md b/docs/content/reference/resource-schema/cache/redis/index.md index ac8860096..ecf1d7d29 100644 --- a/docs/content/reference/resource-schema/cache/redis/index.md +++ b/docs/content/reference/resource-schema/cache/redis/index.md @@ -76,10 +76,9 @@ The `redislabs.com/Redis` is a [resource]({{< ref portable-resources >}}) which The following methods are available on the Redis cache: -| Method | Description | -|--------|-------------| -| connectionString() | Get the connection string for the Redis cache. | -| password() | Get the password for the Redis cache. | +| Method | Description | Example | +|--------|-------------|---------| +| listSecrets() | Get the [secrets](#secrets) for the Redis cache. | `listSecrets().connectionString` | ## Resource provisioning diff --git a/docs/content/reference/resource-schema/core-schema/extender/index.md b/docs/content/reference/resource-schema/core-schema/extender/index.md index 996b9a61c..0f57667f2 100644 --- a/docs/content/reference/resource-schema/core-schema/extender/index.md +++ b/docs/content/reference/resource-schema/core-schema/extender/index.md @@ -59,7 +59,7 @@ The following methods are available on the Extender resource: | Method | Description | |--------|-------------| -| secrets('SECRET_NAME') | Get the value of a secret. | +| .listSecrets('SECRET_NAME') | Get the value of a secret. | ## Resource provisioning diff --git a/docs/content/reference/resource-schema/databases/mongodb/index.md b/docs/content/reference/resource-schema/databases/mongodb/index.md index 76a44e7bc..6485544fe 100644 --- a/docs/content/reference/resource-schema/databases/mongodb/index.md +++ b/docs/content/reference/resource-schema/databases/mongodb/index.md @@ -74,11 +74,9 @@ The `mongodb.com/MongoDatabase` [resource]({{< ref portable-resources >}}) repre The following methods are available on the Mongo database resource: -| Method | Description | -|--------|-------------| -| connectionString() | Get the connection string for the MongoDb. | -| username() | Get the username for the MongoDB. | -| password() | Get the password for the MongoDB. | +| Method | Description | Example | +|--------|-------------|---------| +| listSecrets() | Get the [secrets](#secrets) for the MongoDb. | `listSecrets().connectionString` | ## Resource provisioning diff --git a/docs/content/reference/resource-schema/messaging/rabbitmq/index.md b/docs/content/reference/resource-schema/messaging/rabbitmq/index.md index fb2516153..6001a6c83 100644 --- a/docs/content/reference/resource-schema/messaging/rabbitmq/index.md +++ b/docs/content/reference/resource-schema/messaging/rabbitmq/index.md @@ -79,7 +79,7 @@ Secrets are used when defining a RabbitMQ resource with a container or external | Property | Description | Example | |----------|-------------|---------| -| `uri()` | Returns the RabbitMQ uri used to connect to the resource. | `amqp://guest:***@rabbitmq.svc.local.cluster:5672` | +| listSecrets() | Get the [secrets](#secrets) for the RabbitMQ. | `listSecrets().uri` | ## Resource provisioning