metadata

package module
v0.0.0-...-a5568e4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearMetadata

func ClearMetadata(obj any)

func HasMetadata

func HasMetadata(obj any) bool

func SetMetadata

func SetMetadata(obj any, md *Metadata)

Types

type Metadata

type Metadata struct {
	ID         string `json:"id"`
	ETag       string `json:"etag"`
	Generation int64  `json:"generation"`
}

func GetMetadata

func GetMetadata(obj any) *Metadata

Jump to

Keyboard shortcuts

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