Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttributes

func GetAttributes(asset *v1beta2.Asset) map[string]interface{}

GetAttributes returns custom properties of the given asset

func SetAttributes

func SetAttributes(asset *v1beta2.Asset, customFields map[string]interface{}) (res *v1beta2.Asset, err error)

SetAttributes sets custom properties of the given asset

func StatusCode

func StatusCode(err error) codes.Code

func StatusText added in v0.8.9

func StatusText(err error) string

func TryParseMapToProto

func TryParseMapToProto(src map[string]interface{}) (*structpb.Struct, error)

TryParseMapToProto parses src into a *structpb.Struct. Returns a non-nil empty struct and nil error when src is nil. Callers must inspect the returned error before using the struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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