logstream

package
v99.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package logstream lets end-to-end tests incorporate controller logs into the error output of tests. It is enabled by setting the SYSTEM_NAMESPACE environment variable, which tells this package what namespace to stream logs from.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canceler

type Canceler func()

Canceler is the type of a function returned when a logstream is started to be deferred so that the logstream can be stopped when the test is complete.

func Start

func Start(t *testing.T) Canceler

Start begins streaming the logs from system components with a `key:` matching `test.ObjectNameForTest(t)` to `t.Log`. It returns a Canceler, which must be called before the test completes.

Jump to

Keyboard shortcuts

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