Fastly Compute C++ SDK
Loading...
Searching...
No Matches
fastly::secret_store::SecretStore Class Reference

#include <secret_store.h>

Public Member Functions

fastly::expected< std::optional< Secret > > get (std::string_view key)
fastly::expected< bool > contains (std::string_view key)
 Return true if the secret store contains a secret with the given.

Static Public Member Functions

static fastly::expected< SecretStoreopen (std::string_view name)

Detailed Description

A Compute Secret Store.

A secret store name has a maximum length of 255 bytes and must contain only letters, numbers, dashes (-), underscores (_), and periods (.).

Member Function Documentation

◆ contains()

fastly::expected< bool > fastly::secret_store::SecretStore::contains ( std::string_view key)

Return true if the secret store contains a secret with the given.

name.

◆ get()

fastly::expected< std::optional< Secret > > fastly::secret_store::SecretStore::get ( std::string_view key)

Lookup a Secret by name in this secret store.

Returns std::optional<Secret> if the secret is found, and std::nullopt if the secret was not found.

◆ open()

fastly::expected< SecretStore > fastly::secret_store::SecretStore::open ( std::string_view name)
static

The documentation for this class was generated from the following file: