Documentation ¶
Index ¶
- func Decrypt(b []byte) ([]byte, error)
- func DecryptWithMasterKey(b []byte, key []byte) ([]byte, error)
- func Encrypt(b []byte) ([]byte, error)
- func EncryptWithMasterKey(plaintext []byte, key []byte) ([]byte, error)
- func EncryptWithPublicKey(b []byte, key []byte) ([]byte, error)
- func GetProfile() (*models.Profile, error)
- func GetToken() (string, error)
- func ParseConfig() ([]models.Host, error)
- func ReadClientMessage[T dto.Dto](conn *net.Conn) (*dto.ClientMessageDto[T], error)
- func ReadLineFromStdin(reader *bufio.Scanner, input *string) error
- func ReadServerMessage[T dto.Dto](conn *net.Conn) (*dto.ServerMessageDto[T], error)
- func RetrieveMasterKey() ([]byte, error)
- func RetrievePrivateKey() (jwk.Key, error)
- func RetrievePublicKey() (jwk.Key, error)
- func WriteClientMessage[T dto.Dto](conn *net.Conn, message T) error
- func WriteConfig(hosts []models.Host) error
- func WriteKey(key []byte, filename string) error
- func WriteServerError[T dto.Dto](conn *net.Conn, message string) error
- func WriteServerMessage[T dto.Dto](conn *net.Conn, data T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProfile ¶
func ParseConfig ¶
func ReadClientMessage ¶
func ReadServerMessage ¶
func RetrieveMasterKey ¶
func RetrievePrivateKey ¶
func RetrievePublicKey ¶
func WriteConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.