Documentation ¶
Index ¶
- func CanonicalMeta(ctx context.Context, name string) (string, bool)
- func MinioMetaFromContext(ctx context.Context, forEvents ...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 ¶
MinioMetaFromContext prepares metadata for minio client. If forEvents is passed, it replies with the complete set of metadata
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.