dryrun

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DryRunReason = "DryRun"

Variables

This section is empty.

Functions

func NewDryRunError

func NewDryRunError(kind schema.ObjectKind, meta metav1.ObjectMetaAccessor, eventtype, reason, messageFmt string, args ...interface{}) error

func WithRuntimeObject

func WithRuntimeObject(ctx context.Context, obj runtime.Object) context.Context

WithRuntimeObject returns a new context that wraps the provided context and contains the provided runtime object.

Types

type DryRunError

type DryRunError struct {
	GVK                    string
	Namespace, Name        string
	EventType, Reason, Msg string
}

func (*DryRunError) Error

func (e *DryRunError) Error() string

type DryRunTransport

type DryRunTransport struct {
	Recorder record.EventRecorder
	Delegate http.RoundTripper
}

func NewDryRunTransport

func NewDryRunTransport(recorder record.EventRecorder, delegate http.RoundTripper) *DryRunTransport

func (*DryRunTransport) RoundTrip

func (t *DryRunTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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