clients

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

type KeyPair struct {
	PublicKey                ed25519.PublicKey
	PrivateKey               ed25519.PrivateKey
	PublicKeyEncodedToString string
}

func GenerateEd25519Keys

func GenerateEd25519Keys() (*KeyPair, error)

func (*KeyPair) PrivateKeyToPEM

func (k *KeyPair) PrivateKeyToPEM() ([]byte, error)

type SFTPClient

type SFTPClient struct {
	// contains filtered or unexported fields
}

func NewSFTPClient

func NewSFTPClient(cfg *SFTPConfig) (*SFTPClient, error)

func (*SFTPClient) Close

func (s *SFTPClient) Close() error

func (*SFTPClient) SFTPClient

func (s *SFTPClient) SFTPClient() *sftp.Client

type SFTPConfig

type SFTPConfig struct {
	Host string
	Port int
	User string
	Pass string

	PkeyBytes []byte
	PkeyPath  string
	PkeyPass  string // Optional, it private key is created with a passphrase
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL