🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/innotechdevops/sftpgo

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/innotechdevops/sftpgo

v1.2.2
Source
Go
Version published
Created
Source

sftpgo

SFTP wrapper for Golang

Install

go get github.com/innotechdevops/sftpgo

How to use

func New() sftpgo.SftpClient {
	config := sftpgo.Config{
		Host:     configuration.Config.Sftp.Report.Host,
		Username: configuration.Config.Sftp.Report.Username,
		Password: configuration.Config.Sftp.Report.Password,
		Port:     configuration.Config.Sftp.Report.Port,
	}

	csftp, err := sftpgo.NewClient(&config)
	if err != nil {
		log.Panic("New SFTP client", err.Error())
	}
	return csftp
}

client := New()

FAQs

Package last updated on 13 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts