Documentation ¶
Overview ¶
these are handlers that are passed into the util/notify/Watch command; they are called each time a file event happens
Index ¶
- Variables
- func Bootstrap(params string) error
- func Build(params string) error
- func Debug(msg string, debug bool)
- func Deploy(params string) error
- func Exec(where, params string) error
- func Fatal(msg, err string)
- func Get(path string, v interface{}) (*http.Response, error)
- func Info(msg string, debug bool)
- func IsContainerExec(args []string) bool
- func Lock()
- func Logs(params string) error
- func NewLogger(path string)
- func NotifyRebuild(event *fsnotify.Event) (err error)
- func NotifyServer(event *fsnotify.Event) error
- func Ping() (bool, error)
- func Post(path, contentType string, body io.Reader) (*http.Response, error)
- func Put(path string, body io.Reader) (*http.Response, error)
- func Suspend() error
- func Unlock()
- func Update(params string) error
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Console *lumber.ConsoleLogger Log *lumber.FileLogger )
View Source
var (
DisconnectedFromServer = errors.New("the server went away")
)
Functions ¶
func Lock ¶
func Lock()
Lock opens a 'lock' with the server; this is done so that nanobox can know how many clients are currenctly connected to the server
Types ¶
type Server ¶
type Server interface { Bootstrap(params string) error Build(params string) error Deploy(params string) error Exec(where, params string) error IsContainerExec(args []string) (found bool) NotifyRebuild(event *fsnotify.Event) error NotifyServer(event *fsnotify.Event) error Lock() Unlock() NewLogger(path string) Logs(params string) error Ping() (bool, error) Get(path string, v interface{}) (*http.Response, error) Post(path, contentType string, body io.Reader) (*http.Response, error) Put(path string, body io.Reader) (*http.Response, error) Suspend() error Update(params string) error }
var (
Default Server = server{}
)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.