util

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RevIDFrom added in v0.13.0

func RevIDFrom(ctx context.Context) types.NamespacedName

RevIDFrom retrieves the the revisionID from the context.

func RevisionFrom added in v0.13.0

func RevisionFrom(ctx context.Context) *v1.Revision

RevisionFrom retrieves the Revision object from the context.

func SetupHeaderPruning

func SetupHeaderPruning(p *httputil.ReverseProxy)

SetupHeaderPruning will cause the http.ReverseProxy to not forward activator headers

func WithRevID added in v0.13.0

func WithRevID(ctx context.Context, revID types.NamespacedName) context.Context

WithRevID attaches the the revisionID to the context.

func WithRevision added in v0.13.0

func WithRevision(ctx context.Context, rev *v1.Revision) context.Context

WithRevision attaches the Revision object to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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