Documentation ¶
Index ¶
- func AddProviderToContext() mux.MiddlewareFunc
- func AddProviderToCtx(ctx context.Context, provider internal.CloudProvider) context.Context
- func AddRegionToContext(defaultRegion string) mux.MiddlewareFunc
- func AddRegionToCtx(ctx context.Context, region string) context.Context
- func ProviderFromContext(ctx context.Context) (internal.CloudProvider, bool)
- func RegionFromContext(ctx context.Context) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProviderToContext ¶
func AddProviderToContext() mux.MiddlewareFunc
func AddProviderToCtx ¶
func AddRegionToContext ¶
func AddRegionToContext(defaultRegion string) mux.MiddlewareFunc
func ProviderFromContext ¶
func ProviderFromContext(ctx context.Context) (internal.CloudProvider, bool)
ProviderFromContext returns request provider associated with the context if possible.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.