context

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: AGPL-3.0 Imports: 6 Imported by: 142

Documentation

Overview

Package context manipulates context metadata

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendCellsMetaFromContext

func AppendCellsMetaFromContext(ctx context.Context, req *http.Request)

func ContextMetadata

func ContextMetadata(ctx context.Context) (map[string]string, bool)

func MinioMetaFromContext

func MinioMetaFromContext(ctx context.Context) (md map[string]string, ok bool)

MinioMetaFromContext prepares metadata for minio client, merging context medata and eventually the Context User Key value (X-Pydio-User). Used to prepare metadata sent by Minio Clients

func WithMetadata

func WithMetadata(ctx context.Context, md map[string]string) context.Context

func WithUserNameMetadata

func WithUserNameMetadata(ctx context.Context, userName string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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