commands

package
v0.0.0-...-c8f6fff Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	UploadFiles []string

	Name string
	// contains filtered or unexported fields
}

func NewFileStateCommand

func NewFileStateCommand() *Command

func (*Command) Prepare

func (self *Command) Prepare()

func (*Command) SetMonitor

func (self *Command) SetMonitor(monitor conf.MonitorDir)

func (*Command) SetName

func (self *Command) SetName(name string)

func (*Command) SetUploadFiles

func (self *Command) SetUploadFiles(uploadFiles []string)

type Commander

type Commander interface {
	SetMonitor(conf.MonitorDir)
	SetName(string)
	SetUploadFiles([]string)
	Prepare()
	Run() ([]string, error)
}

type FileStatePersistor

type FileStatePersistor struct {
	WorkDir string
}

func (*FileStatePersistor) GetActive

func (self *FileStatePersistor) GetActive() []string

func (*FileStatePersistor) SetActive

func (self *FileStatePersistor) SetActive(filePaths []string) []string

set the active files by moving them into their own directory

func (*FileStatePersistor) SetWorkDir

func (self *FileStatePersistor) SetWorkDir(workDir string)

type StatePersistor

type StatePersistor interface {
	SetWorkDir(string)
	SetActive([]string) []string
	GetActive() []string
}

Jump to

Keyboard shortcuts

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