Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyLifecyclePolicy ¶
type KeyTransition ¶
type KeyTransition struct { FromState KeyState ToState KeyState Condition TransitionCondition Action TransitionAction }
type LifecycleManager ¶
type LifecycleManager struct {
// contains filtered or unexported fields
}
func NewLifecycleManager ¶
func NewLifecycleManager( keyStore *keystore.HSMKeyStore, metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) *LifecycleManager
func (*LifecycleManager) AddPolicy ¶
func (lm *LifecycleManager) AddPolicy(ctx context.Context, policy *KeyLifecyclePolicy) error
func (*LifecycleManager) EnforcePolicy ¶
func (lm *LifecycleManager) EnforcePolicy(ctx context.Context, keyID string) error
type TransitionAction ¶
type TransitionAction func(context.Context, *keystore.KeyMetadata) error
type TransitionCondition ¶
type TransitionCondition func(context.Context, *keystore.KeyMetadata) bool
Click to show internal directories.
Click to hide internal directories.