sftp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination struct {
	Password               string `credential:"true" mapstructure:"password" description:"SSH Password"`
	PrivateKey             string `credential:"true" mapstructure:"private_key" description:"SSH Private Key"`
	User                   string `mapstructure:"user" description:"Username"`
	Host                   string `mapstructure:"host" description:"Hostname"`
	Port                   string `mapstructure:"port" description:"Port"`
	CertificateDestination string `mapstructure:"certificate_destination" description:"Full path, including file name, for certificate"`
	PrivateKeyDestination  string `mapstructure:"private_key_destination" description:"Full path, including file name, for private key"`
}

func (Destination) Description

func (d Destination) Description() string

func (Destination) Upload

func (d Destination) Upload(request models.CertRequest, cert *certificate.Resource) error

Jump to

Keyboard shortcuts

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