quantum

package
v0.0.0-...-17e6b21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationKeyExchange OperationType = "key_exchange"
	OperationEncryption  OperationType = "encryption"
	OperationDecryption  OperationType = "decryption"
	OperationSignature   OperationType = "signature"

	StatusPending  OperationStatus = "pending"
	StatusComplete OperationStatus = "complete"
	StatusFailed   OperationStatus = "failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationStatus

type OperationStatus string

type OperationType

type OperationType string

type QuantumOperation

type QuantumOperation struct {
	ID          string
	Type        OperationType
	Status      OperationStatus
	Algorithm   string
	KeySize     int
	CreatedAt   time.Time
	CompletedAt time.Time
	Result      []byte
	Metadata    map[string]interface{}
}

type QuantumOperationsManager

type QuantumOperationsManager struct {
	// contains filtered or unexported fields
}

func NewQuantumOperationsManager

func NewQuantumOperationsManager(
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
) *QuantumOperationsManager

func (*QuantumOperationsManager) GetOperation

func (qom *QuantumOperationsManager) GetOperation(
	ctx context.Context,
	operationID string,
) (*QuantumOperation, error)

func (*QuantumOperationsManager) PerformKeyExchange

func (qom *QuantumOperationsManager) PerformKeyExchange(
	ctx context.Context,
	params map[string]interface{},
) (*QuantumOperation, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL