slave

package
v0.0.0-...-fecf105 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2014 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TMPDIR     = "./tmp"
	PROGRAM, _ = filepath.Abs(os.Args[0])
	SELFDIR    = filepath.Dir(PROGRAM)
	GOPM       = filepath.Join(SELFDIR, "bin/gopm")
	HOSTNAME   = "localhost"
	HOSTINFO   = &xrpc.HostInfo{Os: runtime.GOOS, Arch: runtime.GOARCH, Host: HOSTNAME}
)
View Source
var IsPrivateUpload bool //todo

Functions

func Action

func Action(c *cli.Context)

func GoInterval

func GoInterval(dur time.Duration, f func()) chan bool

Types

type NTMsg

type NTMsg struct {
	Status string
	Output string
	Extra  string
}

type Qiniu

type Qiniu struct {
	// contains filtered or unexported fields
}

func (*Qiniu) Upload

func (q *Qiniu) Upload(local string) (pubAddr string, err error)

type Storager

type Storager interface {
	Upload(localFile string) (pubAddr string, err error)
}

Jump to

Keyboard shortcuts

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