context

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Overview

Package context is a set of utilities for managing contexts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParentStorage

func GetParentStorage(ctx context.Context) (rest.StandardStorage, bool)

GetParentStorage tries getting the parent storage from context

func GetParentStorageGetter added in v1.0.3

func GetParentStorageGetter(ctx context.Context) (rest.Getter, bool)

GetParentStorageGetter tries getting the get-only parent storage from context.

func WithParentStorage

func WithParentStorage(ctx context.Context, storage rest.Storage) context.Context

WithParentStorage creates a new child context w/ parent storage plumbed

Types

This section is empty.

Jump to

Keyboard shortcuts

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