context

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

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