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)
- func Deploy(params string) error
- func Error(msg, err string)
- func Exec(where, params string) error
- func Fatal(msg, err string)
- func Get(path string, v interface{}) (*http.Response, error)
- 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
- type TimeoutReader
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{}
)
type Service ¶
type Service struct { CreatedAt time.Time EnvVars map[string]string IP string Name string Password string Ports []int Username string UID string }
Service
type TimeoutReader ¶ added in v0.16.14
type TimeoutReader struct { Files chan string // contains filtered or unexported fields }
A TimeoutReader reads from Files until timeout returning EOF
Source Files ¶
Click to show internal directories.
Click to hide internal directories.