timestampmeta

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package timestampmeta provides utilities for preserving timestamps using per-blob key-value-pairs (metadata, tags, etc.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromValue

func FromValue(v string) (t time.Time, ok bool)

FromValue attempts to convert the provided value stored in metadata into time.Time.

func ToMap

func ToMap(t time.Time, mapKey string) map[string]string

ToMap returns a map containing single entry representing the provided time or nil map if the time is zero. The key-value pair map should be stored alongside the blob.

Types

This section is empty.

Jump to

Keyboard shortcuts

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