Class: KStor::Message::SecretValue

Inherits:
Base
  • Object
show all
Defined in:
lib/kstor/message/secret_value.rb

Overview

Response for secret unlock.

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

arg, #error?, for_type, #inspect, #login, #login_request?, message_type, parse, #password, register, #request?, #response?, #serialize, #session_id, #session_request?, #to_h, #type, type?, types

Constructor Details

#initialize(**opts) ⇒ SecretValue

Create a new secret-value response.

Parameters:

  • opts (Hash[Symbol, String])

    common request options

Options Hash (**opts):

  • :id (Integer)

    ID of secret

  • :value_author (Hash)

    info on user that created secret value

  • :metadata_author (Hash)

    info on user that created secret metadata

  • :metadata (Hash)

    metadata of this secret

  • :plaintext (String)

    decrypted value of secret

  • :groups (Array[Hash])

    list of groups that can decrypt this secret



29
30
31
32
# File 'lib/kstor/message/secret_value.rb', line 29

def initialize(**opts)
  super(**opts)
  opts.delete(:group_id)
end