git2ftp

package module
v0.0.0-...-0be322a Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

git2ftp

2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMkdirAll

func AutoMkdirAll(tmpFileDir string) error

func Cmd

func Cmd(name string, arg ...string) (string, error)

func FtpAbs

func FtpAbs(path string) string

func FtpAutoMkdir

func FtpAutoMkdir(client *goftp.Client, remotePath string) error

func FtpIsExist

func FtpIsExist(client *goftp.Client, path string) bool

func FtpRead

func FtpRead(client *goftp.Client, path string) (string, error)

func FtpWrite

func FtpWrite(client *goftp.Client, remotePath string, data []byte) error

func FtpWriteByFile

func FtpWriteByFile(client *goftp.Client, localPath string, remotePath string) error

func GetCurrentPath

func GetCurrentPath() (string, error)

func GetDiffFiles

func GetDiffFiles(currentTempGitDir string, onlineHash string) ([]string, error)

func GetGitRemoteUrl

func GetGitRemoteUrl() (string, error)

func GetHashByFtp

func GetHashByFtp(client *goftp.Client, item ftpConfig, currentTempGitDir string) string

func GitNowHash

func GitNowHash(currentTempGitDir string) (string, error)

func InitGit2ftpConfig

func InitGit2ftpConfig() git2ftpConfig

func IsExist

func IsExist(path string) bool

func SyncGit

func SyncGit(currentTempGitDir string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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