Documentation ¶
Index ¶
- type DistributionSession
- type DistributionStatus
- type KeyDistributionMessage
- type KeyDistributionService
- func (s *KeyDistributionService) DistributeKey(ctx context.Context, keyID string, encryptedKey []byte) error
- func (s *KeyDistributionService) RegisterSubscriber(ctx context.Context, id string, publicKey []byte) error
- func (s *KeyDistributionService) UnregisterSubscriber(ctx context.Context, id string) error
- type KeySubscriber
- type SecureDistributor
- type SubscriberStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributionSession ¶
type DistributionStatus ¶
type DistributionStatus string
const ( StatusPending DistributionStatus = "pending" StatusExchanging DistributionStatus = "exchanging" StatusCompleted DistributionStatus = "completed" StatusFailed DistributionStatus = "failed" )
type KeyDistributionMessage ¶
type KeyDistributionService ¶
type KeyDistributionService struct {
// contains filtered or unexported fields
}
func NewKeyDistributionService ¶
func NewKeyDistributionService( natsURL string, keyStore *keystore.HSMKeyStore, metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) (*KeyDistributionService, error)
func (*KeyDistributionService) DistributeKey ¶
func (*KeyDistributionService) RegisterSubscriber ¶
func (*KeyDistributionService) UnregisterSubscriber ¶
func (s *KeyDistributionService) UnregisterSubscriber(ctx context.Context, id string) error
type KeySubscriber ¶
type KeySubscriber struct { ID string PublicKey []byte Status SubscriberStatus LastSeen time.Time }
type SecureDistributor ¶
type SecureDistributor struct {
// contains filtered or unexported fields
}
func NewSecureDistributor ¶
func NewSecureDistributor( natsURL string, keyExchange *quantum.KeyExchange, metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) (*SecureDistributor, error)
func (*SecureDistributor) DistributeKey ¶
type SubscriberStatus ¶
type SubscriberStatus string
const ( SubscriberStatusActive SubscriberStatus = "active" SubscriberStatusInactive SubscriberStatus = "inactive" )
Click to show internal directories.
Click to hide internal directories.