report

package
v0.0.0-...-face4fc Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	// contains filtered or unexported fields
}

func NewReport

func NewReport(t *testing.T, config *rest.Config, types ...ReportType) *Report

NewReport creates a report with chosen resources

func (*Report) PrintJsonReport

func (r *Report) PrintJsonReport(namespace string)

PrintJsonReport prints chosen resources taking part in binding usage and service catalog test

for injected namespace as a json in testing logs

type ReportType

type ReportType func(r *Report, ns string)

func WithApp

func WithApp() ReportType

WithApp creates report with Application resources list: Application, ApplicationMapping

func WithHB

func WithHB() ReportType

WithHB creates report with HelmBroker resources list: AddonsConfiguration, ClusterAddonsConfiguration

func WithK8s

func WithK8s() ReportType

WithK8s creates report with Kubernetes resources list: Deployment, Pod, Service

func WithSBU

func WithSBU() ReportType

WithSBU creates report with ServiceBindingUsage list

func WithSC

func WithSC() ReportType

WithSC creates report with Service Catalog resources list: ServiceBroker, ServiceClass, ServiceInstance, ServiceBinding, ClusterServiceBroker, ClusterServiceClass

type TestLogWriter

type TestLogWriter struct {
	// contains filtered or unexported fields
}

func (TestLogWriter) Write

func (t TestLogWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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