Crate cts_common

Source
Expand description

Defines common types and traits used across the CipherStash ecosystem, particularly for CipherStash Token Service (CTS) and the CTS Client used in cipherstash-client.

§Features

  • server - Enables Server-specific types and traits.

Re-exports§

pub use axum;

Modules§

protocol
Manages the types used by the CTS server and client to ensure they are in sync.

Structs§

CtsServiceDiscovery
CTS service.
InvalidWorkspaceId
Workspace
Defines a workspace.
WorkspaceId
A unique identifier for a workspace. Workspace IDs are 10-byte random strings formatted in base32.
WorkspaceIdGenerationError
ZeroKmsServiceDiscovery
ZeroKms service.

Enums§

AwsRegion
Region
Defines the region of a CipherStash service. A region in CipherStash is defined by the region identifier and the provider separated by a dot. For example, us-west-2.aws is a valid region identifier and refers to the AWS region us-west-2.
RegionError

Traits§

ServiceDiscovery
Simple service discover trait that defines the name of the service and the endpoint for a given region.