cinder.keymgr.transfer module¶
- class KeyTransfer(conf: oslo_config.cfg.ConfigOpts)¶
Bases:
object
- property service_context¶
Returns the cinder service’s context.
- transfer_key(volume: cinder.objects.volume.Volume, src_context: cinder.context.RequestContext, dst_context: cinder.context.RequestContext) None ¶
Transfer the key from the src_context to the dst_context.
- transfer_accept(context: cinder.context.RequestContext, volume: cinder.objects.volume.Volume, conf: oslo_config.cfg.ConfigOpts = <oslo_config.cfg.ConfigOpts object>) None ¶
Transfer the key from the cinder service to the recipient.
- transfer_create(context: cinder.context.RequestContext, volume: cinder.objects.volume.Volume, conf: oslo_config.cfg.ConfigOpts = <oslo_config.cfg.ConfigOpts object>) None ¶
Transfer the key from the owner to the cinder service.
- transfer_delete(context: cinder.context.RequestContext, volume: cinder.objects.volume.Volume, conf: oslo_config.cfg.ConfigOpts = <oslo_config.cfg.ConfigOpts object>) None ¶
Transfer the key from the cinder service back to the owner.