cmd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute the root command, runs the server

func LogTailors added in v0.4.0

func LogTailors(files chan string) error

LogTailors stream logs per file from a channel into STDOUT of the pod where it runs.

func NewCFOperatorCommand added in v0.2.0

func NewCFOperatorCommand() *cobra.Command

NewCFOperatorCommand returns the `cf-operator` command.

func PrintOutput added in v0.4.0

func PrintOutput(messages chan StdOutMsg)

PrintOutput ensures that all logs send to STDOUT stream will be displayed on an specific way: - an specific color per file logs - added italics font, for the file name

func TailLogsFromDir added in v0.4.0

func TailLogsFromDir() error

TailLogsFromDir will stream to the pod STDOUT all file logs per line in the following syntax: timestampt, file name, message

This only tail logs from files names in the form *.log

Types

type StdOutMsg added in v0.4.0

type StdOutMsg struct {
	Timestamp time.Time
	Origin    string
	Message   string
	ID        int
}

StdOutMsg serves as an struct where a msg corresponding a file can be store. It also stores a file ID, which will help on assigning an specific color to that file logs, when sending to STDOUT

Jump to

Keyboard shortcuts

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