sdf

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command added in v0.0.3

func Command(bash BashExec, command string, flags []Flag, ignore bool) string

Command call sdfcli command

func GenerateToken

func GenerateToken(bash BashExec, password string) (res string, err error)

GenerateToken sdf cli token

func Sync

func Sync(bash BashExec, client suitetalk.HTTPClient, src string, dest string, bidirectional bool, rh []lib.Hash) (al []string, ar []string, dl []string, dr []string, err error)

Sync sync files with remote dir

func UpdateHashFile

func UpdateHashFile(bash BashExec, src string, dest string, exclude bool, failed []string) (hashes []lib.Hash, hashfile string)

UpdateHashFile create and upload the hashes to ns filecabinet

Types

type BashExec added in v0.0.3

type BashExec interface {
	Command(name string, arg ...string) *exec.Cmd
}

type FileTransfer added in v0.0.3

type FileTransfer struct {
	Root string
	Path string
	Dest string
	Src  string
}

func Download added in v0.0.3

func Download(bash BashExec, c suitetalk.HTTPClient, paths []string, dest string) (downloads []FileTransfer, err error)

Download paths from filecabinet to local filesystem

func Upload added in v0.0.3

func Upload(bash BashExec, sources []string, dest string) (uploads []FileTransfer, err error)

Upload src paths to dest

type Flag

type Flag struct {
	F string
	A string
}

Flag flag structure

type Project

type Project struct {
	Type        string
	Dir         string
	FileCabinet string
	Name        string
	Params      ProjectParams
}

func CreateAccountCustomizationProject added in v0.0.3

func CreateAccountCustomizationProject(name string, path string) Project

CreateAccountCustomizationProject create an sdf account customization project

func CreateSuiteAppProject added in v0.0.3

func CreateSuiteAppProject(name string, path string, id string, version string, publisherId string) Project

CreateSuiteAppProject create an sdf suite app project

type ProjectParams

type ProjectParams struct {
	Name        string
	Path        string
	ID          string
	Version     string
	PublisherID string
}

Jump to

Keyboard shortcuts

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