util

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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