middleware

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProviderToContext

func AddProviderToContext() mux.MiddlewareFunc

func AddProviderToCtx

func AddProviderToCtx(ctx context.Context, provider internal.CloudProvider) context.Context

func AddRegionToContext

func AddRegionToContext(defaultRegion string) mux.MiddlewareFunc

func AddRegionToCtx

func AddRegionToCtx(ctx context.Context, region string) context.Context

func ProviderFromContext

func ProviderFromContext(ctx context.Context) (internal.CloudProvider, bool)

ProviderFromContext returns request provider associated with the context if possible.

func RegionFromContext

func RegionFromContext(ctx context.Context) (string, bool)

RegionFromContext returns request region associated with the context if possible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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