Documentation
¶
Overview ¶
Package io provides utility functions for client operations, including gRPC error handling and secure file operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SecureReadFile ¶
func SecureReadFile(file string, log hyperlogger.Logger) ([]byte, error)
SecureReadFile reads a file securely and returns the contents as a byte slice. The file contents are read into memory and should be handled carefully.
func SecureReadFileWithSecureBuffer ¶
func SecureReadFileWithSecureBuffer(filename string, log hyperlogger.Logger) (*memory.SecureBuffer, error)
SecureReadFileWithSecureBuffer reads a file securely and returns the contents in a SecureBuffer for better memory protection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.