Skip to content

Commit

Permalink
chore: add signature of YamlVault::Main#initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
joker1007 committed Sep 7, 2023
1 parent 3bdbc51 commit 35b57ef
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions sig/yaml_vault.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,35 @@ module YamlVault
class Main
@yaml: String
@keys: Array[String]
@prefix: String
@suffix: String
@passphrase: String
@sign_passphrase: String
@salt: String
@cipher: String
@prefix: String?
@suffix: String?
@passphrase: String?
@sign_passphrase: String?
@salt: String?
@cipher: String?
@key_len: Integer
@signature_key_len: Integer
@digest: String
@aws_kms_key_id: String
@aws_region: String
@aws_access_key_id: String
@aws_secret_access_key: String
@aws_profile: String
@gcp_kms_resource_id: String
@gcp_credential_file: String
@aws_kms_key_id: String?
@aws_region: String?
@aws_access_key_id: String?
@aws_secret_access_key: String?
@aws_profile: String?
@gcp_kms_resource_id: String?
@gcp_credential_file: String?
@cryptor: _Cryptor

def initialize: (String, Array[String], ?String?, ?String?, ?String?, ?passphrase: String?, ?sign_passphrase: String?, ?salt: String?, ?cipher: String, ?key_len: Integer, ?signature_key_len: Integer, ?digest: String,
?aws_kms_key_id: String?, ?aws_region: String?, ?aws_access_key_id: String?, ?aws_secret_access_key: String?, ?aws_profile: String?,
?gcp_kms_resource_id: String?, ?gcp_credential_file: String?) -> void

def encrypt: () -> untyped
def decrypt: () -> untyped
def encrypt_hash: () -> Hash[String, Object]
def decrypt_hash: () -> Hash[String, Object]
def encrypt_yaml: () -> String
def decrypt_yaml: () -> String
def get_cryptor: (String) -> _Cryptor
def get_cryptor: (String?) -> _Cryptor

module ValueCryptor
class KMS
Expand Down

0 comments on commit 35b57ef

Please sign in to comment.