Skip to content

Commit

Permalink
rename file and add initial interface
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Nov 20, 2024
1 parent b992040 commit 9047eba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/infrastructure/connector/az_vault.go

This file was deleted.

21 changes: 21 additions & 0 deletions internal/infrastructure/connector/key.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package connector

import (
"bytes"
"crypto_vault_service/internal/domain/keys"
)

// VaultConnector is an interface for interacting with key storages
type VaultConnector interface {
// Upload uploads multiple files to Vault Storage and returns their metadata.
Upload(filePaths []string) ([]*keys.CryptoKeyMeta, error)

// Download retrieves a blob's content by its ID and name, and returns the data as a stream.
Download(blobId, blobName string) (*bytes.Buffer, error)

//
// Rotate()

// Delete deletes a blob from Vault Storage by its ID and Name, and returns any error encountered.
Delete(blobId, blobName string) error
}

0 comments on commit 9047eba

Please sign in to comment.