Documentation ¶
Index ¶
- Variables
- func IfCI[T any](t T) ifExpr[T]
- func IfTesting[T any](t T) ifExpr[T]
- func MergeCoverProfiles(filenames []string, output io.Writer, opts ...ProfileOption) error
- func Must[T any](t T, err ...error) T
- func PortForward(ctx context.Context, service types.NamespacedName, servicePorts []string, ...) ([]portforward.ForwardedPort, error)
- type ProfileOption
- type ProfileOptions
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IsTesting = strings.HasSuffix(os.Args[0], ".test") IsGithubActions = os.Getenv("GITHUB_ACTIONS") == "true" IsDrone = os.Getenv("DRONE") == "true" StdoutWriter = lo.Ternary[io.Writer](IsTesting, ginkgo.GinkgoWriter, os.Stdout) StderrWriter = lo.Ternary[io.Writer](IsTesting, ginkgo.GinkgoWriter, os.Stderr) )
Functions ¶
func MergeCoverProfiles ¶ added in v0.4.2
func MergeCoverProfiles(filenames []string, output io.Writer, opts ...ProfileOption) error
func PortForward ¶ added in v0.5.4
func PortForward( ctx context.Context, service types.NamespacedName, servicePorts []string, restConfig *rest.Config, scheme *runtime.Scheme, ) ([]portforward.ForwardedPort, error)
Types ¶
type ProfileOption ¶ added in v0.4.2
type ProfileOption func(*ProfileOptions)
func WithExcludePatterns ¶ added in v0.4.2
func WithExcludePatterns(excludePatterns ...string) ProfileOption
func WithKeepMergedProfiles ¶ added in v0.4.2
func WithKeepMergedProfiles(keep bool) ProfileOption
type ProfileOptions ¶ added in v0.4.2
type ProfileOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.