Documentation ¶
Index ¶
- func CheckIfSetup() (bool, error)
- 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 GetAndCreateSshDirectory(sshDirectory string) (string, 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, sshDirectory string) error
- func WriteKey(key []byte, filename string, sshDirectory 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 CheckIfSetup ¶ added in v1.1.0
func GetAndCreateSshDirectory ¶ added in v1.1.0
func GetProfile ¶
func ParseConfig ¶
func ReadClientMessage ¶
func ReadServerMessage ¶
func RetrieveMasterKey ¶
func RetrievePrivateKey ¶
func RetrievePublicKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.