Documentation ¶
Index ¶
- func BootstrapUpdates(status string) (err error)
- func BuildUpdates(status string) (err error)
- func DeployUpdates(status string) (err error)
- func ImageUpdates(status string) (err error)
- func Listen(tags []string, handle func(string) error) error
- func PrintLogStream(log Log)
- func ProcessLog(log Log)
- func ProcessLogStream(log Log)
- func Stream(tags []string, handle func(Log))
- type Log
- type Mist
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUpdates ¶
BuildUpdates receives a status update from mist.go and determines what to do based on the status. By default it will return, indicating to mist to stop listening.
func ProcessLog ¶
func ProcessLog(log Log)
ProcessLog takes a Logvac or Stormpack log and breaks it apart into pieces that are then reconstructed in a 'digestible' way, colorized, and output to the terminal
func ProcessLogStream ¶
func ProcessLogStream(log Log)
ProcessLogStream processes a log before printing it; if the CLI is silenced don't process any logs
Types ¶
type Log ¶
type Log struct { Content string `json:"content"` Priority int `json:"priority"` Time string `json:"time"` Type string `json:"type"` }
Log
type Mist ¶
type Mist interface { Listen(tags []string, handle func(string) error) error Stream(tags []string, handle func(Log)) ProcessLog(log Log) DeployUpdates(status string) (err error) BuildUpdates(status string) (err error) BootstrapUpdates(status string) (err error) ImageUpdates(status string) (err error) PrintLogStream(log Log) ProcessLogStream(log Log) }
var (
Default Mist = mist{}
)
Click to show internal directories.
Click to hide internal directories.