Documentation ¶
Index ¶
- func CanonicalMeta(ctx context.Context, name string) (string, bool)
- func MinioMetaFromContext(ctx context.Context, validHeadersOnly bool) (md map[string]string, ok bool)
- func NewBackgroundWithMetaCopy(ctx context.Context) context.Context
- func NewBackgroundWithUserKey(userName string) context.Context
- func NewContext(ctx context.Context, md map[string]string) context.Context
- func WithAdditionalMetadata(ctx context.Context, meta map[string]string) context.Context
- func WithUserNameMetadata(ctx context.Context, userName string) context.Context
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalMeta ¶
CanonicalMeta extract header name or its lowercase version
func MinioMetaFromContext ¶
func MinioMetaFromContext(ctx context.Context, validHeadersOnly bool) (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 WithAdditionalMetadata ¶
WithAdditionalMetadata retrieves existing meta, adds new key/values to the map and produces a new context It enforces case-conflicts on all keys
Types ¶
type Metadata ¶
func FromContextCopy ¶ added in v4.0.1
FromContextCopy returns as COPY of the internal metadata, that can be subsequently modified
Click to show internal directories.
Click to hide internal directories.