nsSFTP

package
v0.0.0-...-1c95f08 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright (C) 2017 Verizon. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const NS_SFTP_ERROR = "nsSFTP error: "
View Source
const (
	SFTP_CONN_TYPE = "SFTPConnection"
)

Variables

View Source
var (
	NsSFTP        = stats.New("nsSFTP")
	Connect       = NsSFTP.NewCounter("Connect")
	Disconnect    = NsSFTP.NewCounter("Disconnect")
	Mkdir         = NsSFTP.NewCounter("Mkdir")
	Store         = NsSFTP.NewCounter("Store")
	ErrConnect    = NsSFTP.NewCounter("ErrConnect")
	ErrDisconnect = NsSFTP.NewCounter("ErrDisconnect")
	ErrMkdir      = NsSFTP.NewCounter("ErrMkdir")
	ErrStore      = NsSFTP.NewCounter("ErrStore")
)
View Source
var (
	NsSFTPConnectionLimit, _ = config.GetInt("NS_SFTP_CONNECTION_LIMIT", 3)
)

Functions

This section is empty.

Types

type Clients

type Clients struct {
	SSH  *ssh.Client
	SFTP *sftp.Client
}

type Destination

type Destination struct {
	HostPort string
	User     string
	Password string
}

type NsSFTPModule

type NsSFTPModule struct {
	Limit int
}

func NewNsSFTPModule

func NewNsSFTPModule() *NsSFTPModule

func (*NsSFTPModule) Loader

func (nsSFTP *NsSFTPModule) Loader(L *lua.LState) int

Jump to

Keyboard shortcuts

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