Documentation ¶
Index ¶
- Constants
- func Execute(binary string, args ...string) (string, error)
- func ExecuteWithTimeout(timeout time.Duration, binary string, args ...string) (string, error)
- func GRPCServiceReadinessProbe(address string) bool
- func GetURL(host string, port int) string
- func PrintJSON(obj interface{}) error
- func RemoveFile(file string) error
- func SetUpLogger(logsDir string) error
- type Bitmap
- type LonghornFormatter
- type LonghornWriter
Constants ¶
View Source
const ( DefaulCmdTimeout = time.Minute // one minute by default GRPCHealthProbe = "/usr/local/bin/grpc_health_probe" )
View Source
const (
LogComponentField = "component"
)
Variables ¶
This section is empty.
Functions ¶
func ExecuteWithTimeout ¶
func RemoveFile ¶
func SetUpLogger ¶
Types ¶
type Bitmap ¶
type Bitmap struct {
// contains filtered or unexported fields
}
func (*Bitmap) ReleaseRange ¶
type LonghornFormatter ¶
type LonghornFormatter struct { *logrus.TextFormatter LogsDir string // contains filtered or unexported fields }
type LonghornWriter ¶
type LonghornWriter struct {
// contains filtered or unexported fields
}
func NewLonghornWriter ¶
func NewLonghornWriter(name string, logsDir string) (*LonghornWriter, error)
func (LonghornWriter) Close ¶
func (l LonghornWriter) Close() error
func (LonghornWriter) StreamLog ¶
func (l LonghornWriter) StreamLog(done chan struct{}) (chan string, error)
Click to show internal directories.
Click to hide internal directories.